Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001172/0.001172, allocations: 198.4 kB / 16.14 MB, free: 6.793 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.389/1.389, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.794/2.794, allocations: 461.8 MB / 0.7342 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 62 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4295/0.4308, allocations: 157.4 MB / 1.052 GB, free: 8.812 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.007882/0.4388, allocations: 5.572 MB / 1.058 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00499/0.4438, allocations: 2.654 MB / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005158/0.4444, allocations: 23.81 kB / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001778/0.4462, allocations: 0.6414 MB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001031/0.4472, allocations: 386.1 kB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.4483, allocations: 359.3 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001288/0.4496, allocations: 1.255 MB / 1.063 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007687/0.4504, allocations: 458.3 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004227/0.4508, allocations: 330.6 kB / 1.063 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005486/0.4513, allocations: 410.4 kB / 1.064 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.084e-05/0.4514, allocations: 32 kB / 1.064 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008946/0.4523, allocations: 443.1 kB / 1.064 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002435/0.4526, allocations: 235.3 kB / 1.065 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003275/0.4529, allocations: 334.2 kB / 1.065 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001043/0.454, allocations: 0.9733 MB / 1.066 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.454, allocations: 4 kB / 1.066 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.142e-06/0.454, allocations: 0 / 1.066 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.214e-05/0.454, allocations: 0 / 1.066 GB, free: 10.72 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001716/0.4557, allocations: 0.9737 MB / 1.067 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.4558, allocations: 8.031 kB / 1.067 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001364/0.4572, allocations: 203.8 kB / 1.067 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007275/0.4579, allocations: 494.4 kB / 1.067 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.458, allocations: 37.38 kB / 1.067 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001834/0.4581, allocations: 60.47 kB / 1.068 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.4594, allocations: 0.8241 MB / 1.068 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.774e-05/0.4594, allocations: 11.84 kB / 1.068 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.079e-05/0.4595, allocations: 23.98 kB / 1.068 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001966/0.4597, allocations: 64.95 kB / 1.068 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008847/0.4606, allocations: 0.5736 MB / 1.069 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004415/0.465, allocations: 4.577 MB / 1.073 GB, free: 2.363 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005022/0.4655, allocations: 299.2 kB / 1.074 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003294/0.4658, allocations: 225.3 kB / 1.074 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.4659, allocations: 4.281 kB / 1.074 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.4659, allocations: 34.84 kB / 1.074 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=33): time 2.535e-06/0.4659, allocations: 0 / 1.074 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40): time 0.00579/0.4717, allocations: 2.638 MB / 1.077 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.4718, allocations: 59.41 kB / 1.077 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004934/0.4723, allocations: 466 kB / 1.077 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.296e-05/0.4724, allocations: 29.7 kB / 1.077 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000295/0.4727, allocations: 339.7 kB / 1.077 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.4728, allocations: 149.8 kB / 1.078 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001727/0.473, allocations: 106.1 kB / 1.078 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002042/0.4732, allocations: 362.8 kB / 1.078 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004167/0.4736, allocations: 241 kB / 1.078 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006104/0.4742, allocations: 414.4 kB / 1.079 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008992/0.4751, allocations: 0.67 MB / 1.079 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.4752, allocations: 4 kB / 1.079 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001713/0.4769, allocations: 0.9215 MB / 1.08 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.4769, allocations: 9.719 kB / 1.08 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.4769, allocations: 4 kB / 1.08 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008154/0.4778, allocations: 218.5 kB / 1.08 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005903/0.4784, allocations: 119.7 kB / 1.081 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005161/0.4835, allocations: 4.942 MB / 1.085 GB, free: 5.402 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005556/0.4841, allocations: 31.97 kB / 1.085 GB, free: 5.371 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.635e-05/0.4842, allocations: 28.05 kB / 1.085 GB, free: 5.344 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0004072/0.4846, allocations: 221.6 kB / 1.086 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.802e-05/0.4847, allocations: 55.34 kB / 1.086 GB, free: 5.062 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.4862, allocations: 0.7772 MB / 1.086 GB, free: 4.27 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.4862, allocations: 4 kB / 1.086 GB, free: 4.266 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.4862, allocations: 4 kB / 1.086 GB, free: 4.262 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.4862, allocations: 3.984 kB / 1.086 GB, free: 4.258 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002564/0.4888, allocations: 1.51 MB / 1.088 GB, free: 2.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.4888, allocations: 0 / 1.088 GB, free: 2.66 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003779/0.4892, allocations: 67.89 kB / 1.088 GB, free: 2.594 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006887/0.4899, allocations: 206.6 kB / 1.088 GB, free: 2.383 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.4899, allocations: 8 kB / 1.088 GB, free: 2.375 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005218/0.4952, allocations: 4.868 MB / 1.093 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4952, allocations: 4.062 kB / 1.093 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001972/0.4972, allocations: 1.15 MB / 1.094 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/0.4975, allocations: 168.4 kB / 1.094 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.963e-05/0.4975, allocations: 12 kB / 1.094 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003183/0.4979, allocations: 28.17 kB / 1.094 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.498, allocations: 39.88 kB / 1.094 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.105e-05/0.498, allocations: 16 kB / 1.094 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004739/0.4985, allocations: 314.9 kB / 1.095 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4985, allocations: 3.938 kB / 1.095 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008295/0.4993, allocations: 168 kB / 1.095 GB, free: 11.15 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002229/0.4996, allocations: 111.2 kB / 1.095 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001814/0.5014, allocations: 1.005 MB / 1.096 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/0.5014, allocations: 4.125 kB / 1.096 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.5025, allocations: 0.6836 MB / 1.097 GB, free: 9.266 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009602/0.5034, allocations: 164.2 kB / 1.097 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.5058, allocations: 1.507 MB / 1.098 GB, free: 7.551 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005958/0.5065, allocations: 0.9571 MB / 1.099 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000401/0.5069, allocations: 117 kB / 1.099 GB, free: 6.449 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.507, allocations: 39.44 kB / 1.099 GB, free: 6.41 MB / 0.8575 GB Notification: Performance of SimCode: time 1.232e-06/0.507, allocations: 0 / 1.099 GB, free: 6.41 MB / 0.8575 GB Notification: Performance of Templates: time 0.01697/0.524, allocations: 8.543 MB / 1.108 GB, free: 13.97 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches