Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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,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") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008389/0.0008388, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.00593/0.00593, allocations: 169.8 kB / 16.27 MB, free: 6.652 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.503/1.503, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.826/2.826, allocations: 462.7 MB / 0.7364 GB, free: 276 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003471, allocations: 9.375 kB / 0.9028 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3497, allocations: 159.6 MB / 1.059 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03861/0.3884, allocations: 34 MB / 1.092 GB, free: 3.398 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02237/0.4108, allocations: 9.828 MB / 1.101 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005868/0.4168, allocations: 127.2 kB / 1.102 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.004005/0.4208, allocations: 0.7016 MB / 1.102 GB, free: 8.711 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.007872/0.4287, allocations: 1.913 MB / 1.104 GB, free: 6.789 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.005943/0.4347, allocations: 1.609 MB / 1.106 GB, free: 5.184 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01393/0.4486, allocations: 11.19 MB / 1.117 GB, free: 9.969 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02272/0.4714, allocations: 12.16 MB / 1.129 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007154/0.4786, allocations: 2.404 MB / 1.131 GB, free: 11.29 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007923/0.4866, allocations: 3.219 MB / 1.134 GB, free: 8.059 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.002593/0.4892, allocations: 284 kB / 1.134 GB, free: 7.781 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005972/0.4952, allocations: 1.26 MB / 1.136 GB, free: 6.52 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.00599/0.5012, allocations: 2.104 MB / 1.138 GB, free: 4.41 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.008199/0.5095, allocations: 2.532 MB / 1.14 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01576/0.5253, allocations: 9.866 MB / 1.15 GB, free: 7.961 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.5253, allocations: 0 / 1.15 GB, free: 7.961 MB / 0.9044 GB Notification: Performance of FrontEnd: time 3.356e-06/0.5253, allocations: 0 / 1.15 GB, free: 7.961 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0004644/0.5258, allocations: 4 kB / 1.15 GB, free: 7.957 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: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01343/0.5392, allocations: 4.352 MB / 1.154 GB, free: 3.535 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.5393, allocations: 12.03 kB / 1.154 GB, free: 3.523 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007485/0.5468, allocations: 0.9587 MB / 1.155 GB, free: 2.559 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009343/0.5562, allocations: 2.999 MB / 1.158 GB, free: 15.5 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004621/0.5567, allocations: 357.9 kB / 1.158 GB, free: 15.15 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002101/0.5588, allocations: 468.2 kB / 1.159 GB, free: 14.7 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0191/0.5779, allocations: 7.902 MB / 1.166 GB, free: 6.43 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001331/0.5781, allocations: 19.86 kB / 1.166 GB, free: 6.41 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005444/0.5787, allocations: 208 kB / 1.167 GB, free: 6.207 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005442/0.5792, allocations: 377 kB / 1.167 GB, free: 5.836 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01237/0.5916, allocations: 5.933 MB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04298/0.6346, allocations: 36.26 MB / 1.208 GB, free: 8.383 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00356/0.6383, allocations: 2.15 MB / 1.21 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001996/0.6403, allocations: 1.477 MB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.204e-05/0.6404, allocations: 17.31 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.851e-05/0.6405, allocations: 55.81 kB / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=157): time 7.564e-06/0.6405, allocations: 3.984 kB / 1.212 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of matching and sorting (n=160): time 0.01489/0.6554, allocations: 7.575 MB / 1.219 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/0.6555, allocations: 68.72 kB / 1.219 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002881/0.6584, allocations: 1.864 MB / 1.221 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0002497/0.6587, allocations: 53.7 kB / 1.221 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001531/0.6602, allocations: 2.123 MB / 1.223 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006534/0.6609, allocations: 0.5584 MB / 1.224 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002632/0.6611, allocations: 178.1 kB / 1.224 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.6612, allocations: 301.1 kB / 1.224 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001608/0.6629, allocations: 1.062 MB / 1.225 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/0.665, allocations: 1.76 MB / 1.227 GB, free: 4.445 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00405/0.6691, allocations: 3.045 MB / 1.23 GB, free: 1.086 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.796e-05/0.6691, allocations: 8 kB / 1.23 GB, free: 1.078 MB / 0.9825 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006985/0.6761, allocations: 3.92 MB / 1.234 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.6762, allocations: 19.94 kB / 1.234 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.321e-05/0.6762, allocations: 27.94 kB / 1.234 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002524/0.6788, allocations: 0.9279 MB / 1.235 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001667/0.6804, allocations: 427.3 kB / 1.235 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0195/0.7, allocations: 21.08 MB / 1.256 GB, free: 5 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002192/0.7022, allocations: 127.8 kB / 1.256 GB, free: 4.875 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002484/0.7025, allocations: 95.98 kB / 1.256 GB, free: 4.781 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,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%), (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 prepare postOptimizeDAE: time 0.00327/0.7057, allocations: 1.65 MB / 1.257 GB, free: 3.121 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006571/0.7064, allocations: 256.9 kB / 1.258 GB, free: 2.867 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6553/1.362, allocations: 3.253 MB / 1.261 GB, free: 183.7 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-05/1.362, allocations: 19 kB / 1.261 GB, free: 183.7 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.107e-05/1.362, allocations: 12.08 kB / 1.261 GB, free: 183.7 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.404e-05/1.362, allocations: 8.266 kB / 1.261 GB, free: 183.7 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01229/1.374, allocations: 7.545 MB / 1.268 GB, free: 183 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/1.374, allocations: 7.719 kB / 1.268 GB, free: 183 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009237/1.375, allocations: 214.8 kB / 1.268 GB, free: 183 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/1.377, allocations: 0.8885 MB / 1.269 GB, free: 182.9 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000139/1.378, allocations: 30.2 kB / 1.269 GB, free: 182.9 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01773/1.395, allocations: 21.05 MB / 1.29 GB, free: 167.9 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/1.395, allocations: 4.625 kB / 1.29 GB, free: 167.9 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006554/1.402, allocations: 3.381 MB / 1.293 GB, free: 167.2 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/1.403, allocations: 0.531 MB / 1.294 GB, free: 167 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003284/1.404, allocations: 35.97 kB / 1.294 GB, free: 166.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/1.405, allocations: 101.8 kB / 1.294 GB, free: 166.9 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004724/1.405, allocations: 136.2 kB / 1.294 GB, free: 166.9 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/1.405, allocations: 44.23 kB / 1.294 GB, free: 166.9 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001849/1.407, allocations: 1.226 MB / 1.295 GB, free: 166.4 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.81e-07/1.407, allocations: 2.844 kB / 1.295 GB, free: 166.4 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.003083/1.41, allocations: 0.9038 MB / 1.296 GB, free: 166.3 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(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%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000271/1.411, allocations: 159.2 kB / 1.296 GB, free: 166.2 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.006533/1.417, allocations: 4.43 MB / 1.301 GB, free: 163.7 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/1.417, allocations: 1.094 kB / 1.301 GB, free: 163.7 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.004293/1.422, allocations: 2.997 MB / 1.304 GB, free: 161.8 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005385/1.427, allocations: 0.7643 MB / 1.304 GB, free: 161.5 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/1.44, allocations: 9.715 MB / 1.314 GB, free: 156 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003388/1.444, allocations: 3.215 MB / 1.317 GB, free: 154.7 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002117/1.446, allocations: 0.5232 MB / 1.317 GB, free: 154.6 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003933/1.446, allocations: 144.4 kB / 1.318 GB, free: 154.6 MB / 1.014 GB Notification: Performance of SimCode: time 1.123e-06/1.446, allocations: 0 / 1.318 GB, free: 154.6 MB / 1.014 GB Notification: Performance of Templates: time 0.06181/1.508, allocations: 40.89 MB / 1.358 GB, free: 124.9 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches