Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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,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") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.002871/0.002871, allocations: 193.3 kB / 16.13 MB, free: 6.656 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.408/1.408, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.74/2.74, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 64.67 kB / 0.8984 GB, free: 37.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3359, allocations: 157.4 MB / 1.052 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03669/0.3726, allocations: 34.82 MB / 1.086 GB, free: 5.941 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01716/0.3898, allocations: 9.91 MB / 1.096 GB, free: 12 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003297/0.3932, allocations: 131.3 kB / 1.096 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00887/0.4021, allocations: 3.547 MB / 1.099 GB, free: 8.324 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.006322/0.4084, allocations: 1.917 MB / 1.101 GB, free: 6.398 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.006326/0.4148, allocations: 1.799 MB / 1.103 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01538/0.4302, allocations: 11.19 MB / 1.114 GB, free: 9.383 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01965/0.4499, allocations: 10.7 MB / 1.124 GB, free: 14.58 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006298/0.4562, allocations: 2.88 MB / 1.127 GB, free: 11.69 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007192/0.4634, allocations: 3.793 MB / 1.131 GB, free: 7.883 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.002375/0.4658, allocations: 464 kB / 1.131 GB, free: 7.43 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005017/0.4709, allocations: 1.451 MB / 1.133 GB, free: 5.977 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.005082/0.476, allocations: 2.389 MB / 1.135 GB, free: 3.582 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0119/0.4879, allocations: 2.847 MB / 1.138 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01819/0.5062, allocations: 10.19 MB / 1.148 GB, free: 6.5 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.5062, allocations: 0 / 1.148 GB, free: 6.5 MB / 0.9044 GB Notification: Performance of FrontEnd: time 4.388e-06/0.5062, allocations: 0 / 1.148 GB, free: 6.5 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0004683/0.5067, allocations: 3.938 kB / 1.148 GB, free: 6.496 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01788/0.5246, allocations: 5.405 MB / 1.153 GB, free: 1.02 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.5247, allocations: 15.95 kB / 1.153 GB, free: 1.004 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006001/0.5307, allocations: 0.9587 MB / 1.154 GB, free: 40 kB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007449/0.5382, allocations: 2.991 MB / 1.157 GB, free: 12.99 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003451/0.5386, allocations: 365.9 kB / 1.157 GB, free: 12.63 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001601/0.5402, allocations: 468.2 kB / 1.158 GB, free: 12.18 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02515/0.5653, allocations: 7.91 MB / 1.165 GB, free: 3.902 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000382/0.5658, allocations: 15.88 kB / 1.166 GB, free: 3.887 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001851/0.5677, allocations: 212 kB / 1.166 GB, free: 3.68 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000689/0.5684, allocations: 365.1 kB / 1.166 GB, free: 3.32 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0145/0.5829, allocations: 5.941 MB / 1.172 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04863/0.6316, allocations: 36.22 MB / 1.207 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00393/0.6355, allocations: 2.135 MB / 1.209 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00232/0.6379, allocations: 1.48 MB / 1.211 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001433/0.6381, allocations: 21.31 kB / 1.211 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.617e-05/0.6381, allocations: 55.81 kB / 1.211 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=157): time 3.898e-06/0.6382, allocations: 0 / 1.211 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of matching and sorting (n=160): time 0.01566/0.6538, allocations: 7.536 MB / 1.218 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.6539, allocations: 68.72 kB / 1.218 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003706/0.6576, allocations: 1.86 MB / 1.22 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0002058/0.6579, allocations: 53.7 kB / 1.22 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001835/0.6597, allocations: 2.127 MB / 1.222 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006498/0.6604, allocations: 0.5584 MB / 1.223 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008858/0.6613, allocations: 403.8 kB / 1.223 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001333/0.6614, allocations: 305.1 kB / 1.223 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001739/0.6632, allocations: 1.058 MB / 1.224 GB, free: 3.879 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002334/0.6655, allocations: 1.764 MB / 1.226 GB, free: 1.797 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00421/0.6697, allocations: 3.041 MB / 1.229 GB, free: 14.44 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.327e-05/0.6698, allocations: 8 kB / 1.229 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.007297/0.6771, allocations: 3.929 MB / 1.233 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/0.6771, allocations: 19.94 kB / 1.233 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-05/0.6772, allocations: 24 kB / 1.233 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002717/0.6799, allocations: 0.9314 MB / 1.234 GB, free: 9.441 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/0.6816, allocations: 427.3 kB / 1.234 GB, free: 9.023 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02136/0.703, allocations: 21.05 MB / 1.255 GB, free: 2.375 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00248/0.7056, allocations: 127.8 kB / 1.255 GB, free: 2.25 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006242/0.7062, allocations: 99.98 kB / 1.255 GB, free: 2.152 MB / 1.014 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004629/0.7108, allocations: 1.641 MB / 1.257 GB, free: 0.5 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000942/0.7118, allocations: 249.1 kB / 1.257 GB, free: 260 kB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6302/1.342, allocations: 3.269 MB / 1.26 GB, free: 187.2 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.18e-05/1.342, allocations: 16.19 kB / 1.26 GB, free: 187.2 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.859e-05/1.342, allocations: 10.72 kB / 1.26 GB, free: 187.2 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/1.342, allocations: 7.547 kB / 1.26 GB, free: 187.2 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01289/1.355, allocations: 7.554 MB / 1.268 GB, free: 186.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/1.355, allocations: 2.5 kB / 1.268 GB, free: 186.6 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/1.356, allocations: 216.8 kB / 1.268 GB, free: 186.5 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002598/1.359, allocations: 0.8933 MB / 1.269 GB, free: 186.4 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001686/1.359, allocations: 38.38 kB / 1.269 GB, free: 186.4 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01967/1.379, allocations: 21.01 MB / 1.289 GB, free: 171.4 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.287e-05/1.379, allocations: 4.875 kB / 1.289 GB, free: 171.4 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00668/1.385, allocations: 3.392 MB / 1.293 GB, free: 169.9 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001346/1.387, allocations: 0.5273 MB / 1.293 GB, free: 169.7 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003703/1.387, allocations: 32.66 kB / 1.293 GB, free: 169.6 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/1.388, allocations: 90.83 kB / 1.293 GB, free: 169.6 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005634/1.389, allocations: 141 kB / 1.293 GB, free: 169.6 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001147/1.389, allocations: 47.7 kB / 1.293 GB, free: 169.6 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001992/1.391, allocations: 1.221 MB / 1.295 GB, free: 169.1 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/1.391, allocations: 5 kB / 1.295 GB, free: 169.1 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.004058/1.395, allocations: 0.9078 MB / 1.295 GB, free: 169 MB / 1.014 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003689/1.395, allocations: 158 kB / 1.296 GB, free: 168.9 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.00765/1.403, allocations: 4.412 MB / 1.3 GB, free: 166.4 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-05/1.403, allocations: 5.875 kB / 1.3 GB, free: 166.4 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.004759/1.408, allocations: 2.987 MB / 1.303 GB, free: 164.5 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004936/1.413, allocations: 0.7666 MB / 1.304 GB, free: 164.3 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01544/1.428, allocations: 9.713 MB / 1.313 GB, free: 158.7 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004075/1.432, allocations: 3.203 MB / 1.316 GB, free: 157.5 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002255/1.435, allocations: 0.5312 MB / 1.317 GB, free: 157.4 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003952/1.435, allocations: 145.4 kB / 1.317 GB, free: 157.4 MB / 1.014 GB Notification: Performance of SimCode: time 1.012e-06/1.435, allocations: 0 / 1.317 GB, free: 157.4 MB / 1.014 GB Notification: Performance of Templates: time 0.06706/1.502, allocations: 41.52 MB / 1.357 GB, free: 124.3 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches