Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009721/0.0009721, allocations: 91.77 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006995/0.006994, allocations: 172.8 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.838/2.838, allocations: 443.3 MB / 0.7175 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003725, allocations: 12.06 kB / 0.8796 GB, free: 41.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3444, allocations: 155.2 MB / 1.031 GB, free: 4.309 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04078/0.3852, allocations: 36.74 MB / 1.067 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02051/0.4058, allocations: 10.87 MB / 1.078 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00415/0.41, allocations: 131.3 kB / 1.078 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.003023/0.4131, allocations: 0.783 MB / 1.078 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.006958/0.42, allocations: 2.084 MB / 1.081 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.005522/0.4256, allocations: 1.804 MB / 1.082 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01731/0.4429, allocations: 13.18 MB / 1.095 GB, free: 2.527 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02813/0.4711, allocations: 14.45 MB / 1.109 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006713/0.4779, allocations: 2.84 MB / 1.112 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007667/0.4856, allocations: 3.873 MB / 1.116 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.002179/0.4878, allocations: 348 kB / 1.116 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004839/0.4927, allocations: 1.326 MB / 1.117 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.005073/0.4978, allocations: 2.529 MB / 1.12 GB, free: 9.031 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.007762/0.5055, allocations: 2.964 MB / 1.123 GB, free: 6.047 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01841/0.524, allocations: 11.69 MB / 1.134 GB, free: 10.32 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.524, allocations: 0 / 1.134 GB, free: 10.32 MB / 0.8887 GB Notification: Performance of FrontEnd: time 4.108e-06/0.5241, allocations: 0 / 1.134 GB, free: 10.32 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0006893/0.5248, allocations: 0 / 1.134 GB, free: 10.32 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01706/0.5418, allocations: 5.082 MB / 1.139 GB, free: 5.168 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.5419, allocations: 8.031 kB / 1.139 GB, free: 5.16 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006829/0.5487, allocations: 1.067 MB / 1.14 GB, free: 4.086 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008616/0.5574, allocations: 3.427 MB / 1.144 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005126/0.5579, allocations: 423.8 kB / 1.144 GB, free: 196 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002448/0.5604, allocations: 0.5472 MB / 1.145 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02628/0.5867, allocations: 9.381 MB / 1.154 GB, free: 5.926 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003317/0.5871, allocations: 19.78 kB / 1.154 GB, free: 5.906 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002303/0.5894, allocations: 244 kB / 1.154 GB, free: 5.668 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008485/0.5903, allocations: 414.9 kB / 1.154 GB, free: 5.262 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0199/0.6102, allocations: 7.123 MB / 1.161 GB, free: 14.13 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0575/0.6677, allocations: 41.37 MB / 1.202 GB, free: 1.02 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005218/0.673, allocations: 3.116 MB / 1.205 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003303/0.6763, allocations: 2.114 MB / 1.207 GB, free: 11.78 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001632/0.6765, allocations: 29.98 kB / 1.207 GB, free: 11.75 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.26e-05/0.6766, allocations: 56.56 kB / 1.207 GB, free: 11.69 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=209): time 4.147e-06/0.6766, allocations: 0 / 1.207 GB, free: 11.69 MB / 0.9669 GB Notification: Performance of matching and sorting (n=212): time 0.02726/0.7038, allocations: 10.61 MB / 1.217 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.43e-05/0.7039, allocations: 81.28 kB / 1.217 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004405/0.7084, allocations: 2.005 MB / 1.219 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0003619/0.7087, allocations: 61.7 kB / 1.219 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001941/0.7107, allocations: 2.404 MB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009382/0.7117, allocations: 0.724 MB / 1.222 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000467/0.7121, allocations: 215.1 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.7123, allocations: 305.1 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002397/0.7147, allocations: 1.372 MB / 1.224 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002951/0.7176, allocations: 2.108 MB / 1.226 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005544/0.7232, allocations: 3.766 MB / 1.23 GB, free: 3.234 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-05/0.7232, allocations: 8 kB / 1.23 GB, free: 3.227 MB / 0.9825 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009392/0.7326, allocations: 5.073 MB / 1.235 GB, free: 14.13 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.7327, allocations: 12 kB / 1.235 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.081e-05/0.7328, allocations: 28.12 kB / 1.235 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003807/0.7366, allocations: 1.571 MB / 1.237 GB, free: 12.51 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001906/0.7385, allocations: 451.2 kB / 1.237 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7173/1.456, allocations: 17.1 MB / 1.254 GB, free: 194.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002522/1.458, allocations: 144.7 kB / 1.254 GB, free: 194.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003229/1.459, allocations: 108.7 kB / 1.254 GB, free: 194.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003958/1.463, allocations: 1.952 MB / 1.256 GB, free: 194.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006542/1.463, allocations: 287.8 kB / 1.256 GB, free: 194.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008307/1.472, allocations: 4.451 MB / 1.26 GB, free: 193.4 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.002e-05/1.472, allocations: 20.12 kB / 1.26 GB, free: 193.4 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.144e-05/1.472, allocations: 16.91 kB / 1.26 GB, free: 193.4 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.825e-05/1.472, allocations: 17.45 kB / 1.26 GB, free: 193.4 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01823/1.49, allocations: 9.662 MB / 1.27 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.43e-05/1.49, allocations: 6.219 kB / 1.27 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/1.491, allocations: 234.4 kB / 1.27 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003487/1.495, allocations: 1.427 MB / 1.272 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002382/1.495, allocations: 47.56 kB / 1.272 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01882/1.514, allocations: 17.1 MB / 1.288 GB, free: 179.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.514, allocations: 7.875 kB / 1.288 GB, free: 179.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006487/1.52, allocations: 4.542 MB / 1.293 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001719/1.522, allocations: 0.6439 MB / 1.293 GB, free: 177 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004816/1.523, allocations: 36.72 kB / 1.293 GB, free: 177 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/1.524, allocations: 115.5 kB / 1.293 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005672/1.525, allocations: 182.4 kB / 1.294 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/1.525, allocations: 60.06 kB / 1.294 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001793/1.527, allocations: 1.316 MB / 1.295 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/1.527, allocations: 0 / 1.295 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003376/1.53, allocations: 1.143 MB / 1.296 GB, free: 176.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003038/1.53, allocations: 163.8 kB / 1.296 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006311/1.537, allocations: 4.691 MB / 1.301 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/1.537, allocations: 3.5 kB / 1.301 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003979/1.541, allocations: 2.932 MB / 1.304 GB, free: 171.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005317/1.546, allocations: 0.8316 MB / 1.305 GB, free: 171.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01459/1.561, allocations: 11.78 MB / 1.316 GB, free: 159.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003196/1.564, allocations: 3.694 MB / 1.32 GB, free: 155.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00193/1.566, allocations: 0.5519 MB / 1.32 GB, free: 155.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003674/1.566, allocations: 147.4 kB / 1.32 GB, free: 155.2 MB / 0.9981 GB Notification: Performance of SimCode: time 9.01e-07/1.566, allocations: 0 / 1.32 GB, free: 155.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.07102/1.637, allocations: 50.17 MB / 1.369 GB, free: 105.7 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches