Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.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.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, 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.007158/0.007158, allocations: 172.2 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.478/1.478, 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.0-master/package.mo): time 2.882/2.882, allocations: 462.6 MB / 0.7363 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004361/0.000436, allocations: 12.53 kB / 0.9027 GB, free: 36.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3828/0.3832, allocations: 159.6 MB / 1.059 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid): time 0.01373/0.397, allocations: 11.32 MB / 1.07 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.009427/0.4065, allocations: 5.268 MB / 1.075 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00117/0.4077, allocations: 35.81 kB / 1.075 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.4088, allocations: 306.1 kB / 1.075 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.00157/0.4104, allocations: 0.5873 MB / 1.076 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001686/0.4121, allocations: 0.6268 MB / 1.076 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.003676/0.4158, allocations: 3.589 MB / 1.08 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005922/0.4217, allocations: 4.109 MB / 1.084 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002356/0.4241, allocations: 0.7628 MB / 1.085 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002033/0.4262, allocations: 1.036 MB / 1.086 GB, free: 9.18 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001969/0.4264, allocations: 96 kB / 1.086 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001001/0.4274, allocations: 439.3 kB / 1.086 GB, free: 8.656 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0007283/0.4281, allocations: 0.7209 MB / 1.087 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0009401/0.4291, allocations: 0.7987 MB / 1.088 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003235/0.4323, allocations: 3.372 MB / 1.091 GB, free: 3.742 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.4323, allocations: 0 / 1.091 GB, free: 3.742 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.063e-06/0.4324, allocations: 0 / 1.091 GB, free: 3.742 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.409e-05/0.4324, allocations: 0 / 1.091 GB, free: 3.742 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.003012/0.4354, allocations: 1.593 MB / 1.092 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.4355, allocations: 19.97 kB / 1.092 GB, free: 2.074 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002071/0.4376, allocations: 450.5 kB / 1.093 GB, free: 1.633 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.4393, allocations: 1.101 MB / 1.094 GB, free: 500 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.06e-05/0.4394, allocations: 123.4 kB / 1.094 GB, free: 376 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002606/0.4397, allocations: 152.1 kB / 1.094 GB, free: 224 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004369/0.444, allocations: 2.735 MB / 1.097 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.456e-05/0.4441, allocations: 7.938 kB / 1.097 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001697/0.4443, allocations: 63.98 kB / 1.097 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004134/0.4447, allocations: 147 kB / 1.097 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003696/0.4484, allocations: 2.287 MB / 1.099 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01222/0.4606, allocations: 10.44 MB / 1.11 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009753/0.4617, allocations: 0.5803 MB / 1.11 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005897/0.4623, allocations: 372.6 kB / 1.11 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001265/0.4624, allocations: 97.08 kB / 1.111 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.4624, allocations: 42.5 kB / 1.111 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=36): time 2.454e-06/0.4625, allocations: 0 / 1.111 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of matching and sorting (n=52): time 0.01999/0.4824, allocations: 5.746 MB / 1.116 GB, free: 8.652 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.4825, allocations: 59.78 kB / 1.116 GB, free: 8.578 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001327/0.4839, allocations: 0.8905 MB / 1.117 GB, free: 7.676 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 9.696e-05/0.484, allocations: 29.7 kB / 1.117 GB, free: 7.641 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005297/0.4845, allocations: 0.7539 MB / 1.118 GB, free: 6.875 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001762/0.4847, allocations: 185.4 kB / 1.118 GB, free: 6.691 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.4848, allocations: 77.67 kB / 1.118 GB, free: 6.609 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001738/0.485, allocations: 394.7 kB / 1.119 GB, free: 6.215 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00098/0.486, allocations: 0.6265 MB / 1.119 GB, free: 5.59 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001278/0.4873, allocations: 0.9942 MB / 1.12 GB, free: 4.434 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002252/0.4896, allocations: 1.643 MB / 1.122 GB, free: 2.633 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.4896, allocations: 0 / 1.122 GB, free: 2.633 MB / 0.8731 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.009072/0.4987, allocations: 3.139 MB / 1.125 GB, free: 15.47 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003602/0.4991, allocations: 435.4 kB / 1.125 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.603e-05/0.4991, allocations: 12 kB / 1.125 GB, free: 14.87 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00799/0.5071, allocations: 1.751 MB / 1.127 GB, free: 13.1 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009964/0.5081, allocations: 219.7 kB / 1.127 GB, free: 12.89 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0169/0.5251, allocations: 9.928 MB / 1.137 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002439/0.5276, allocations: 163.6 kB / 1.137 GB, free: 2.277 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003786/0.528, allocations: 43.98 kB / 1.137 GB, free: 2.234 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.528, allocations: 5.719 kB / 1.137 GB, free: 2.23 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01198/0.54, allocations: 2.579 MB / 1.14 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.904e-05/0.5402, allocations: 15.98 kB / 1.14 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008901/0.5491, allocations: 1.157 MB / 1.141 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00208/0.5512, allocations: 239.6 kB / 1.141 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01409/0.5654, allocations: 5.43 MB / 1.146 GB, free: 8.531 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002033/0.5674, allocations: 135.7 kB / 1.146 GB, free: 8.398 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/0.5676, allocations: 44 kB / 1.146 GB, free: 8.355 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (99): * Single equations (assignments): 95 * 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): 2 systems {(2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,2), (2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.002327/0.57, allocations: 0.8362 MB / 1.147 GB, free: 7.508 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003131/0.5703, allocations: 83.19 kB / 1.147 GB, free: 7.426 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01494/0.5852, allocations: 2.61 MB / 1.15 GB, free: 4.793 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.857e-05/0.5853, allocations: 12.05 kB / 1.15 GB, free: 4.781 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.5854, allocations: 4 kB / 1.15 GB, free: 4.777 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.579e-05/0.5854, allocations: 3.984 kB / 1.15 GB, free: 4.773 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02003/0.6054, allocations: 4.526 MB / 1.154 GB, free: 128 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.799e-05/0.6055, allocations: 0 / 1.154 GB, free: 128 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008724/0.6064, allocations: 108.1 kB / 1.154 GB, free: 20 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01308/0.6195, allocations: 1.587 MB / 1.156 GB, free: 14.42 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001829/0.6197, allocations: 12 kB / 1.156 GB, free: 14.41 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02264/0.6424, allocations: 9.469 MB / 1.165 GB, free: 4.395 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.064e-06/0.6425, allocations: 8.047 kB / 1.165 GB, free: 4.387 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/0.657, allocations: 2.574 MB / 1.168 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.6581, allocations: 280 kB / 1.168 GB, free: 1.465 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.6583, allocations: 12 kB / 1.168 GB, free: 1.453 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/0.6598, allocations: 127.7 kB / 1.168 GB, free: 1.328 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004009/0.6603, allocations: 43.88 kB / 1.168 GB, free: 1.285 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.475e-05/0.6604, allocations: 16 kB / 1.168 GB, free: 1.27 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0016/0.662, allocations: 0.6278 MB / 1.169 GB, free: 0.6445 MB / 0.92 GB Notification: Performance of sort global known variables: time 7.32e-07/0.662, allocations: 4 kB / 1.169 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.003585/0.6656, allocations: 0.5859 MB / 1.169 GB, free: 56 kB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (42): * Single equations (assignments): 38 * 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): 2 systems {(2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,2), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003595/0.666, allocations: 119.2 kB / 1.169 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.007384/0.6734, allocations: 3.09 MB / 1.172 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/0.6734, allocations: 4.734 kB / 1.172 GB, free: 12.76 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.00187/0.6753, allocations: 1.175 MB / 1.174 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.6768, allocations: 241.1 kB / 1.174 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005429/0.6822, allocations: 3.676 MB / 1.177 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001437/0.6837, allocations: 1.622 MB / 1.179 GB, free: 5.922 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001285/0.685, allocations: 490.1 kB / 1.18 GB, free: 5.438 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.6852, allocations: 67.42 kB / 1.18 GB, free: 5.371 MB / 0.9356 GB Notification: Performance of SimCode: time 1.393e-06/0.6852, allocations: 0 / 1.18 GB, free: 5.371 MB / 0.9356 GB Notification: Performance of Templates: time 0.03796/0.7232, allocations: 23.2 MB / 1.202 GB, free: 14.31 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches