Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_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.Loads.Examples.Loads_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I.1.|sen.I.2.|sen.I.3.|sen.I.4.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I.1.|sen.I.2.|sen.I.3.|sen.I.4.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.625/2.625, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001565/0.001566, allocations: 187 kB / 0.4902 GB, free: 2.258 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.597/1.597, allocations: 223.1 MB / 0.7992 GB, free: 15.63 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.0009194/0.0009196, allocations: 99.14 kB / 0.9396 GB, free: 2.816 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003437, allocations: 8.719 kB / 1.09 GB, free: 213.1 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3142, allocations: 143 MB / 1.229 GB, free: 85.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9399/1.254, allocations: 192.6 MB / 1.417 GB, free: 71.54 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005072/1.255, allocations: 102.2 kB / 1.417 GB, free: 71.54 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.278/1.533, allocations: 119.5 MB / 1.534 GB, free: 36.18 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.784e-06/1.533, allocations: 4 kB / 1.534 GB, free: 36.18 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0001616/1.533, allocations: 62.38 kB / 1.534 GB, free: 36.17 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: 776 * Number of variables: 776 Notification: Performance of Generate backend data structure: time 0.007051/1.54, allocations: 2.511 MB / 1.537 GB, free: 34.67 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/1.54, allocations: 8.344 kB / 1.537 GB, free: 34.67 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003974/1.544, allocations: 0.7033 MB / 1.537 GB, free: 34.34 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00377/1.548, allocations: 1.609 MB / 1.539 GB, free: 33.71 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/1.548, allocations: 222.9 kB / 1.539 GB, free: 33.69 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008196/1.549, allocations: 285.5 kB / 1.539 GB, free: 33.68 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008711/1.558, allocations: 4.595 MB / 1.544 GB, free: 32.31 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001093/1.558, allocations: 7.812 kB / 1.544 GB, free: 32.3 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005238/1.558, allocations: 123.4 kB / 1.544 GB, free: 32.3 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002053/1.558, allocations: 187.4 kB / 1.544 GB, free: 32.27 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006351/1.565, allocations: 3.75 MB / 1.548 GB, free: 31.68 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02684/1.592, allocations: 23.06 MB / 1.57 GB, free: 14.38 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002595/1.594, allocations: 1.576 MB / 1.572 GB, free: 13.92 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000156/1.595, allocations: 96.47 kB / 1.572 GB, free: 13.82 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/1.595, allocations: 46.44 kB / 1.572 GB, free: 13.78 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=72): time 3.477e-06/1.595, allocations: 0 / 1.572 GB, free: 13.78 MB / 0.9011 GB Notification: Performance of matching and sorting (n=75): time 0.005941/1.601, allocations: 3.544 MB / 1.575 GB, free: 11.06 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/1.601, allocations: 137.3 kB / 1.576 GB, free: 10.89 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/1.602, allocations: 0.9425 MB / 1.577 GB, free: 10.18 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 7.903e-05/1.602, allocations: 38.33 kB / 1.577 GB, free: 10.14 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004434/1.602, allocations: 1.189 MB / 1.578 GB, free: 9.133 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/1.602, allocations: 276.7 kB / 1.578 GB, free: 8.895 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.157e-05/1.602, allocations: 25.5 kB / 1.578 GB, free: 8.891 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001079/1.603, allocations: 406.2 kB / 1.578 GB, free: 8.523 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000927/1.604, allocations: 0.7885 MB / 1.579 GB, free: 7.996 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/1.605, allocations: 1.28 MB / 1.58 GB, free: 6.512 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/1.606, allocations: 0.9905 MB / 1.581 GB, free: 5.52 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/1.606, allocations: 4 kB / 1.581 GB, free: 5.516 MB / 0.9011 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.002657/1.608, allocations: 2.16 MB / 1.584 GB, free: 3.348 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.00179/1.61, allocations: 5.496 MB / 1.589 GB, free: 13.42 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.354e-05/1.61, allocations: 16 kB / 1.589 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.102e-05/1.61, allocations: 31.92 kB / 1.589 GB, free: 13.38 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001795/1.612, allocations: 411.3 kB / 1.589 GB, free: 12.97 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.895e-05/1.612, allocations: 31.86 kB / 1.589 GB, free: 12.94 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/1.614, allocations: 251.3 kB / 1.59 GB, free: 12.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/1.614, allocations: 63.98 kB / 1.59 GB, free: 12.63 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/1.614, allocations: 0 / 1.59 GB, free: 12.63 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002926/1.617, allocations: 1.757 MB / 1.591 GB, free: 10.88 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/1.617, allocations: 16.25 kB / 1.591 GB, free: 10.86 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.44e-05/1.617, allocations: 24 kB / 1.591 GB, free: 10.84 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/1.618, allocations: 359.4 kB / 1.592 GB, free: 10.48 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.875e-05/1.618, allocations: 27.94 kB / 1.592 GB, free: 10.46 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/1.62, allocations: 187.3 kB / 1.592 GB, free: 10.27 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/1.62, allocations: 56 kB / 1.592 GB, free: 10.22 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (156): * Single equations (assignments): 156 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00267/1.622, allocations: 1.172 MB / 1.593 GB, free: 9.035 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003699/1.623, allocations: 106.8 kB / 1.593 GB, free: 8.93 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002561/1.625, allocations: 1.499 MB / 1.595 GB, free: 7.418 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/1.625, allocations: 11.95 kB / 1.595 GB, free: 7.406 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/1.625, allocations: 8 kB / 1.595 GB, free: 7.398 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/1.625, allocations: 4.125 kB / 1.595 GB, free: 7.395 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/1.638, allocations: 7.266 MB / 1.602 GB, free: 15.92 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/1.638, allocations: 12 kB / 1.602 GB, free: 15.91 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/1.639, allocations: 267.5 kB / 1.602 GB, free: 15.64 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.75e-05/1.639, allocations: 12 kB / 1.602 GB, free: 15.63 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.395e-05/1.639, allocations: 20.31 kB / 1.602 GB, free: 15.61 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.696e-05/1.639, allocations: 20.03 kB / 1.602 GB, free: 15.59 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.357e-05/1.639, allocations: 19.88 kB / 1.602 GB, free: 15.57 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002894/1.642, allocations: 2.421 MB / 1.605 GB, free: 12.8 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008845/1.643, allocations: 375.6 kB / 1.605 GB, free: 12.41 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/1.643, allocations: 20 kB / 1.605 GB, free: 12.39 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000889/1.644, allocations: 135.8 kB / 1.605 GB, free: 12.26 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/1.644, allocations: 79.7 kB / 1.605 GB, free: 12.18 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.05e-05/1.644, allocations: 36 kB / 1.605 GB, free: 12.15 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0009959/1.645, allocations: 0.7142 MB / 1.606 GB, free: 11.42 MB / 0.9323 GB Notification: Performance of sort global known variables: time 1.3e-07/1.645, allocations: 0 / 1.606 GB, free: 11.42 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.00285/1.648, allocations: 0.8203 MB / 1.607 GB, free: 10.6 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 38 * 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 (78): * Single equations (assignments): 78 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002719/1.649, allocations: 155.7 kB / 1.607 GB, free: 10.44 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003923/1.652, allocations: 2.641 MB / 1.609 GB, free: 7.801 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/1.653, allocations: 4 kB / 1.609 GB, free: 7.797 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001012/1.654, allocations: 0.7395 MB / 1.61 GB, free: 7.059 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/1.655, allocations: 256.1 kB / 1.61 GB, free: 6.812 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008904/1.664, allocations: 5.673 MB / 1.616 GB, free: 0.9961 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002275/1.666, allocations: 2.167 MB / 1.618 GB, free: 14.8 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002127/1.668, allocations: 0.7383 MB / 1.619 GB, free: 14.05 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003311/1.669, allocations: 83.41 kB / 1.619 GB, free: 13.97 MB / 0.948 GB Notification: Performance of SimCode: time 1.253e-06/1.669, allocations: 0 / 1.619 GB, free: 13.97 MB / 0.948 GB Notification: Performance of Templates: time 0.02719/1.696, allocations: 15.12 MB / 1.634 GB, free: 15 MB / 0.9636 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches