Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.298/2.298, allocations: 387.1 MB / 399.7 MB, free: 9.488 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.001613/0.001612, allocations: 168.9 kB / 492.3 MB, free: 0.6094 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.513/1.513, allocations: 221.3 MB / 0.7871 GB, free: 12.91 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.0009455/0.0009456, allocations: 90.02 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.626e-05/2.628e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2353, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8375/1.073, allocations: 183.1 MB / 1.391 GB, free: 15.58 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/1.073, allocations: 99.64 kB / 1.391 GB, free: 15.56 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.4907/1.564, allocations: 213.8 MB / 1.6 GB, free: 8.051 MB / 1.01 GB Notification: Performance of FrontEnd: time 2.024e-06/1.564, allocations: 0 / 1.6 GB, free: 8.051 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.0003795/1.564, allocations: 144.2 kB / 1.6 GB, free: 7.91 MB / 1.01 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01476/1.579, allocations: 4.875 MB / 1.605 GB, free: 2.973 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/1.579, allocations: 8.031 kB / 1.605 GB, free: 2.965 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008044/1.587, allocations: 1.136 MB / 1.606 GB, free: 1.82 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009983/1.597, allocations: 3.681 MB / 1.61 GB, free: 14.08 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004866/1.598, allocations: 431.6 kB / 1.61 GB, free: 13.66 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002478/1.6, allocations: 0.5505 MB / 1.611 GB, free: 13.11 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02341/1.624, allocations: 8.723 MB / 1.619 GB, free: 3.945 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002905/1.624, allocations: 15.88 kB / 1.619 GB, free: 3.93 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002157/1.626, allocations: 259.9 kB / 1.619 GB, free: 3.676 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003732/1.627, allocations: 299 kB / 1.62 GB, free: 3.383 MB / 1.026 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01595/1.642, allocations: 6.321 MB / 1.626 GB, free: 13.05 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05872/1.701, allocations: 41.46 MB / 1.666 GB, free: 15.85 MB / 1.089 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005452/1.707, allocations: 3.083 MB / 1.669 GB, free: 12.76 MB / 1.089 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003585/1.71, allocations: 2.131 MB / 1.671 GB, free: 10.63 MB / 1.089 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002091/1.711, allocations: 22 kB / 1.671 GB, free: 10.61 MB / 1.089 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.803e-05/1.711, allocations: 60.56 kB / 1.672 GB, free: 10.54 MB / 1.089 GB Notification: Performance of pre-optimization done (n=209): time 5.06e-06/1.711, allocations: 4 kB / 1.672 GB, free: 10.54 MB / 1.089 GB Notification: Performance of matching and sorting (n=212): time 0.01315/1.724, allocations: 6.581 MB / 1.678 GB, free: 3.926 MB / 1.089 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.34e-05/1.724, allocations: 81.39 kB / 1.678 GB, free: 3.832 MB / 1.089 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00374/1.728, allocations: 1.649 MB / 1.68 GB, free: 2.164 MB / 1.089 GB Notification: Performance of collectPreVariables (initialization): time 0.0002697/1.728, allocations: 65.7 kB / 1.68 GB, free: 2.094 MB / 1.089 GB Notification: Performance of collectInitialEqns (initialization): time 0.001984/1.73, allocations: 2.362 MB / 1.682 GB, free: 15.7 MB / 1.104 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008877/1.731, allocations: 0.7278 MB / 1.683 GB, free: 14.96 MB / 1.104 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001979/1.731, allocations: 56 kB / 1.683 GB, free: 14.9 MB / 1.104 GB Notification: Performance of setup shared object (initialization): time 0.0002628/1.731, allocations: 411.1 kB / 1.683 GB, free: 14.5 MB / 1.104 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002171/1.734, allocations: 1.301 MB / 1.684 GB, free: 13.19 MB / 1.104 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002748/1.736, allocations: 2.078 MB / 1.686 GB, free: 10.76 MB / 1.104 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002634/1.739, allocations: 1.669 MB / 1.688 GB, free: 9.094 MB / 1.104 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.01e-05/1.739, allocations: 8 kB / 1.688 GB, free: 9.086 MB / 1.104 GB Notification: Performance of matching and sorting (n=327) (initialization): time 0.008343/1.747, allocations: 4.929 MB / 1.693 GB, free: 4.133 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/1.747, allocations: 16 kB / 1.693 GB, free: 4.117 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.825e-05/1.747, allocations: 24 kB / 1.693 GB, free: 4.094 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003451/1.751, allocations: 1.527 MB / 1.694 GB, free: 2.559 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001792/1.753, allocations: 451.2 kB / 1.695 GB, free: 2.117 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02242/1.775, allocations: 16.94 MB / 1.711 GB, free: 0.6367 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002647/1.778, allocations: 151.9 kB / 1.712 GB, free: 500 kB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005179/1.778, allocations: 108 kB / 1.712 GB, free: 392 kB / 1.12 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 113 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 215 * 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: 4 {(6,72.2%) 32,(6,66.7%) 24,(4,100.0%) 18,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007727/1.779, allocations: 264.2 kB / 1.712 GB, free: 120 kB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008792/1.78, allocations: 284.8 kB / 1.712 GB, free: 15.83 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008098/1.788, allocations: 4.412 MB / 1.716 GB, free: 11.39 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-05/1.788, allocations: 20 kB / 1.717 GB, free: 11.37 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.339e-05/1.788, allocations: 16 kB / 1.717 GB, free: 11.36 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.76e-05/1.788, allocations: 7.969 kB / 1.717 GB, free: 11.35 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01955/1.808, allocations: 9.598 MB / 1.726 GB, free: 1.609 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.696e-05/1.808, allocations: 4 kB / 1.726 GB, free: 1.605 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/1.809, allocations: 239.5 kB / 1.726 GB, free: 1.371 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003214/1.812, allocations: 1.385 MB / 1.727 GB, free: 15.98 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002179/1.813, allocations: 44 kB / 1.728 GB, free: 15.93 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7081/2.521, allocations: 16.96 MB / 1.744 GB, free: 282 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/2.521, allocations: 9.297 kB / 1.744 GB, free: 282 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008589/2.529, allocations: 4.829 MB / 1.749 GB, free: 281.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002/2.531, allocations: 0.6313 MB / 1.749 GB, free: 281.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003535/2.532, allocations: 48.98 kB / 1.749 GB, free: 281.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/2.533, allocations: 111.4 kB / 1.75 GB, free: 281.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005723/2.534, allocations: 189.3 kB / 1.75 GB, free: 281.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001544/2.534, allocations: 59.28 kB / 1.75 GB, free: 281.1 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.00202/2.536, allocations: 1.237 MB / 1.751 GB, free: 280.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.41e-07/2.536, allocations: 0.75 kB / 1.751 GB, free: 280.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00412/2.54, allocations: 1.177 MB / 1.752 GB, free: 280.9 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 103 * 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: 4 {(4,100.0%) 18,(6,66.7%) 24,(6,66.7%) 32,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003558/2.54, allocations: 174 kB / 1.752 GB, free: 280.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.007257/2.548, allocations: 4.53 MB / 1.757 GB, free: 280.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/2.548, allocations: 5.531 kB / 1.757 GB, free: 280.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.004868/2.553, allocations: 2.867 MB / 1.76 GB, free: 279.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004313/2.557, allocations: 0.7627 MB / 1.76 GB, free: 279.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02186/2.579, allocations: 7.455 MB / 1.768 GB, free: 278 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00715/2.586, allocations: 3.791 MB / 1.771 GB, free: 277.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002679/2.589, allocations: 0.5411 MB / 1.772 GB, free: 277.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004414/2.589, allocations: 146.8 kB / 1.772 GB, free: 277.2 MB / 1.151 GB Notification: Performance of SimCode: time 9.42e-07/2.589, allocations: 3.281 kB / 1.772 GB, free: 277.2 MB / 1.151 GB Notification: Performance of Templates: time 0.08534/2.675, allocations: 47.56 MB / 1.818 GB, free: 276.1 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches