Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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 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_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001358, 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.001565/0.001565, allocations: 195.9 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.407/1.407, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.764/2.764, allocations: 472.6 MB / 0.7448 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 67.34 kB / 0.9116 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3252, allocations: 159.9 MB / 1.068 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.0363/0.3615, allocations: 33.04 MB / 1.1 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02508/0.3866, allocations: 14.67 MB / 1.114 GB, free: 10.86 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004675/0.3913, allocations: 143.2 kB / 1.114 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.009804/0.4012, allocations: 3.416 MB / 1.118 GB, free: 7.301 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.01113/0.4124, allocations: 2.662 MB / 1.12 GB, free: 4.625 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.00789/0.4203, allocations: 2.138 MB / 1.122 GB, free: 2.488 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01295/0.4333, allocations: 8.839 MB / 1.131 GB, free: 9.621 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0175/0.4508, allocations: 11.37 MB / 1.142 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00686/0.4577, allocations: 3.999 MB / 1.146 GB, free: 10.12 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006895/0.4646, allocations: 4.217 MB / 1.15 GB, free: 5.895 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.002077/0.4667, allocations: 0.7188 MB / 1.151 GB, free: 5.176 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004282/0.471, allocations: 1.716 MB / 1.153 GB, free: 3.457 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.004294/0.4753, allocations: 2.834 MB / 1.155 GB, free: 0.6172 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.008142/0.4835, allocations: 3.384 MB / 1.159 GB, free: 13.22 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.01786/0.5014, allocations: 11.2 MB / 1.17 GB, free: 1.988 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.5015, allocations: 7.938 kB / 1.17 GB, free: 1.98 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.715e-06/0.5015, allocations: 0 / 1.17 GB, free: 1.98 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0004814/0.502, allocations: 0 / 1.17 GB, free: 1.98 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01805/0.52, allocations: 5.979 MB / 1.175 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.5201, allocations: 12.03 kB / 1.175 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007449/0.5275, allocations: 1.138 MB / 1.177 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009259/0.5368, allocations: 3.321 MB / 1.18 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004882/0.5374, allocations: 382.3 kB / 1.18 GB, free: 6.992 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00213/0.5395, allocations: 496 kB / 1.181 GB, free: 6.508 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01783/0.5573, allocations: 8.005 MB / 1.189 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002921/0.5577, allocations: 27.77 kB / 1.189 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001618/0.5593, allocations: 216 kB / 1.189 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001201/0.5605, allocations: 437.6 kB / 1.189 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01612/0.5767, allocations: 6.085 MB / 1.195 GB, free: 7.457 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0514/0.6281, allocations: 35.14 MB / 1.229 GB, free: 1.137 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003552/0.6317, allocations: 2.022 MB / 1.231 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003268/0.635, allocations: 1.861 MB / 1.233 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000219/0.6353, allocations: 25.94 kB / 1.233 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.281e-05/0.6354, allocations: 64.44 kB / 1.233 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=171): time 6.182e-06/0.6354, allocations: 0 / 1.233 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of matching and sorting (n=276): time 0.81/1.445, allocations: 38.86 MB / 1.271 GB, free: 163.3 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.395e-05/1.445, allocations: 79.08 kB / 1.271 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004185/1.45, allocations: 2.285 MB / 1.274 GB, free: 162.4 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003534/1.45, allocations: 68.52 kB / 1.274 GB, free: 162.3 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001317/1.451, allocations: 2.278 MB / 1.276 GB, free: 160.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007427/1.452, allocations: 0.9373 MB / 1.277 GB, free: 159.9 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009507/1.453, allocations: 0.5059 MB / 1.277 GB, free: 159.6 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.686e-05/1.453, allocations: 308.8 kB / 1.278 GB, free: 159.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002765/1.456, allocations: 1.972 MB / 1.279 GB, free: 158.5 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003033/1.459, allocations: 2.606 MB / 1.282 GB, free: 157 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005954/1.465, allocations: 4.926 MB / 1.287 GB, free: 153.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-05/1.465, allocations: 3.406 kB / 1.287 GB, free: 153.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01292/1.478, allocations: 7.757 MB / 1.294 GB, free: 149.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.411e-05/1.478, allocations: 10.84 kB / 1.294 GB, free: 149.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.113e-05/1.478, allocations: 21.48 kB / 1.294 GB, free: 149.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008736/1.487, allocations: 3.237 MB / 1.298 GB, free: 148 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001617/1.488, allocations: 406.5 kB / 1.298 GB, free: 147.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03644/1.525, allocations: 33.89 MB / 1.331 GB, free: 115.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002958/1.528, allocations: 163.8 kB / 1.331 GB, free: 115.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004281/1.528, allocations: 112 kB / 1.331 GB, free: 115.5 MB / 0.9981 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 (202): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002831/1.531, allocations: 1.799 MB / 1.333 GB, free: 113.7 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007714/1.532, allocations: 336 kB / 1.333 GB, free: 113.4 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01215/1.544, allocations: 7.357 MB / 1.341 GB, free: 105.9 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/1.544, allocations: 28 kB / 1.341 GB, free: 105.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.886e-05/1.544, allocations: 28 kB / 1.341 GB, free: 105.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.326e-05/1.544, allocations: 11.95 kB / 1.341 GB, free: 105.8 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02335/1.567, allocations: 12.93 MB / 1.353 GB, free: 92.79 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-05/1.568, allocations: 8 kB / 1.353 GB, free: 92.79 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008591/1.568, allocations: 223.6 kB / 1.354 GB, free: 92.57 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007348/1.576, allocations: 2.888 MB / 1.356 GB, free: 89.66 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002665/1.576, allocations: 59.94 kB / 1.356 GB, free: 89.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03406/1.61, allocations: 32.69 MB / 1.388 GB, free: 56.09 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/1.61, allocations: 7.938 kB / 1.388 GB, free: 56.09 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01075/1.621, allocations: 6.889 MB / 1.395 GB, free: 48.98 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001524/1.622, allocations: 0.7783 MB / 1.396 GB, free: 48.18 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007612/1.623, allocations: 52 kB / 1.396 GB, free: 48.13 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001983/1.625, allocations: 167.8 kB / 1.396 GB, free: 47.97 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007266/1.626, allocations: 257.4 kB / 1.396 GB, free: 47.72 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001853/1.626, allocations: 79.98 kB / 1.396 GB, free: 47.64 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002158/1.628, allocations: 1.521 MB / 1.398 GB, free: 46.12 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.61e-07/1.628, allocations: 0 / 1.398 GB, free: 46.12 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003895/1.632, allocations: 1.371 MB / 1.399 GB, free: 44.75 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (105): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00036/1.633, allocations: 171 kB / 1.399 GB, free: 44.57 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01257/1.645, allocations: 8.381 MB / 1.408 GB, free: 36.11 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/1.645, allocations: 4 kB / 1.408 GB, free: 36.11 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006512/1.652, allocations: 4.421 MB / 1.412 GB, free: 31.62 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005145/1.657, allocations: 1.111 MB / 1.413 GB, free: 30.58 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01631/1.673, allocations: 12.49 MB / 1.425 GB, free: 18.04 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003957/1.677, allocations: 3.647 MB / 1.429 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002172/1.679, allocations: 0.5612 MB / 1.429 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004426/1.68, allocations: 155.4 kB / 1.429 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of SimCode: time 8.52e-07/1.68, allocations: 0 / 1.429 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of Templates: time 0.1214/1.801, allocations: 78.09 MB / 1.506 GB, free: 0.6172 MB / 1.061 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches