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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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,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.0008407/0.0008407, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.000958/0.0009582, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.822/2.822, allocations: 462.6 MB / 0.736 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003398/0.0003398, allocations: 12.28 kB / 0.9021 GB, free: 36.76 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3947/0.3951, allocations: 159.6 MB / 1.058 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03579/0.4309, allocations: 32.02 MB / 1.089 GB, free: 5.266 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01672/0.4477, allocations: 9.487 MB / 1.099 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003986/0.4517, allocations: 119.3 kB / 1.099 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002656/0.4544, allocations: 0.6859 MB / 1.099 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.007457/0.4619, allocations: 1.636 MB / 1.101 GB, free: 9.301 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.005597/0.4675, allocations: 1.159 MB / 1.102 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01303/0.4806, allocations: 8.837 MB / 1.111 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01941/0.5, allocations: 10.41 MB / 1.121 GB, free: 4.805 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006471/0.5066, allocations: 2.436 MB / 1.123 GB, free: 2.359 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007313/0.5139, allocations: 3.118 MB / 1.126 GB, free: 15.23 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001234/0.5152, allocations: 284 kB / 1.127 GB, free: 14.95 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002803/0.518, allocations: 0.6478 MB / 1.127 GB, free: 14.3 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.002614/0.5206, allocations: 2.089 MB / 1.129 GB, free: 12.21 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.002045/0.5227, allocations: 1.027 MB / 1.13 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01103/0.5337, allocations: 8.56 MB / 1.139 GB, free: 2.594 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.856e-06/0.5338, allocations: 0 / 1.139 GB, free: 2.594 MB / 0.8887 GB Notification: Performance of FrontEnd: time 4.669e-06/0.5338, allocations: 4 kB / 1.139 GB, free: 2.59 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0004147/0.5342, allocations: 0 / 1.139 GB, free: 2.59 MB / 0.8887 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.01411/0.5483, allocations: 4.406 MB / 1.143 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/0.5484, allocations: 12.03 kB / 1.143 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006289/0.5547, allocations: 0.9617 MB / 1.144 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007279/0.562, allocations: 2.925 MB / 1.147 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003815/0.5624, allocations: 357.5 kB / 1.147 GB, free: 9.801 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001844/0.5643, allocations: 467.9 kB / 1.148 GB, free: 9.344 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01875/0.5831, allocations: 7.875 MB / 1.155 GB, free: 1.102 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000129/0.5832, allocations: 19.81 kB / 1.155 GB, free: 1.082 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005804/0.5838, allocations: 212 kB / 1.155 GB, free: 0.875 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005503/0.5844, allocations: 365.1 kB / 1.156 GB, free: 0.5156 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01269/0.5971, allocations: 5.902 MB / 1.162 GB, free: 10.6 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04647/0.6436, allocations: 36.25 MB / 1.197 GB, free: 3.117 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004096/0.6478, allocations: 2.131 MB / 1.199 GB, free: 0.9727 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002385/0.6502, allocations: 1.477 MB / 1.2 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001451/0.6503, allocations: 17.3 kB / 1.2 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.592e-05/0.6504, allocations: 59.86 kB / 1.201 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=157): time 5.531e-06/0.6505, allocations: 4 kB / 1.201 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of matching and sorting (n=160): time 0.01647/0.6669, allocations: 7.533 MB / 1.208 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.223e-05/0.667, allocations: 68.66 kB / 1.208 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003803/0.6709, allocations: 1.856 MB / 1.21 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0002951/0.6712, allocations: 53.7 kB / 1.21 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001814/0.673, allocations: 2.123 MB / 1.212 GB, free: 3.43 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007855/0.6738, allocations: 0.5623 MB / 1.212 GB, free: 2.859 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00022/0.674, allocations: 44 kB / 1.212 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002492/0.6743, allocations: 394.3 kB / 1.213 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001975/0.6763, allocations: 1.051 MB / 1.214 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002525/0.6788, allocations: 1.76 MB / 1.216 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002297/0.6811, allocations: 1.341 MB / 1.217 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-05/0.6812, allocations: 8 kB / 1.217 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.007557/0.6887, allocations: 3.901 MB / 1.221 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.757e-05/0.6888, allocations: 17.72 kB / 1.221 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.339e-05/0.6889, allocations: 20 kB / 1.221 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002534/0.6914, allocations: 0.9237 MB / 1.222 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00165/0.6931, allocations: 431.2 kB / 1.222 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0217/0.7148, allocations: 21.05 MB / 1.243 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002319/0.7172, allocations: 128 kB / 1.243 GB, free: 1.797 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002764/0.7175, allocations: 99.98 kB / 1.243 GB, free: 1.699 MB / 0.9981 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 (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003307/0.7208, allocations: 1.65 MB / 1.244 GB, free: 40 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006139/0.7214, allocations: 253 kB / 1.245 GB, free: 15.79 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005705/0.7271, allocations: 3.24 MB / 1.248 GB, free: 12.5 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.949e-05/0.7272, allocations: 23.98 kB / 1.248 GB, free: 12.48 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-05/0.7272, allocations: 12 kB / 1.248 GB, free: 12.47 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.7272, allocations: 7.969 kB / 1.248 GB, free: 12.46 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0127/0.7399, allocations: 7.533 MB / 1.255 GB, free: 4.77 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/0.74, allocations: 8 kB / 1.255 GB, free: 4.762 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008901/0.7409, allocations: 211.6 kB / 1.255 GB, free: 4.555 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002295/0.7432, allocations: 0.8965 MB / 1.256 GB, free: 3.621 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001169/0.7433, allocations: 32 kB / 1.256 GB, free: 3.59 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7216/1.465, allocations: 21.01 MB / 1.277 GB, free: 169 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.465, allocations: 4.781 kB / 1.277 GB, free: 169 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005972/1.471, allocations: 3.378 MB / 1.28 GB, free: 168.6 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/1.472, allocations: 0.5321 MB / 1.281 GB, free: 168.5 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003231/1.473, allocations: 31.03 kB / 1.281 GB, free: 168.5 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/1.474, allocations: 93.31 kB / 1.281 GB, free: 168.5 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005217/1.474, allocations: 144.2 kB / 1.281 GB, free: 168.5 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/1.474, allocations: 47.48 kB / 1.281 GB, free: 168.5 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.00192/1.476, allocations: 1.206 MB / 1.282 GB, free: 168.3 MB / 1.014 GB Notification: Performance of sort global known variables: time 3.7e-07/1.476, allocations: 0 / 1.282 GB, free: 168.3 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.003292/1.48, allocations: 0.9019 MB / 1.283 GB, free: 168.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 (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003101/1.48, allocations: 157.7 kB / 1.283 GB, free: 168.2 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.008551/1.489, allocations: 4.407 MB / 1.288 GB, free: 166.8 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/1.489, allocations: 4.219 kB / 1.288 GB, free: 166.8 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.005208/1.494, allocations: 2.995 MB / 1.29 GB, free: 165.4 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004993/1.499, allocations: 0.7723 MB / 1.291 GB, free: 165.3 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01646/1.515, allocations: 9.251 MB / 1.3 GB, free: 161 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004857/1.52, allocations: 3.207 MB / 1.303 GB, free: 160.2 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002881/1.523, allocations: 0.5252 MB / 1.304 GB, free: 160.1 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004383/1.524, allocations: 140.7 kB / 1.304 GB, free: 160.1 MB / 1.014 GB Notification: Performance of SimCode: time 1.363e-06/1.524, allocations: 0 / 1.304 GB, free: 160.1 MB / 1.014 GB Notification: Performance of Templates: time 0.07233/1.596, allocations: 39.76 MB / 1.343 GB, free: 137.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