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.263/2.263, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.0013/0.001301, allocations: 176.8 kB / 487.4 MB, free: 5.043 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.521/1.521, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 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.0008052/0.0008052, allocations: 99.89 kB / 0.9219 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.515e-05/1.518e-05, allocations: 7.984 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2379, allocations: 142.4 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8508/1.089, allocations: 182.4 MB / 1.384 GB, free: 17.09 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/1.089, allocations: 92.03 kB / 1.384 GB, free: 17.08 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.4925/1.581, allocations: 212.9 MB / 1.592 GB, free: 1.867 MB / 0.9948 GB Notification: Performance of FrontEnd: time 1.513e-06/1.582, allocations: 224 / 1.592 GB, free: 1.867 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.0004697/1.582, allocations: 144 kB / 1.592 GB, free: 1.727 MB / 0.9948 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.01709/1.599, allocations: 4.867 MB / 1.597 GB, free: 12.8 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/1.599, allocations: 12.03 kB / 1.597 GB, free: 12.79 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00806/1.607, allocations: 1.136 MB / 1.598 GB, free: 11.64 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009634/1.617, allocations: 3.689 MB / 1.602 GB, free: 7.898 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003017/1.617, allocations: 184 kB / 1.602 GB, free: 7.719 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002268/1.62, allocations: 335.9 kB / 1.602 GB, free: 7.391 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01501/1.635, allocations: 5.685 MB / 1.608 GB, free: 1.703 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02302/1.658, allocations: 7.872 MB / 1.615 GB, free: 9.387 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002171/1.658, allocations: 19.83 kB / 1.615 GB, free: 9.367 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001535/1.659, allocations: 12 kB / 1.615 GB, free: 9.355 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003692/1.66, allocations: 303 kB / 1.616 GB, free: 9.059 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04977/1.71, allocations: 40.26 MB / 1.655 GB, free: 13.08 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005046/1.715, allocations: 2.971 MB / 1.658 GB, free: 10.11 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002854/1.718, allocations: 2.064 MB / 1.66 GB, free: 8.039 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001239/1.718, allocations: 25.98 kB / 1.66 GB, free: 8.012 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.361e-05/1.718, allocations: 60.56 kB / 1.66 GB, free: 7.945 MB / 1.073 GB Notification: Performance of pre-optimization done (n=209): time 4.198e-06/1.718, allocations: 0 / 1.66 GB, free: 7.945 MB / 1.073 GB Notification: Performance of matching and sorting (n=212): time 0.01056/1.728, allocations: 6.298 MB / 1.666 GB, free: 1.621 MB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/1.728, allocations: 73.41 kB / 1.666 GB, free: 1.535 MB / 1.073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/1.73, allocations: 1.325 MB / 1.668 GB, free: 188 kB / 1.073 GB Notification: Performance of collectPreVariables (initialization): time 0.0001645/1.73, allocations: 29.7 kB / 1.668 GB, free: 152 kB / 1.073 GB Notification: Performance of collectInitialEqns (initialization): time 0.001482/1.732, allocations: 2.387 MB / 1.67 GB, free: 13.73 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006843/1.733, allocations: 0.7044 MB / 1.671 GB, free: 13.02 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/1.733, allocations: 0 / 1.671 GB, free: 13.02 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.0002199/1.733, allocations: 411.1 kB / 1.671 GB, free: 12.61 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001776/1.735, allocations: 1.247 MB / 1.672 GB, free: 11.36 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002299/1.737, allocations: 2.012 MB / 1.674 GB, free: 9 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002046/1.739, allocations: 1.614 MB / 1.676 GB, free: 7.383 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.271e-05/1.739, allocations: 8 kB / 1.676 GB, free: 7.375 MB / 1.089 GB Notification: Performance of matching and sorting (n=327) (initialization): time 0.007056/1.746, allocations: 4.594 MB / 1.68 GB, free: 2.758 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 3.309e-05/1.746, allocations: 16 kB / 1.68 GB, free: 2.742 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.97e-05/1.746, allocations: 24 kB / 1.68 GB, free: 2.719 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003122/1.749, allocations: 1.4 MB / 1.682 GB, free: 1.312 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/1.751, allocations: 443.2 kB / 1.682 GB, free: 0.8789 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01937/1.77, allocations: 16.45 MB / 1.698 GB, free: 15.96 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/1.773, allocations: 99.8 kB / 1.698 GB, free: 15.86 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001994/1.773, allocations: 112 kB / 1.698 GB, free: 15.75 MB / 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,66.7%) 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.0004046/1.773, allocations: 178.1 kB / 1.699 GB, free: 15.57 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000379/1.774, allocations: 265 kB / 1.699 GB, free: 15.31 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006655/1.78, allocations: 4.17 MB / 1.703 GB, free: 11.11 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.705e-05/1.78, allocations: 20 kB / 1.703 GB, free: 11.09 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.661e-05/1.78, allocations: 16 kB / 1.703 GB, free: 11.07 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.147e-05/1.78, allocations: 20 kB / 1.703 GB, free: 11.05 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01471/1.795, allocations: 8.53 MB / 1.711 GB, free: 2.398 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/1.795, allocations: 7.984 kB / 1.711 GB, free: 2.391 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/1.796, allocations: 244.1 kB / 1.711 GB, free: 2.152 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003072/1.799, allocations: 1.359 MB / 1.713 GB, free: 0.7852 MB / 1.12 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001479/1.799, allocations: 11.98 kB / 1.713 GB, free: 0.7734 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0202/1.82, allocations: 16.41 MB / 1.729 GB, free: 15.89 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/1.82, allocations: 7.953 kB / 1.729 GB, free: 15.88 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007224/1.827, allocations: 4.626 MB / 1.733 GB, free: 11.03 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001611/1.828, allocations: 0.5955 MB / 1.734 GB, free: 10.41 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003991/1.829, allocations: 11.95 kB / 1.734 GB, free: 10.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/1.83, allocations: 79.86 kB / 1.734 GB, free: 10.32 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005173/1.831, allocations: 177.6 kB / 1.734 GB, free: 10.15 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001394/1.831, allocations: 60 kB / 1.734 GB, free: 10.09 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001473/1.832, allocations: 0.9685 MB / 1.735 GB, free: 9.109 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.41e-07/1.832, allocations: 4 kB / 1.735 GB, free: 9.105 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003681/1.836, allocations: 1.059 MB / 1.736 GB, free: 8.047 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.000308/1.836, allocations: 127 kB / 1.736 GB, free: 7.914 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.006874/1.843, allocations: 4.337 MB / 1.741 GB, free: 3.535 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/1.843, allocations: 0 / 1.741 GB, free: 3.535 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.004402/1.848, allocations: 2.739 MB / 1.743 GB, free: 0.7578 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003483/1.851, allocations: 0.6836 MB / 1.744 GB, free: 76 kB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6062/2.457, allocations: 7.359 MB / 1.751 GB, free: 284.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00579/2.463, allocations: 3.787 MB / 1.755 GB, free: 283.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002554/2.466, allocations: 0.5154 MB / 1.755 GB, free: 283.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004412/2.466, allocations: 138.9 kB / 1.755 GB, free: 283.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.533e-06/2.466, allocations: 3.562 kB / 1.755 GB, free: 283.6 MB / 1.151 GB Notification: Performance of Templates: time 0.08899/2.555, allocations: 43.69 MB / 1.798 GB, free: 282.9 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