Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009386/0.009385, allocations: 102 kB / 15.73 MB, free: 6.035 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.002127/0.002127, allocations: 187.9 kB / 16.67 MB, free: 5.969 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.499/1.499, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.485/2.485, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 66.98 kB / 0.9509 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3902/0.3915, allocations: 140.4 MB / 1.088 GB, free: 1.496 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.04233/0.4339, allocations: 34.85 MB / 1.122 GB, free: 14.53 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02227/0.4562, allocations: 11.5 MB / 1.133 GB, free: 3.004 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004635/0.4609, allocations: 159.2 kB / 1.133 GB, free: 2.848 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01195/0.4729, allocations: 4.241 MB / 1.137 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.007445/0.4804, allocations: 2.002 MB / 1.139 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.007493/0.4879, allocations: 2.404 MB / 1.142 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01199/0.4999, allocations: 8.464 MB / 1.15 GB, free: 1.695 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01534/0.5153, allocations: 11.12 MB / 1.161 GB, free: 6.457 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006571/0.5219, allocations: 3.743 MB / 1.165 GB, free: 2.703 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007242/0.5291, allocations: 4.186 MB / 1.169 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.002187/0.5314, allocations: 0.7773 MB / 1.169 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005379/0.5368, allocations: 2.032 MB / 1.171 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.004547/0.5413, allocations: 3.053 MB / 1.174 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.006112/0.5475, allocations: 3.404 MB / 1.178 GB, free: 5.215 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01674/0.5642, allocations: 11.98 MB / 1.189 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 1.187e-05/0.5643, allocations: 0 / 1.189 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.765e-06/0.5643, allocations: 0 / 1.189 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0004403/0.5648, allocations: 0 / 1.189 GB, free: 9.199 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01473/0.5795, allocations: 5.8 MB / 1.195 GB, free: 3.328 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.5796, allocations: 15.97 kB / 1.195 GB, free: 3.312 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006181/0.5858, allocations: 1.064 MB / 1.196 GB, free: 2.242 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007448/0.5932, allocations: 3.446 MB / 1.199 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004679/0.5937, allocations: 423.3 kB / 1.2 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001756/0.5955, allocations: 0.5354 MB / 1.2 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01907/0.6146, allocations: 9.075 MB / 1.209 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001535/0.6148, allocations: 35.62 kB / 1.209 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006014/0.6154, allocations: 236 kB / 1.21 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003532/0.6157, allocations: 350.8 kB / 1.21 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01414/0.6299, allocations: 6.826 MB / 1.217 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04501/0.6749, allocations: 39.79 MB / 1.255 GB, free: 1.441 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.7208/1.396, allocations: 3.107 MB / 1.258 GB, free: 153 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003397/1.399, allocations: 1.989 MB / 1.26 GB, free: 152.9 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001111/1.399, allocations: 18.81 kB / 1.26 GB, free: 152.9 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/1.399, allocations: 51.42 kB / 1.26 GB, free: 152.9 MB / 1.014 GB Notification: Performance of pre-optimization done (n=179): time 3.386e-06/1.399, allocations: 0.6562 kB / 1.26 GB, free: 152.9 MB / 1.014 GB Notification: Performance of matching and sorting (n=182): time 0.02932/1.429, allocations: 9.978 MB / 1.27 GB, free: 149.6 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/1.429, allocations: 75.34 kB / 1.27 GB, free: 149.6 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00339/1.432, allocations: 1.523 MB / 1.272 GB, free: 148.9 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001813/1.432, allocations: 55.83 kB / 1.272 GB, free: 148.9 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.002073/1.435, allocations: 2.258 MB / 1.274 GB, free: 147.2 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006207/1.435, allocations: 0.6253 MB / 1.275 GB, free: 146.7 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007241/1.436, allocations: 407.6 kB / 1.275 GB, free: 146.5 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 6.661e-05/1.436, allocations: 301.8 kB / 1.275 GB, free: 146.2 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001894/1.438, allocations: 1.183 MB / 1.276 GB, free: 145.8 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002415/1.44, allocations: 1.879 MB / 1.278 GB, free: 144.4 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004419/1.445, allocations: 3.374 MB / 1.282 GB, free: 142.4 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.581e-05/1.445, allocations: 10.19 kB / 1.282 GB, free: 142.4 MB / 1.014 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.008828/1.454, allocations: 4.576 MB / 1.286 GB, free: 140.6 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.838e-05/1.454, allocations: 21.72 kB / 1.286 GB, free: 140.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-05/1.454, allocations: 21.41 kB / 1.286 GB, free: 140.6 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00414/1.458, allocations: 1.586 MB / 1.288 GB, free: 140.2 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/1.459, allocations: 354.9 kB / 1.288 GB, free: 140.1 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02225/1.482, allocations: 18.57 MB / 1.306 GB, free: 128.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002558/1.484, allocations: 119.5 kB / 1.306 GB, free: 128.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002326/1.484, allocations: 103.8 kB / 1.306 GB, free: 128.8 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 (177): * Single equations (assignments): 173 * 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 {(12,26,30.6%), (6,24,66.7%), (6,16,66.7%), (6,16,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004191/1.489, allocations: 1.893 MB / 1.308 GB, free: 128 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006056/1.489, allocations: 228.1 kB / 1.308 GB, free: 127.9 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005995/1.495, allocations: 4.087 MB / 1.312 GB, free: 126.2 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.367e-05/1.495, allocations: 19.72 kB / 1.312 GB, free: 126.2 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.108e-05/1.495, allocations: 19.66 kB / 1.312 GB, free: 126.2 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/1.495, allocations: 14.38 kB / 1.312 GB, free: 126.2 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01435/1.51, allocations: 9.459 MB / 1.322 GB, free: 120.4 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/1.51, allocations: 13.02 kB / 1.322 GB, free: 120.4 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007978/1.511, allocations: 180.2 kB / 1.322 GB, free: 120.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002965/1.514, allocations: 1.353 MB / 1.323 GB, free: 119.7 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/1.514, allocations: 35.94 kB / 1.323 GB, free: 119.7 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0165/1.53, allocations: 17.34 MB / 1.34 GB, free: 102.4 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/1.53, allocations: 12.06 kB / 1.34 GB, free: 102.4 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0059/1.536, allocations: 4.082 MB / 1.344 GB, free: 98.26 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001363/1.538, allocations: 0.5241 MB / 1.345 GB, free: 97.71 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002627/1.538, allocations: 39.94 kB / 1.345 GB, free: 97.68 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009401/1.539, allocations: 87.89 kB / 1.345 GB, free: 97.59 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004845/1.539, allocations: 161.6 kB / 1.345 GB, free: 97.43 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.496e-05/1.539, allocations: 54.41 kB / 1.345 GB, free: 97.38 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001164/1.541, allocations: 1.005 MB / 1.346 GB, free: 96.36 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.21e-07/1.541, allocations: 0 / 1.346 GB, free: 96.36 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.003695/1.544, allocations: 0.9883 MB / 1.347 GB, free: 95.37 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 (85): * Single equations (assignments): 81 * 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 {(6,16,66.7%), (6,16,66.7%), (6,24,66.7%), (6,24,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002639/1.544, allocations: 143.1 kB / 1.347 GB, free: 95.22 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.00602/1.551, allocations: 4.299 MB / 1.351 GB, free: 90.88 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.551, allocations: 4 kB / 1.351 GB, free: 90.87 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003583/1.554, allocations: 2.673 MB / 1.354 GB, free: 88.16 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00355/1.558, allocations: 0.788 MB / 1.355 GB, free: 87.42 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01545/1.573, allocations: 8.583 MB / 1.363 GB, free: 78.77 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003291/1.577, allocations: 3.573 MB / 1.367 GB, free: 75.16 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001419/1.578, allocations: 463.9 kB / 1.367 GB, free: 74.71 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002653/1.578, allocations: 111.4 kB / 1.367 GB, free: 74.6 MB / 1.014 GB Notification: Performance of SimCode: time 8.52e-07/1.578, allocations: 4 kB / 1.367 GB, free: 74.59 MB / 1.014 GB Notification: Performance of Templates: time 0.06534/1.644, allocations: 44.61 MB / 1.411 GB, free: 30.43 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches