Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.001577/0.001577, allocations: 103.4 kB / 15.33 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.001912/0.001912, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.414/1.414, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.863/2.863, allocations: 472.7 MB / 0.7449 GB, free: 4.871 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 64.58 kB / 0.9116 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2939, allocations: 159.9 MB / 1.068 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.03078/0.3247, allocations: 26.44 MB / 1.094 GB, free: 208 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0139/0.3386, allocations: 8.005 MB / 1.101 GB, free: 8.176 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002417/0.3411, allocations: 107.4 kB / 1.101 GB, free: 8.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.006905/0.348, allocations: 2.585 MB / 1.104 GB, free: 5.484 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004934/0.353, allocations: 1.458 MB / 1.105 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.005107/0.3581, allocations: 1.54 MB / 1.107 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00905/0.3672, allocations: 6.154 MB / 1.113 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.014/0.3812, allocations: 8.959 MB / 1.122 GB, free: 3.254 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004506/0.3858, allocations: 2.609 MB / 1.124 GB, free: 0.6367 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00598/0.3918, allocations: 2.979 MB / 1.127 GB, free: 13.65 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.002613/0.3944, allocations: 0.5078 MB / 1.128 GB, free: 13.14 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004371/0.3988, allocations: 1.279 MB / 1.129 GB, free: 11.86 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.00392/0.4028, allocations: 2.05 MB / 1.131 GB, free: 9.805 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.005582/0.4084, allocations: 2.385 MB / 1.133 GB, free: 7.41 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01219/0.4206, allocations: 8.067 MB / 1.141 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.4207, allocations: 0 / 1.141 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of FrontEnd: time 4.489e-06/0.4207, allocations: 7.938 kB / 1.141 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0003461/0.421, allocations: 0 / 1.141 GB, free: 15.31 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01328/0.4343, allocations: 4.224 MB / 1.145 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.67e-05/0.4344, allocations: 12.03 kB / 1.145 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005213/0.4396, allocations: 0.8 MB / 1.146 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005601/0.4452, allocations: 2.428 MB / 1.148 GB, free: 7.723 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003212/0.4456, allocations: 275.6 kB / 1.149 GB, free: 7.453 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001581/0.4472, allocations: 380.5 kB / 1.149 GB, free: 7.082 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01525/0.4625, allocations: 5.996 MB / 1.155 GB, free: 0.832 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002173/0.4627, allocations: 19.78 kB / 1.155 GB, free: 0.8125 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001191/0.4639, allocations: 160 kB / 1.155 GB, free: 0.6562 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006993/0.4646, allocations: 282.9 kB / 1.155 GB, free: 388 kB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01016/0.4748, allocations: 4.516 MB / 1.16 GB, free: 11.86 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03902/0.5139, allocations: 27.65 MB / 1.187 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001966/0.5159, allocations: 1.129 MB / 1.188 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001703/0.5176, allocations: 1.023 MB / 1.189 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001268/0.5178, allocations: 13 kB / 1.189 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.842e-05/0.5178, allocations: 47.5 kB / 1.189 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=110): time 6.082e-06/0.5179, allocations: 3.938 kB / 1.189 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of matching and sorting (n=131): time 0.02398/0.5418, allocations: 9.672 MB / 1.198 GB, free: 1.586 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.5419, allocations: 64.72 kB / 1.198 GB, free: 1.512 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002432/0.5444, allocations: 1.498 MB / 1.2 GB, free: 16 kB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0002377/0.5446, allocations: 45.7 kB / 1.2 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.5458, allocations: 1.674 MB / 1.202 GB, free: 14.27 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005682/0.5464, allocations: 465.4 kB / 1.202 GB, free: 13.8 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006538/0.5471, allocations: 327.2 kB / 1.202 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.5472, allocations: 309.1 kB / 1.203 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001461/0.5487, allocations: 0.9135 MB / 1.203 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001855/0.5505, allocations: 1.467 MB / 1.205 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00343/0.554, allocations: 2.55 MB / 1.207 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/0.554, allocations: 4 kB / 1.207 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006161/0.5602, allocations: 3.282 MB / 1.211 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.5602, allocations: 12 kB / 1.211 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.26e-05/0.5603, allocations: 23.97 kB / 1.211 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002394/0.5627, allocations: 0.7417 MB / 1.211 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001697/0.5644, allocations: 383.4 kB / 1.212 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01864/0.583, allocations: 17.05 MB / 1.228 GB, free: 0.9492 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002052/0.5851, allocations: 103.8 kB / 1.228 GB, free: 0.8477 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.5853, allocations: 76 kB / 1.229 GB, free: 0.7734 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002302/0.5876, allocations: 1.311 MB / 1.23 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004184/0.588, allocations: 201.6 kB / 1.23 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005041/0.5931, allocations: 2.788 MB / 1.233 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.5931, allocations: 19.92 kB / 1.233 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/0.5931, allocations: 8 kB / 1.233 GB, free: 12.4 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.5931, allocations: 3.984 kB / 1.233 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01045/0.6036, allocations: 6.221 MB / 1.239 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.66e-05/0.6037, allocations: 4 kB / 1.239 GB, free: 6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.6049, allocations: 231.7 kB / 1.239 GB, free: 5.773 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002066/0.6069, allocations: 0.6749 MB / 1.24 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/0.6071, allocations: 35.92 kB / 1.24 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5038/1.111, allocations: 16.79 MB / 1.256 GB, free: 154.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.111, allocations: 9.375 kB / 1.256 GB, free: 154.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005567/1.117, allocations: 4.002 MB / 1.26 GB, free: 154.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008369/1.117, allocations: 459.2 kB / 1.261 GB, free: 154.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002466/1.118, allocations: 37.28 kB / 1.261 GB, free: 154.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008821/1.119, allocations: 87.47 kB / 1.261 GB, free: 154.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003053/1.119, allocations: 119.1 kB / 1.261 GB, free: 154.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.196e-05/1.119, allocations: 36.62 kB / 1.261 GB, free: 154.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001187/1.12, allocations: 0.9918 MB / 1.262 GB, free: 154.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.41e-07/1.12, allocations: 0 / 1.262 GB, free: 154.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001967/1.122, allocations: 0.6847 MB / 1.262 GB, free: 154.1 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002349/1.122, allocations: 151.3 kB / 1.263 GB, free: 154 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.005856/1.128, allocations: 4.094 MB / 1.267 GB, free: 152.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.046e-06/1.128, allocations: 1.688 kB / 1.267 GB, free: 152.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003078/1.131, allocations: 2.295 MB / 1.269 GB, free: 150.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002946/1.134, allocations: 0.6751 MB / 1.269 GB, free: 150.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/1.145, allocations: 8.102 MB / 1.277 GB, free: 145.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002927/1.148, allocations: 2.667 MB / 1.28 GB, free: 144.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00182/1.15, allocations: 491.6 kB / 1.28 GB, free: 144.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003498/1.151, allocations: 117.3 kB / 1.281 GB, free: 144.6 MB / 0.9981 GB Notification: Performance of SimCode: time 8.82e-07/1.151, allocations: 1.406 kB / 1.281 GB, free: 144.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.0575/1.208, allocations: 33.83 MB / 1.314 GB, free: 131.3 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches