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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.386/2.386, allocations: 390.5 MB / 398 MB, free: 10.95 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 188.8 kB / 491.2 MB, free: 1.551 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.716/1.716, allocations: 221.5 MB / 0.7868 GB, free: 13.31 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009683/0.0009682, allocations: 95.81 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.781e-05/1.783e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2654, allocations: 143 MB / 1.212 GB, free: 39.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9041/1.17, allocations: 203.6 MB / 1.411 GB, free: 13.06 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000302/1.17, allocations: 96.12 kB / 1.411 GB, free: 13.01 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.1768/1.347, allocations: 73.32 MB / 1.483 GB, free: 15.25 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.764e-06/1.347, allocations: 0 / 1.483 GB, free: 15.25 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0001338/1.347, allocations: 36 kB / 1.483 GB, free: 15.22 MB / 0.9011 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.005406/1.352, allocations: 1.561 MB / 1.484 GB, free: 13.7 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.934e-05/1.352, allocations: 8.031 kB / 1.484 GB, free: 13.7 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003432/1.356, allocations: 0.4934 MB / 1.485 GB, free: 13.2 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003239/1.359, allocations: 1.156 MB / 1.486 GB, free: 12.27 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.627e-05/1.359, allocations: 48 kB / 1.486 GB, free: 12.22 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007472/1.36, allocations: 88 kB / 1.486 GB, free: 12.14 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004418/1.364, allocations: 1.768 MB / 1.488 GB, free: 11.02 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004881/1.369, allocations: 2.217 MB / 1.49 GB, free: 9.395 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.107e-05/1.369, allocations: 3.5 kB / 1.49 GB, free: 9.395 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001559/1.37, allocations: 8 kB / 1.49 GB, free: 9.387 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000102/1.37, allocations: 83 kB / 1.49 GB, free: 9.309 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01268/1.382, allocations: 10.12 MB / 1.5 GB, free: 15.9 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009065/1.383, allocations: 0.5452 MB / 1.501 GB, free: 15.35 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005243/1.384, allocations: 364.7 kB / 1.501 GB, free: 14.99 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/1.384, allocations: 89.09 kB / 1.501 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/1.384, allocations: 34.56 kB / 1.501 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=36): time 2.265e-06/1.384, allocations: 0 / 1.501 GB, free: 14.84 MB / 0.9167 GB Notification: Performance of matching and sorting (n=52): time 0.008425/1.393, allocations: 3.167 MB / 1.504 GB, free: 11.65 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.682e-05/1.393, allocations: 81.55 kB / 1.504 GB, free: 11.55 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001135/1.394, allocations: 0.7257 MB / 1.505 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001163/1.394, allocations: 25.7 kB / 1.505 GB, free: 10.79 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005332/1.394, allocations: 0.7577 MB / 1.506 GB, free: 10.02 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/1.395, allocations: 181.4 kB / 1.506 GB, free: 9.84 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.773e-05/1.395, allocations: 0 / 1.506 GB, free: 9.84 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0002191/1.395, allocations: 386.7 kB / 1.506 GB, free: 9.453 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000849/1.396, allocations: 0.5803 MB / 1.507 GB, free: 8.871 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/1.397, allocations: 0.9376 MB / 1.508 GB, free: 7.762 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/1.398, allocations: 0.8334 MB / 1.508 GB, free: 6.93 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/1.398, allocations: 4 kB / 1.508 GB, free: 6.926 MB / 0.9167 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.006133/1.404, allocations: 2.578 MB / 1.511 GB, free: 4.324 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001782/1.406, allocations: 4.533 MB / 1.515 GB, free: 15.44 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.47e-05/1.406, allocations: 15.98 kB / 1.515 GB, free: 15.42 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004392/1.411, allocations: 1.084 MB / 1.516 GB, free: 14.32 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009897/1.412, allocations: 223.7 kB / 1.517 GB, free: 14.11 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008118/1.42, allocations: 6.533 MB / 1.523 GB, free: 7.285 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/1.421, allocations: 151.8 kB / 1.523 GB, free: 7.137 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.25e-05/1.421, allocations: 47.98 kB / 1.523 GB, free: 7.09 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 9.077e-06/1.421, allocations: 4 kB / 1.523 GB, free: 7.086 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002065/1.423, allocations: 1.27 MB / 1.525 GB, free: 5.812 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.995e-05/1.423, allocations: 12 kB / 1.525 GB, free: 5.801 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/1.423, allocations: 19.95 kB / 1.525 GB, free: 5.781 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/1.424, allocations: 288.1 kB / 1.525 GB, free: 5.5 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.268e-05/1.424, allocations: 23.94 kB / 1.525 GB, free: 5.477 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008246/1.425, allocations: 99.75 kB / 1.525 GB, free: 5.379 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.803e-05/1.425, allocations: 44 kB / 1.525 GB, free: 5.336 MB / 0.9323 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002689/1.426, allocations: 144.6 kB / 1.525 GB, free: 5.188 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/1.426, allocations: 75.06 kB / 1.525 GB, free: 5.113 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006693/1.432, allocations: 2.27 MB / 1.527 GB, free: 2.824 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/1.433, allocations: 8 kB / 1.527 GB, free: 2.816 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/1.433, allocations: 0 / 1.527 GB, free: 2.816 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/1.433, allocations: 3.984 kB / 1.527 GB, free: 2.812 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008225/1.441, allocations: 3.877 MB / 1.531 GB, free: 14.83 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/1.441, allocations: 7.984 kB / 1.531 GB, free: 14.82 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004321/1.441, allocations: 99.86 kB / 1.531 GB, free: 14.73 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004805/1.446, allocations: 1.353 MB / 1.533 GB, free: 13.36 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.561e-05/1.446, allocations: 4 kB / 1.533 GB, free: 13.36 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01086/1.457, allocations: 9.096 MB / 1.542 GB, free: 3.793 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/1.457, allocations: 4.031 kB / 1.542 GB, free: 3.789 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005606/1.463, allocations: 2.338 MB / 1.544 GB, free: 1.344 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005599/1.463, allocations: 276.1 kB / 1.544 GB, free: 1.055 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/1.463, allocations: 0 / 1.544 GB, free: 1.055 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/1.465, allocations: 167.7 kB / 1.544 GB, free: 0.8906 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000201/1.465, allocations: 43.88 kB / 1.544 GB, free: 0.8477 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.296e-05/1.465, allocations: 16 kB / 1.544 GB, free: 0.832 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0008804/1.466, allocations: 0.5615 MB / 1.545 GB, free: 280 kB / 0.948 GB Notification: Performance of sort global known variables: time 2.61e-07/1.466, allocations: 0 / 1.545 GB, free: 280 kB / 0.948 GB Notification: Performance of remove unused functions: time 0.002249/1.468, allocations: 0.5586 MB / 1.545 GB, free: 15.71 MB / 0.9636 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003489/1.468, allocations: 171.6 kB / 1.546 GB, free: 15.54 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.003809/1.472, allocations: 2.357 MB / 1.548 GB, free: 13.17 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/1.472, allocations: 256 / 1.548 GB, free: 13.17 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.001716/1.474, allocations: 1.182 MB / 1.549 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/1.475, allocations: 190 kB / 1.549 GB, free: 11.76 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004139/1.479, allocations: 2.363 MB / 1.551 GB, free: 9.344 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00142/1.48, allocations: 1.642 MB / 1.553 GB, free: 7.672 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.001511/1.482, allocations: 0.58 MB / 1.554 GB, free: 7.086 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/1.482, allocations: 51.42 kB / 1.554 GB, free: 7.035 MB / 0.9636 GB Notification: Performance of SimCode: time 5.81e-07/1.482, allocations: 0 / 1.554 GB, free: 7.035 MB / 0.9636 GB Notification: Performance of Templates: time 0.02964/1.512, allocations: 19.18 MB / 1.572 GB, free: 3.977 MB / 0.9792 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","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches