Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.255/2.255, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001515/0.001515, allocations: 176.8 kB / 487.4 MB, free: 5.02 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.64/1.64, allocations: 221.5 MB / 0.7824 GB, free: 0.957 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009442/0.0009439, allocations: 107.8 kB / 0.9219 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.801e-05/1.805e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3029, allocations: 142.4 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.041/1.344, allocations: 203.6 MB / 1.405 GB, free: 4.695 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003596/1.344, allocations: 100.9 kB / 1.405 GB, free: 4.641 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.2155/1.56, allocations: 76.64 MB / 1.48 GB, free: 4.004 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.933e-06/1.56, allocations: 0 / 1.48 GB, free: 4.004 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001501/1.56, allocations: 39.98 kB / 1.48 GB, free: 3.965 MB / 0.8855 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.004766/1.565, allocations: 1.679 MB / 1.481 GB, free: 2.336 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/1.565, allocations: 8.031 kB / 1.481 GB, free: 2.328 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003349/1.568, allocations: 0.6649 MB / 1.482 GB, free: 1.668 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/1.57, allocations: 1.25 MB / 1.483 GB, free: 0.6602 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.185e-05/1.57, allocations: 52 kB / 1.483 GB, free: 0.6094 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002556/1.571, allocations: 92 kB / 1.483 GB, free: 0.5195 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003216/1.574, allocations: 1.938 MB / 1.485 GB, free: 15.29 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003637/1.578, allocations: 2.373 MB / 1.488 GB, free: 13.56 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.916e-05/1.578, allocations: 7.938 kB / 1.488 GB, free: 13.55 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001562/1.578, allocations: 0 / 1.488 GB, free: 13.55 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.833e-05/1.578, allocations: 91.14 kB / 1.488 GB, free: 13.47 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01275/1.591, allocations: 10.53 MB / 1.498 GB, free: 2.988 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/1.592, allocations: 0.7142 MB / 1.499 GB, free: 2.266 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006914/1.592, allocations: 0.5013 MB / 1.499 GB, free: 1.762 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001412/1.593, allocations: 97.42 kB / 1.499 GB, free: 1.648 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/1.593, allocations: 38.94 kB / 1.499 GB, free: 1.602 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=46): time 2.786e-06/1.593, allocations: 0 / 1.499 GB, free: 1.602 MB / 0.9011 GB Notification: Performance of matching and sorting (n=72): time 0.01053/1.603, allocations: 4.358 MB / 1.504 GB, free: 13.23 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.21e-05/1.603, allocations: 93.83 kB / 1.504 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001303/1.605, allocations: 0.761 MB / 1.504 GB, free: 12.35 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001032/1.605, allocations: 25.7 kB / 1.504 GB, free: 12.32 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006147/1.605, allocations: 0.7735 MB / 1.505 GB, free: 11.53 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002947/1.606, allocations: 248.4 kB / 1.505 GB, free: 11.29 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-05/1.606, allocations: 0 / 1.505 GB, free: 11.29 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.000259/1.606, allocations: 390.8 kB / 1.506 GB, free: 10.89 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/1.607, allocations: 0.7443 MB / 1.507 GB, free: 10.15 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/1.608, allocations: 1.095 MB / 1.508 GB, free: 8.891 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001712/1.61, allocations: 1.086 MB / 1.509 GB, free: 7.805 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/1.61, allocations: 4 kB / 1.509 GB, free: 7.801 MB / 0.9167 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.007085/1.617, allocations: 3.24 MB / 1.512 GB, free: 4.547 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001699/1.619, allocations: 4.269 MB / 1.516 GB, free: 15.94 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.962e-05/1.619, allocations: 8 kB / 1.516 GB, free: 15.93 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004964/1.624, allocations: 1.405 MB / 1.517 GB, free: 14.52 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009026/1.625, allocations: 227.6 kB / 1.518 GB, free: 14.3 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/1.635, allocations: 7.017 MB / 1.524 GB, free: 7.141 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/1.636, allocations: 175.5 kB / 1.525 GB, free: 6.969 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/1.637, allocations: 44 kB / 1.525 GB, free: 6.926 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/1.637, allocations: 4 kB / 1.525 GB, free: 6.922 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002688/1.639, allocations: 1.67 MB / 1.526 GB, free: 5.254 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/1.639, allocations: 19.94 kB / 1.526 GB, free: 5.234 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/1.639, allocations: 16 kB / 1.526 GB, free: 5.219 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/1.641, allocations: 339.5 kB / 1.527 GB, free: 4.887 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.829e-05/1.641, allocations: 23.92 kB / 1.527 GB, free: 4.863 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008454/1.641, allocations: 119.8 kB / 1.527 GB, free: 4.746 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-05/1.642, allocations: 51.98 kB / 1.527 GB, free: 4.695 MB / 0.9323 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.0002625/1.642, allocations: 129.5 kB / 1.527 GB, free: 4.562 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/1.642, allocations: 86.97 kB / 1.527 GB, free: 4.477 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006978/1.649, allocations: 2.999 MB / 1.53 GB, free: 1.453 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/1.649, allocations: 8 kB / 1.53 GB, free: 1.445 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/1.649, allocations: 4 kB / 1.53 GB, free: 1.441 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/1.649, allocations: 3.984 kB / 1.53 GB, free: 1.438 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01045/1.659, allocations: 5.301 MB / 1.535 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/1.659, allocations: 256 / 1.535 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004498/1.66, allocations: 119.8 kB / 1.535 GB, free: 11.92 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005205/1.665, allocations: 1.607 MB / 1.537 GB, free: 10.3 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.208e-05/1.665, allocations: 4 kB / 1.537 GB, free: 10.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01276/1.678, allocations: 9.158 MB / 1.546 GB, free: 0.9102 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/1.678, allocations: 4 kB / 1.546 GB, free: 0.9062 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006399/1.684, allocations: 2.978 MB / 1.549 GB, free: 13.83 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006318/1.685, allocations: 328 kB / 1.549 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/1.685, allocations: 11.92 kB / 1.549 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/1.686, allocations: 167.7 kB / 1.549 GB, free: 13.32 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000275/1.687, allocations: 64.42 kB / 1.549 GB, free: 13.25 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-05/1.687, allocations: 20 kB / 1.549 GB, free: 13.23 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0008763/1.688, allocations: 0.5849 MB / 1.55 GB, free: 12.65 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1.4e-07/1.688, allocations: 0 / 1.55 GB, free: 12.65 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.002106/1.69, allocations: 0.6328 MB / 1.55 GB, free: 12.02 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 (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.000335/1.69, allocations: 176.5 kB / 1.551 GB, free: 11.84 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.004766/1.695, allocations: 2.912 MB / 1.554 GB, free: 8.922 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/1.695, allocations: 0 / 1.554 GB, free: 8.922 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.002456/1.697, allocations: 1.327 MB / 1.555 GB, free: 7.574 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/1.698, allocations: 223.7 kB / 1.555 GB, free: 7.359 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004696/1.703, allocations: 2.805 MB / 1.558 GB, free: 4.5 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001488/1.705, allocations: 1.755 MB / 1.559 GB, free: 2.715 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.001593/1.706, allocations: 0.6392 MB / 1.56 GB, free: 2.07 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/1.706, allocations: 43.44 kB / 1.56 GB, free: 2.027 MB / 0.9636 GB Notification: Performance of SimCode: time 5.61e-07/1.706, allocations: 0 / 1.56 GB, free: 2.027 MB / 0.9636 GB Notification: Performance of Templates: time 0.03598/1.742, allocations: 24.32 MB / 1.584 GB, free: 9.84 MB / 0.9948 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches