Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.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.001143/0.001143, allocations: 104 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001195, allocations: 196.5 kB / 16.54 MB, free: 6.684 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.431/1.431, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.913/2.913, allocations: 472.7 MB / 0.7452 GB, free: 4.656 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 63.58 kB / 0.9121 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4054/0.4072, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.008872/0.4161, allocations: 6.814 MB / 1.075 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.005489/0.4217, allocations: 3.051 MB / 1.078 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007451/0.4224, allocations: 31.81 kB / 1.078 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.002615/0.4251, allocations: 0.9527 MB / 1.079 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001513/0.4266, allocations: 0.4972 MB / 1.079 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0012/0.4278, allocations: 447 kB / 1.08 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001322/0.4291, allocations: 1.232 MB / 1.081 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009151/0.4301, allocations: 0.6586 MB / 1.082 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005259/0.4306, allocations: 482.3 kB / 1.082 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006252/0.4312, allocations: 0.5175 MB / 1.083 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 9.812e-05/0.4313, allocations: 64 kB / 1.083 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007059/0.4321, allocations: 375.3 kB / 1.083 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002899/0.4324, allocations: 311.2 kB / 1.083 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000432/0.4328, allocations: 457.7 kB / 1.084 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001268/0.4341, allocations: 1.203 MB / 1.085 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.4341, allocations: 0 / 1.085 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.814e-06/0.4341, allocations: 3.938 kB / 1.085 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.558e-05/0.4341, allocations: 4 kB / 1.085 GB, free: 9.32 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002031/0.4362, allocations: 1.161 MB / 1.086 GB, free: 8.105 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.4362, allocations: 16.03 kB / 1.086 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001524/0.4377, allocations: 235.6 kB / 1.086 GB, free: 7.859 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007955/0.4386, allocations: 0.5491 MB / 1.087 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.607e-05/0.4386, allocations: 57.67 kB / 1.087 GB, free: 7.219 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.4387, allocations: 60.36 kB / 1.087 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.4402, allocations: 1.097 MB / 1.088 GB, free: 5.953 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/0.4403, allocations: 3.938 kB / 1.088 GB, free: 5.949 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.299e-05/0.4404, allocations: 31.98 kB / 1.088 GB, free: 5.918 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000215/0.4406, allocations: 85.25 kB / 1.088 GB, free: 5.832 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/0.4417, allocations: 0.7465 MB / 1.089 GB, free: 5.086 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005604/0.4473, allocations: 5.901 MB / 1.095 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009859/0.4483, allocations: 0.5477 MB / 1.095 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004388/0.4488, allocations: 330 kB / 1.095 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.464e-05/0.4488, allocations: 4.438 kB / 1.095 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.4489, allocations: 42.94 kB / 1.095 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=47): time 2.665e-06/0.4489, allocations: 0 / 1.095 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.003916/0.4528, allocations: 1.986 MB / 1.097 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.4529, allocations: 55.84 kB / 1.097 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006079/0.4535, allocations: 0.5626 MB / 1.098 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.945e-05/0.4535, allocations: 33.7 kB / 1.098 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002865/0.4538, allocations: 414.9 kB / 1.098 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.454, allocations: 173.6 kB / 1.099 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001977/0.4542, allocations: 126.5 kB / 1.099 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001833/0.4544, allocations: 386.7 kB / 1.099 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/0.4547, allocations: 269.8 kB / 1.099 GB, free: 9.695 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000553/0.4553, allocations: 493 kB / 1.1 GB, free: 9.121 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.4563, allocations: 0.821 MB / 1.101 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4564, allocations: 0 / 1.101 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001788/0.4581, allocations: 1.086 MB / 1.102 GB, free: 7.094 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.4582, allocations: 8 kB / 1.102 GB, free: 7.086 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.512e-05/0.4582, allocations: 8 kB / 1.102 GB, free: 7.078 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008479/0.4591, allocations: 283.8 kB / 1.102 GB, free: 6.789 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004765/0.4596, allocations: 127.8 kB / 1.102 GB, free: 6.664 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006934/0.4665, allocations: 7.137 MB / 1.109 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006776/0.4672, allocations: 39.91 kB / 1.109 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.811e-05/0.4673, allocations: 36.06 kB / 1.109 GB, free: 14.89 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,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.0003971/0.4677, allocations: 259.5 kB / 1.109 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.4679, allocations: 75.14 kB / 1.109 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001624/0.4695, allocations: 0.8848 MB / 1.11 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.4695, allocations: 4 kB / 1.11 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.4695, allocations: 4 kB / 1.11 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.4695, allocations: 3.984 kB / 1.11 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002544/0.4721, allocations: 1.72 MB / 1.112 GB, free: 11.83 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.4721, allocations: 0 / 1.112 GB, free: 11.83 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002657/0.4724, allocations: 63.83 kB / 1.112 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007287/0.4731, allocations: 271.3 kB / 1.112 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.302e-05/0.4732, allocations: 12 kB / 1.112 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006429/0.4796, allocations: 7.122 MB / 1.119 GB, free: 3.793 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.4796, allocations: 3.938 kB / 1.119 GB, free: 3.789 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.4813, allocations: 0.9874 MB / 1.12 GB, free: 2.754 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002986/0.4816, allocations: 196.1 kB / 1.12 GB, free: 2.543 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.976e-05/0.4817, allocations: 12.19 kB / 1.12 GB, free: 2.531 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003643/0.482, allocations: 35.91 kB / 1.121 GB, free: 2.496 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.4822, allocations: 47.88 kB / 1.121 GB, free: 2.449 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-05/0.4822, allocations: 16 kB / 1.121 GB, free: 2.434 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004511/0.4827, allocations: 387.1 kB / 1.121 GB, free: 2.059 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4827, allocations: 3.938 kB / 1.121 GB, free: 2.055 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0008206/0.4835, allocations: 224 kB / 1.121 GB, free: 1.836 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,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.0001774/0.4837, allocations: 123.7 kB / 1.121 GB, free: 1.703 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002152/0.4858, allocations: 1.33 MB / 1.123 GB, free: 332 kB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.4859, allocations: 0 / 1.123 GB, free: 332 kB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001231/0.4871, allocations: 0.8971 MB / 1.123 GB, free: 15.38 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.4882, allocations: 219.3 kB / 1.124 GB, free: 15.17 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002217/0.4904, allocations: 1.346 MB / 1.125 GB, free: 13.78 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006515/0.4911, allocations: 1.016 MB / 1.126 GB, free: 12.73 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0004171/0.4915, allocations: 118 kB / 1.126 GB, free: 12.62 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.4916, allocations: 39.44 kB / 1.126 GB, free: 12.58 MB / 0.8887 GB Notification: Performance of SimCode: time 6.01e-07/0.4916, allocations: 4 kB / 1.126 GB, free: 12.57 MB / 0.8887 GB Notification: Performance of Templates: time 0.01984/0.5115, allocations: 11.18 MB / 1.137 GB, free: 1.523 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches