Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007381/0.007381, allocations: 99.42 kB / 15.73 MB, free: 6.039 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.001758/0.001758, allocations: 202 kB / 16.68 MB, free: 5.965 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.726/2.726, allocations: 472.6 MB / 0.7453 GB, free: 4.512 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 64.09 kB / 1.07 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3353, allocations: 159.9 MB / 1.226 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.6992/1.034, allocations: 37.95 MB / 1.263 GB, free: 13.49 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01687/1.051, allocations: 11 MB / 1.273 GB, free: 8.012 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004303/1.056, allocations: 157.2 kB / 1.274 GB, free: 7.965 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.01047/1.066, allocations: 4.343 MB / 1.278 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007451/1.074, allocations: 2.225 MB / 1.28 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006583/1.08, allocations: 2.173 MB / 1.282 GB, free: 2.723 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01462/1.095, allocations: 9.287 MB / 1.291 GB, free: 14.51 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02067/1.116, allocations: 11.27 MB / 1.302 GB, free: 9.969 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01203/1.128, allocations: 3.996 MB / 1.306 GB, free: 8.129 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01357/1.141, allocations: 4.517 MB / 1.311 GB, free: 6.172 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.005273/1.147, allocations: 0.8224 MB / 1.311 GB, free: 6.172 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00898/1.156, allocations: 1.582 MB / 1.313 GB, free: 5.883 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.008973/1.165, allocations: 3.148 MB / 1.316 GB, free: 4.559 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.01327/1.178, allocations: 3.659 MB / 1.32 GB, free: 2.215 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0248/1.203, allocations: 12.34 MB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/1.203, allocations: 1.188 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.535e-06/1.203, allocations: 3.938 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0005051/1.203, allocations: 4 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02422/1.228, allocations: 6.464 MB / 1.338 GB, free: 7.531 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/1.228, allocations: 9.344 kB / 1.338 GB, free: 7.531 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007922/1.236, allocations: 1.105 MB / 1.339 GB, free: 6.988 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008972/1.245, allocations: 3.618 MB / 1.343 GB, free: 4.664 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004015/1.245, allocations: 424.7 kB / 1.343 GB, free: 4.473 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002407/1.247, allocations: 0.5529 MB / 1.343 GB, free: 4.277 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02771/1.275, allocations: 9.37 MB / 1.353 GB, free: 14.54 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002018/1.275, allocations: 20.19 kB / 1.353 GB, free: 14.52 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002224/1.278, allocations: 250.8 kB / 1.353 GB, free: 14.34 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006384/1.278, allocations: 419.1 kB / 1.353 GB, free: 14.24 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01814/1.296, allocations: 7.127 MB / 1.36 GB, free: 7.164 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0526/1.349, allocations: 41.08 MB / 1.4 GB, free: 10.35 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004975/1.354, allocations: 3.112 MB / 1.403 GB, free: 7.23 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003251/1.357, allocations: 2.157 MB / 1.405 GB, free: 5.078 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001394/1.358, allocations: 22 kB / 1.406 GB, free: 5.055 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.717e-05/1.358, allocations: 60.56 kB / 1.406 GB, free: 4.988 MB / 1.092 GB Notification: Performance of pre-optimization done (n=209): time 4.449e-06/1.358, allocations: 4 kB / 1.406 GB, free: 4.984 MB / 1.092 GB Notification: Performance of matching and sorting (n=212): time 0.02658/1.384, allocations: 10.63 MB / 1.416 GB, free: 10.26 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/1.384, allocations: 73.41 kB / 1.416 GB, free: 10.18 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002933/1.387, allocations: 2.006 MB / 1.418 GB, free: 8.152 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0004139/1.388, allocations: 65.7 kB / 1.418 GB, free: 8.082 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001707/1.389, allocations: 2.466 MB / 1.42 GB, free: 5.59 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009182/1.39, allocations: 0.7747 MB / 1.421 GB, free: 4.809 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008091/1.391, allocations: 481.5 kB / 1.422 GB, free: 4.332 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001297/1.391, allocations: 305.1 kB / 1.422 GB, free: 4.031 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002068/1.393, allocations: 1.372 MB / 1.423 GB, free: 2.656 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002627/1.396, allocations: 2.112 MB / 1.425 GB, free: 232 kB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00538/1.401, allocations: 3.762 MB / 1.429 GB, free: 12.16 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.751e-05/1.401, allocations: 8 kB / 1.429 GB, free: 12.15 MB / 1.123 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009202/1.411, allocations: 5.081 MB / 1.434 GB, free: 7.043 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 5.579e-05/1.411, allocations: 16.94 kB / 1.434 GB, free: 7.027 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.08e-05/1.411, allocations: 24 kB / 1.434 GB, free: 7.004 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003761/1.415, allocations: 1.589 MB / 1.436 GB, free: 5.406 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001895/1.416, allocations: 451.2 kB / 1.436 GB, free: 4.965 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02297/1.439, allocations: 18.58 MB / 1.454 GB, free: 1.824 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00282/1.442, allocations: 143.9 kB / 1.454 GB, free: 1.684 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003887/1.443, allocations: 112 kB / 1.454 GB, free: 1.574 MB / 1.139 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 (231): * Single equations (assignments): 227 * 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 {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003879/1.447, allocations: 1.942 MB / 1.456 GB, free: 15.62 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007397/1.447, allocations: 306.3 kB / 1.457 GB, free: 15.32 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007465/1.455, allocations: 4.447 MB / 1.461 GB, free: 10.84 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.37e-05/1.455, allocations: 24 kB / 1.461 GB, free: 10.82 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.275e-05/1.455, allocations: 23.94 kB / 1.461 GB, free: 10.79 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.624e-05/1.455, allocations: 7.969 kB / 1.461 GB, free: 10.79 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01708/1.472, allocations: 9.668 MB / 1.47 GB, free: 0.9727 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/1.472, allocations: 4 kB / 1.47 GB, free: 0.9688 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009895/1.473, allocations: 239.6 kB / 1.471 GB, free: 0.7344 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003343/1.476, allocations: 1.416 MB / 1.472 GB, free: 15.31 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001579/1.477, allocations: 40 kB / 1.472 GB, free: 15.27 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02216/1.499, allocations: 18.59 MB / 1.49 GB, free: 12.13 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/1.499, allocations: 16.12 kB / 1.49 GB, free: 12.11 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007407/1.506, allocations: 4.561 MB / 1.495 GB, free: 7.461 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001773/1.508, allocations: 0.6514 MB / 1.495 GB, free: 6.789 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004844/1.509, allocations: 40 kB / 1.495 GB, free: 6.75 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001323/1.51, allocations: 115.9 kB / 1.496 GB, free: 6.637 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000486/1.51, allocations: 181.6 kB / 1.496 GB, free: 6.461 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/1.511, allocations: 60 kB / 1.496 GB, free: 6.402 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.001817/1.512, allocations: 1.311 MB / 1.497 GB, free: 5.082 MB / 1.186 GB Notification: Performance of sort global known variables: time 1.61e-07/1.512, allocations: 0 / 1.497 GB, free: 5.082 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.00347/1.516, allocations: 1.145 MB / 1.498 GB, free: 3.938 MB / 1.186 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 (107): * Single equations (assignments): 103 * 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 {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003537/1.516, allocations: 167 kB / 1.498 GB, free: 3.766 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.007144/1.523, allocations: 4.731 MB / 1.503 GB, free: 14.99 MB / 1.201 GB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/1.523, allocations: 4 kB / 1.503 GB, free: 14.98 MB / 1.201 GB Notification: Performance of simCode: created simulation system equations: time 0.004528/1.528, allocations: 2.918 MB / 1.506 GB, free: 12.02 MB / 1.201 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004311/1.532, allocations: 0.8924 MB / 1.507 GB, free: 11.14 MB / 1.201 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01751/1.55, allocations: 9.429 MB / 1.516 GB, free: 1.617 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005236/1.555, allocations: 3.698 MB / 1.519 GB, free: 13.88 MB / 1.217 GB Notification: Performance of simCode: alias equations: time 0.002044/1.557, allocations: 0.5556 MB / 1.52 GB, free: 13.32 MB / 1.217 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004286/1.558, allocations: 147.4 kB / 1.52 GB, free: 13.18 MB / 1.217 GB Notification: Performance of SimCode: time 6.51e-07/1.558, allocations: 3.938 kB / 1.52 GB, free: 13.17 MB / 1.217 GB Notification: Performance of Templates: time 0.0881/1.646, allocations: 51.65 MB / 1.571 GB, free: 10.23 MB / 1.264 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches