Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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 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.OnePhase.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.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.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.OnePhase.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.001669/0.001669, allocations: 111.3 kB / 15.34 MB, free: 0.5078 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.001814/0.001813, allocations: 195 kB / 16.25 MB, free: 6.152 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.546/1.546, allocations: 222.9 MB / 239.9 MB, free: 4.488 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.013/3.013, allocations: 482.3 MB / 0.7542 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00208/0.00208, allocations: 70.28 kB / 0.9232 GB, free: 29.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3841/0.3862, allocations: 162.2 MB / 1.082 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007949/0.3942, allocations: 5.493 MB / 1.087 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.004651/0.3989, allocations: 2.596 MB / 1.09 GB, free: 5.621 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000311/0.3992, allocations: 23.81 kB / 1.09 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001891/0.4012, allocations: 0.6422 MB / 1.09 GB, free: 4.953 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0008938/0.4021, allocations: 378.1 kB / 1.091 GB, free: 4.582 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009259/0.403, allocations: 358.3 kB / 1.091 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001056/0.4041, allocations: 0.9553 MB / 1.092 GB, free: 3.273 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008221/0.4049, allocations: 0.5104 MB / 1.092 GB, free: 2.766 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004781/0.4054, allocations: 370.5 kB / 1.093 GB, free: 2.402 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005412/0.4059, allocations: 414.5 kB / 1.093 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.813e-05/0.406, allocations: 48 kB / 1.093 GB, free: 1.949 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006218/0.4066, allocations: 367.2 kB / 1.093 GB, free: 1.59 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002636/0.4069, allocations: 251.3 kB / 1.094 GB, free: 1.344 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003824/0.4073, allocations: 346.3 kB / 1.094 GB, free: 1.004 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.4084, allocations: 0.9928 MB / 1.095 GB, free: 8 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.4084, allocations: 0 / 1.095 GB, free: 8 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.283e-06/0.4084, allocations: 3.938 kB / 1.095 GB, free: 4 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.608e-06/0.4084, allocations: 0 / 1.095 GB, free: 4 kB / 0.8419 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.001664/0.4101, allocations: 0.966 MB / 1.096 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.4102, allocations: 8.031 kB / 1.096 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001329/0.4115, allocations: 195.8 kB / 1.096 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007322/0.4122, allocations: 494.4 kB / 1.097 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.125e-05/0.4123, allocations: 41.31 kB / 1.097 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001584/0.4125, allocations: 48.55 kB / 1.097 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.4137, allocations: 0.8318 MB / 1.098 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.4138, allocations: 4 kB / 1.098 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.907e-05/0.4138, allocations: 24 kB / 1.098 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001953/0.414, allocations: 64.94 kB / 1.098 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009158/0.415, allocations: 0.5774 MB / 1.098 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004935/0.4199, allocations: 4.585 MB / 1.103 GB, free: 7.66 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004916/0.4204, allocations: 295.2 kB / 1.103 GB, free: 7.363 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003573/0.4208, allocations: 229.3 kB / 1.103 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/0.4208, allocations: 288 / 1.103 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.4209, allocations: 38.84 kB / 1.103 GB, free: 7.09 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=33): time 4.328e-06/0.4209, allocations: 0 / 1.103 GB, free: 7.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=40): time 0.005828/0.4267, allocations: 2.631 MB / 1.106 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.4268, allocations: 55.41 kB / 1.106 GB, free: 4.266 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005734/0.4274, allocations: 461.8 kB / 1.106 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.665e-05/0.4274, allocations: 41.7 kB / 1.106 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003216/0.4277, allocations: 339.6 kB / 1.107 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.4279, allocations: 145.9 kB / 1.107 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.4281, allocations: 102.2 kB / 1.107 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001814/0.4283, allocations: 362.8 kB / 1.107 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003794/0.4286, allocations: 241 kB / 1.107 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005032/0.4292, allocations: 402.5 kB / 1.108 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000988/0.4302, allocations: 0.6778 MB / 1.108 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4302, allocations: 4 kB / 1.108 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001761/0.4319, allocations: 0.9207 MB / 1.109 GB, free: 416 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.432, allocations: 11.94 kB / 1.109 GB, free: 404 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.432, allocations: 8.656 kB / 1.109 GB, free: 396 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008322/0.4328, allocations: 226.4 kB / 1.11 GB, free: 160 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005151/0.4334, allocations: 115.8 kB / 1.11 GB, free: 44 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005853/0.4392, allocations: 5.343 MB / 1.115 GB, free: 10.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/0.4397, allocations: 31.97 kB / 1.115 GB, free: 10.24 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.529e-05/0.4398, allocations: 23.98 kB / 1.115 GB, free: 10.21 MB / 0.8731 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.0003393/0.4401, allocations: 217.7 kB / 1.115 GB, free: 9.992 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.4402, allocations: 59.47 kB / 1.115 GB, free: 9.934 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/0.4418, allocations: 0.7734 MB / 1.116 GB, free: 9.145 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.4418, allocations: 11.92 kB / 1.116 GB, free: 9.133 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.4419, allocations: 4 kB / 1.116 GB, free: 9.129 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.4419, allocations: 7.984 kB / 1.116 GB, free: 9.121 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/0.4444, allocations: 1.498 MB / 1.117 GB, free: 7.535 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.4445, allocations: 4 kB / 1.117 GB, free: 7.531 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003862/0.4448, allocations: 59.95 kB / 1.118 GB, free: 7.473 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006975/0.4456, allocations: 210.5 kB / 1.118 GB, free: 7.258 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.156e-05/0.4456, allocations: 16.17 kB / 1.118 GB, free: 7.242 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005848/0.4515, allocations: 5.273 MB / 1.123 GB, free: 1.555 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4515, allocations: 0 / 1.123 GB, free: 1.555 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.4534, allocations: 1.143 MB / 1.124 GB, free: 372 kB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003163/0.4537, allocations: 168.4 kB / 1.124 GB, free: 184 kB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.439e-05/0.4538, allocations: 11.94 kB / 1.124 GB, free: 172 kB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003312/0.4541, allocations: 27.97 kB / 1.124 GB, free: 144 kB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.4543, allocations: 36.02 kB / 1.124 GB, free: 108 kB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.4543, allocations: 16 kB / 1.124 GB, free: 92 kB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000382/0.4547, allocations: 306.9 kB / 1.125 GB, free: 15.79 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4547, allocations: 0 / 1.125 GB, free: 15.79 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0006971/0.4554, allocations: 168 kB / 1.125 GB, free: 15.63 MB / 0.8887 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.0001711/0.4556, allocations: 119.1 kB / 1.125 GB, free: 15.5 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001824/0.4574, allocations: 1.055 MB / 1.126 GB, free: 14.41 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4575, allocations: 0 / 1.126 GB, free: 14.41 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.4586, allocations: 0.6877 MB / 1.127 GB, free: 13.68 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008969/0.4595, allocations: 181 kB / 1.127 GB, free: 13.5 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.462, allocations: 1.496 MB / 1.128 GB, free: 11.96 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006256/0.4627, allocations: 0.9494 MB / 1.129 GB, free: 10.98 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0003652/0.4631, allocations: 117 kB / 1.129 GB, free: 10.87 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.4632, allocations: 35.44 kB / 1.129 GB, free: 10.83 MB / 0.8887 GB Notification: Performance of SimCode: time 2.41e-07/0.4632, allocations: 0 / 1.129 GB, free: 10.83 MB / 0.8887 GB Notification: Performance of Templates: time 0.01751/0.4807, allocations: 8.9 MB / 1.138 GB, free: 2.047 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches