Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.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_N,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.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,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.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.28/2.28, allocations: 390.3 MB / 402.8 MB, free: 6.688 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.001068/0.001068, allocations: 184.7 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.744/1.744, allocations: 221.3 MB / 0.7915 GB, free: 5.453 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.0009074/0.0009073, allocations: 91.95 kB / 0.9317 GB, free: 5.762 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.718e-05/3.723e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3425, allocations: 143 MB / 1.219 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.061/1.403, allocations: 205.1 MB / 1.419 GB, free: 15.29 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/1.403, allocations: 101 kB / 1.419 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.1824/1.586, allocations: 77 MB / 1.494 GB, free: 7.691 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.823e-06/1.586, allocations: 4 kB / 1.494 GB, free: 7.688 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001051/1.586, allocations: 36 kB / 1.494 GB, free: 7.652 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.003885/1.59, allocations: 1.694 MB / 1.496 GB, free: 5.906 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/1.59, allocations: 8.031 kB / 1.496 GB, free: 5.898 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003477/1.593, allocations: 0.6612 MB / 1.497 GB, free: 5.234 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00277/1.596, allocations: 1.25 MB / 1.498 GB, free: 3.941 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.476e-05/1.596, allocations: 119.2 kB / 1.498 GB, free: 3.824 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003292/1.597, allocations: 156 kB / 1.498 GB, free: 3.672 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004636/1.601, allocations: 2.605 MB / 1.501 GB, free: 1.004 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.396e-05/1.601, allocations: 4 kB / 1.501 GB, free: 1 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001861/1.602, allocations: 67.98 kB / 1.501 GB, free: 0.9336 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001185/1.602, allocations: 87.22 kB / 1.501 GB, free: 0.8477 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003538/1.605, allocations: 2.16 MB / 1.503 GB, free: 14.68 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01567/1.621, allocations: 10.9 MB / 1.514 GB, free: 2.887 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/1.622, allocations: 0.7419 MB / 1.514 GB, free: 2.137 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007909/1.623, allocations: 0.5245 MB / 1.515 GB, free: 1.609 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001623/1.623, allocations: 93.47 kB / 1.515 GB, free: 1.5 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/1.623, allocations: 38.88 kB / 1.515 GB, free: 1.453 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=46): time 3.226e-06/1.623, allocations: 0 / 1.515 GB, free: 1.453 MB / 0.9636 GB Notification: Performance of matching and sorting (n=72): time 0.02151/1.645, allocations: 7.159 MB / 1.522 GB, free: 10.28 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.686e-05/1.645, allocations: 89.88 kB / 1.522 GB, free: 10.17 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001638/1.647, allocations: 0.8472 MB / 1.523 GB, free: 9.316 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0001382/1.647, allocations: 37.7 kB / 1.523 GB, free: 9.273 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006222/1.647, allocations: 0.7775 MB / 1.524 GB, free: 8.48 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003077/1.648, allocations: 252.4 kB / 1.524 GB, free: 8.23 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.62e-05/1.648, allocations: 20 kB / 1.524 GB, free: 8.211 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0002418/1.648, allocations: 402.7 kB / 1.524 GB, free: 7.809 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/1.649, allocations: 0.76 MB / 1.525 GB, free: 7.047 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/1.651, allocations: 1.121 MB / 1.526 GB, free: 5.77 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/1.652, allocations: 0.9662 MB / 1.527 GB, free: 4.805 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/1.652, allocations: 4 kB / 1.527 GB, free: 4.801 MB / 0.9792 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.00798/1.66, allocations: 3.392 MB / 1.53 GB, free: 1.387 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.002092/1.662, allocations: 4.275 MB / 1.535 GB, free: 12.78 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-05/1.662, allocations: 12 kB / 1.535 GB, free: 12.77 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006399/1.669, allocations: 1.743 MB / 1.536 GB, free: 11.02 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/1.67, allocations: 227.6 kB / 1.537 GB, free: 10.8 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0109/1.681, allocations: 7.287 MB / 1.544 GB, free: 3.344 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/1.682, allocations: 187.6 kB / 1.544 GB, free: 3.16 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001891/1.683, allocations: 47.98 kB / 1.544 GB, free: 3.113 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/1.683, allocations: 4 kB / 1.544 GB, free: 3.109 MB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005854/1.689, allocations: 2.732 MB / 1.547 GB, free: 384 kB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.169e-05/1.689, allocations: 12 kB / 1.547 GB, free: 372 kB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003443/1.692, allocations: 1.037 MB / 1.548 GB, free: 15.32 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/1.693, allocations: 299.5 kB / 1.548 GB, free: 15.03 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009014/1.702, allocations: 6.075 MB / 1.554 GB, free: 8.824 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/1.704, allocations: 155.7 kB / 1.554 GB, free: 8.672 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002138/1.704, allocations: 44 kB / 1.554 GB, free: 8.629 MB / 1.01 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 14} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0004111/1.704, allocations: 172.7 kB / 1.554 GB, free: 8.453 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/1.705, allocations: 86.97 kB / 1.554 GB, free: 8.367 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007262/1.712, allocations: 2.999 MB / 1.557 GB, free: 5.348 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/1.712, allocations: 12 kB / 1.557 GB, free: 5.336 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.397e-06/1.712, allocations: 4 kB / 1.557 GB, free: 5.332 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/1.712, allocations: 3.984 kB / 1.557 GB, free: 5.328 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01194/1.724, allocations: 5.578 MB / 1.563 GB, free: 15.64 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/1.724, allocations: 11.88 kB / 1.563 GB, free: 15.62 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00049/1.725, allocations: 112.1 kB / 1.563 GB, free: 15.52 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005596/1.73, allocations: 1.632 MB / 1.564 GB, free: 13.88 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.165e-05/1.73, allocations: 16 kB / 1.564 GB, free: 13.86 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01394/1.744, allocations: 9.464 MB / 1.574 GB, free: 4.129 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/1.744, allocations: 7.969 kB / 1.574 GB, free: 4.121 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006838/1.751, allocations: 2.955 MB / 1.576 GB, free: 1.062 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008499/1.752, allocations: 332 kB / 1.577 GB, free: 0.7188 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002907/1.752, allocations: 16 kB / 1.577 GB, free: 0.7031 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009874/1.753, allocations: 139.8 kB / 1.577 GB, free: 0.5664 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003017/1.754, allocations: 68.38 kB / 1.577 GB, free: 0.5 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.617e-05/1.754, allocations: 20 kB / 1.577 GB, free: 492 kB / 1.026 GB Notification: Performance of sorting global known variables: time 0.001145/1.755, allocations: 0.6669 MB / 1.578 GB, free: 15.82 MB / 1.042 GB Notification: Performance of sort global known variables: time 3.81e-07/1.755, allocations: 0 / 1.578 GB, free: 15.82 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.002947/1.758, allocations: 0.7187 MB / 1.578 GB, free: 15.1 MB / 1.042 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 (44): * Single equations (assignments): 42 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 13} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004426/1.758, allocations: 171.1 kB / 1.579 GB, free: 14.92 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.006802/1.765, allocations: 3.622 MB / 1.582 GB, free: 11.28 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/1.765, allocations: 0 / 1.582 GB, free: 11.28 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.002617/1.768, allocations: 1.369 MB / 1.583 GB, free: 9.883 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/1.769, allocations: 259.6 kB / 1.584 GB, free: 9.637 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006196/1.775, allocations: 2.848 MB / 1.586 GB, free: 6.73 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002144/1.778, allocations: 1.758 MB / 1.588 GB, free: 4.941 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.001905/1.779, allocations: 0.6513 MB / 1.589 GB, free: 4.285 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/1.78, allocations: 59.36 kB / 1.589 GB, free: 4.227 MB / 1.042 GB Notification: Performance of SimCode: time 9.41e-07/1.78, allocations: 0 / 1.589 GB, free: 4.227 MB / 1.042 GB Notification: Performance of Templates: time 0.04896/1.829, allocations: 28.83 MB / 1.617 GB, free: 7.539 MB / 1.073 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches