Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_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_latest_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_latest_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.001418/0.001418, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 199.8 kB / 16.79 MB, free: 6.809 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.363/1.363, allocations: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.772/2.772, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 71.11 kB / 0.899 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3356, allocations: 157.4 MB / 1.053 GB, free: 8.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.04017/0.3758, allocations: 34.52 MB / 1.086 GB, free: 5.668 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01967/0.3955, allocations: 11.52 MB / 1.098 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004291/0.3999, allocations: 147.2 kB / 1.098 GB, free: 9.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.01125/0.4112, allocations: 3.975 MB / 1.102 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.006826/0.418, allocations: 1.875 MB / 1.104 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.006821/0.4249, allocations: 2.172 MB / 1.106 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01411/0.439, allocations: 12.41 MB / 1.118 GB, free: 5.508 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0226/0.4616, allocations: 12.32 MB / 1.13 GB, free: 9.074 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007201/0.4689, allocations: 3.188 MB / 1.133 GB, free: 5.875 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007653/0.4766, allocations: 4.276 MB / 1.137 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.002632/0.4793, allocations: 0.543 MB / 1.138 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006357/0.4856, allocations: 2.129 MB / 1.14 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.005662/0.4913, allocations: 2.818 MB / 1.142 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.007863/0.4992, allocations: 3.131 MB / 1.146 GB, free: 8.941 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01226/0.5115, allocations: 10.2 MB / 1.156 GB, free: 14.71 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 8.876e-06/0.5116, allocations: 4 kB / 1.156 GB, free: 14.71 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.595e-06/0.5116, allocations: 0 / 1.156 GB, free: 14.71 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0004042/0.512, allocations: 0 / 1.156 GB, free: 14.71 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: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01644/0.5284, allocations: 5.799 MB / 1.161 GB, free: 8.84 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.5285, allocations: 15.97 kB / 1.161 GB, free: 8.824 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007018/0.5355, allocations: 1.052 MB / 1.162 GB, free: 7.766 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007383/0.5429, allocations: 3.258 MB / 1.165 GB, free: 4.449 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004697/0.5435, allocations: 415.5 kB / 1.166 GB, free: 4.043 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002223/0.5457, allocations: 0.5431 MB / 1.166 GB, free: 3.5 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02253/0.5682, allocations: 9.083 MB / 1.175 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000225/0.5685, allocations: 23.78 kB / 1.175 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001163/0.5697, allocations: 239.9 kB / 1.175 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003925/0.5701, allocations: 350.8 kB / 1.176 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01446/0.5846, allocations: 6.83 MB / 1.182 GB, free: 2.652 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04464/0.6292, allocations: 40.11 MB / 1.222 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003927/0.6332, allocations: 3.104 MB / 1.225 GB, free: 3.578 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002647/0.6359, allocations: 1.97 MB / 1.227 GB, free: 1.609 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.636, allocations: 18 kB / 1.227 GB, free: 1.594 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/0.6361, allocations: 56.56 kB / 1.227 GB, free: 1.527 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=179): time 3.577e-06/0.6361, allocations: 0 / 1.227 GB, free: 1.527 MB / 0.9825 GB Notification: Performance of matching and sorting (n=182): time 0.02446/0.6605, allocations: 9.977 MB / 1.236 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.6606, allocations: 73.41 kB / 1.236 GB, free: 7.371 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002061/0.6627, allocations: 1.526 MB / 1.238 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002644/0.663, allocations: 53.7 kB / 1.238 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001318/0.6643, allocations: 2.257 MB / 1.24 GB, free: 3.453 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000647/0.665, allocations: 0.6277 MB / 1.241 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006205/0.6656, allocations: 407.8 kB / 1.241 GB, free: 2.41 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.449e-05/0.6657, allocations: 316.9 kB / 1.242 GB, free: 2.098 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001681/0.6674, allocations: 1.176 MB / 1.243 GB, free: 0.918 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.6142/1.282, allocations: 1.879 MB / 1.244 GB, free: 172.1 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00475/1.286, allocations: 3.372 MB / 1.248 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.652e-05/1.286, allocations: 6.156 kB / 1.248 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.006691/1.293, allocations: 4.579 MB / 1.252 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/1.293, allocations: 24.78 kB / 1.252 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-05/1.293, allocations: 20.75 kB / 1.252 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003709/1.297, allocations: 1.574 MB / 1.254 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/1.298, allocations: 354.8 kB / 1.254 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02376/1.322, allocations: 17.02 MB / 1.271 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/1.324, allocations: 117.2 kB / 1.271 GB, free: 163.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002141/1.324, allocations: 95 kB / 1.271 GB, free: 163.7 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 (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.003472/1.327, allocations: 1.898 MB / 1.273 GB, free: 162.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004977/1.328, allocations: 224.6 kB / 1.273 GB, free: 162.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007058/1.335, allocations: 4.101 MB / 1.277 GB, free: 161.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.8e-05/1.335, allocations: 16.94 kB / 1.277 GB, free: 161.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.664e-05/1.335, allocations: 17.5 kB / 1.277 GB, free: 161.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-05/1.335, allocations: 9.797 kB / 1.277 GB, free: 161.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01452/1.35, allocations: 9.475 MB / 1.286 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/1.35, allocations: 8.469 kB / 1.286 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000781/1.351, allocations: 186.2 kB / 1.287 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003188/1.354, allocations: 1.354 MB / 1.288 GB, free: 156.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/1.354, allocations: 31.31 kB / 1.288 GB, free: 156.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01632/1.37, allocations: 15.94 MB / 1.303 GB, free: 146.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/1.37, allocations: 4.469 kB / 1.303 GB, free: 146.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005645/1.376, allocations: 4.078 MB / 1.307 GB, free: 144 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/1.377, allocations: 0.526 MB / 1.308 GB, free: 143.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002786/1.377, allocations: 35.42 kB / 1.308 GB, free: 143.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008511/1.378, allocations: 89.88 kB / 1.308 GB, free: 143.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004555/1.379, allocations: 165 kB / 1.308 GB, free: 143.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.95e-05/1.379, allocations: 50.36 kB / 1.308 GB, free: 143.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001135/1.38, allocations: 1.002 MB / 1.309 GB, free: 142.9 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.38, allocations: 0 / 1.309 GB, free: 142.9 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003592/1.383, allocations: 0.9887 MB / 1.31 GB, free: 142.8 MB / 0.9981 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.0003245/1.384, allocations: 144 kB / 1.31 GB, free: 142.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.005764/1.39, allocations: 4.278 MB / 1.315 GB, free: 138.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/1.39, allocations: 4 kB / 1.315 GB, free: 138.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003478/1.393, allocations: 2.657 MB / 1.317 GB, free: 135.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003065/1.396, allocations: 0.7198 MB / 1.318 GB, free: 135.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01465/1.411, allocations: 11.79 MB / 1.329 GB, free: 123.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003502/1.414, allocations: 3.662 MB / 1.333 GB, free: 119.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004816/1.415, allocations: 131.4 kB / 1.333 GB, free: 119.6 MB / 0.9981 GB Notification: Performance of SimCode: time 1.142e-06/1.415, allocations: 0 / 1.333 GB, free: 119.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.1343/1.549, allocations: 159.4 MB / 1.489 GB, free: 8.16 MB / 1.045 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches