Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.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_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.285/2.285, 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.0009743/0.0009744, allocations: 184.8 kB / 487.4 MB, free: 5.051 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.568/1.568, allocations: 221.5 MB / 0.7824 GB, free: 1.027 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.0009018/0.0009019, allocations: 98.97 kB / 0.9219 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.099e-05/2.1e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.2997, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9826/1.282, allocations: 205.9 MB / 1.407 GB, free: 2.672 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/1.283, allocations: 98 kB / 1.407 GB, free: 2.617 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.386/1.669, allocations: 154.9 MB / 1.558 GB, free: 5.312 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.174e-06/1.669, allocations: 3.938 kB / 1.558 GB, free: 5.309 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.0004443/1.669, allocations: 95.98 kB / 1.558 GB, free: 5.215 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01254/1.682, allocations: 3.216 MB / 1.562 GB, free: 1.938 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/1.682, allocations: 12.03 kB / 1.562 GB, free: 1.926 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00664/1.688, allocations: 0.8264 MB / 1.562 GB, free: 1.094 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009752/1.698, allocations: 2.553 MB / 1.565 GB, free: 14.48 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003867/1.699, allocations: 116 kB / 1.565 GB, free: 14.37 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002711/1.701, allocations: 235.8 kB / 1.565 GB, free: 14.14 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01092/1.712, allocations: 3.58 MB / 1.569 GB, free: 10.55 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01685/1.729, allocations: 5.107 MB / 1.574 GB, free: 5.117 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002535/1.73, allocations: 19.78 kB / 1.574 GB, free: 5.098 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00149/1.731, allocations: 12 kB / 1.574 GB, free: 5.086 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003164/1.731, allocations: 215 kB / 1.574 GB, free: 4.875 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03725/1.769, allocations: 26.89 MB / 1.6 GB, free: 7.504 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001882/1.771, allocations: 1.052 MB / 1.601 GB, free: 6.441 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001465/1.772, allocations: 0.9496 MB / 1.602 GB, free: 5.492 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/1.772, allocations: 9.312 kB / 1.602 GB, free: 5.484 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/1.772, allocations: 47.86 kB / 1.602 GB, free: 5.43 MB / 1.01 GB Notification: Performance of pre-optimization done (n=110): time 4.348e-06/1.772, allocations: 3.938 kB / 1.602 GB, free: 5.426 MB / 1.01 GB Notification: Performance of matching and sorting (n=131): time 0.015/1.787, allocations: 6.776 MB / 1.609 GB, free: 14.55 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/1.787, allocations: 64.72 kB / 1.609 GB, free: 14.47 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002538/1.79, allocations: 1.069 MB / 1.61 GB, free: 13.4 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 0.0001227/1.79, allocations: 33.7 kB / 1.61 GB, free: 13.36 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.001515/1.792, allocations: 1.674 MB / 1.612 GB, free: 11.67 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005529/1.792, allocations: 453.3 kB / 1.612 GB, free: 11.22 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/1.792, allocations: 0 / 1.612 GB, free: 11.22 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0002581/1.793, allocations: 373.9 kB / 1.612 GB, free: 10.85 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/1.794, allocations: 0.8277 MB / 1.613 GB, free: 10.02 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00178/1.796, allocations: 1.401 MB / 1.615 GB, free: 8.348 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/1.797, allocations: 1.068 MB / 1.616 GB, free: 7.281 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.649e-05/1.797, allocations: 12 kB / 1.616 GB, free: 7.27 MB / 1.026 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005933/1.803, allocations: 2.97 MB / 1.619 GB, free: 4.262 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/1.803, allocations: 12 kB / 1.619 GB, free: 4.25 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.893e-05/1.803, allocations: 20 kB / 1.619 GB, free: 4.23 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002102/1.806, allocations: 0.7061 MB / 1.619 GB, free: 3.496 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001655/1.807, allocations: 399.3 kB / 1.62 GB, free: 3.105 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01511/1.822, allocations: 14.95 MB / 1.634 GB, free: 3.121 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002472/1.825, allocations: 71.89 kB / 1.634 GB, free: 3.051 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005507/1.825, allocations: 72 kB / 1.634 GB, free: 2.98 MB / 1.042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (193): * Single equations (assignments): 184 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007452/1.826, allocations: 160.5 kB / 1.635 GB, free: 2.816 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008094/1.827, allocations: 189.7 kB / 1.635 GB, free: 2.629 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005657/1.833, allocations: 2.589 MB / 1.637 GB, free: 15.99 MB / 1.057 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/1.833, allocations: 12 kB / 1.637 GB, free: 15.98 MB / 1.057 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.492e-05/1.833, allocations: 8 kB / 1.637 GB, free: 15.97 MB / 1.057 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/1.833, allocations: 7.922 kB / 1.637 GB, free: 15.97 MB / 1.057 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01388/1.847, allocations: 5.369 MB / 1.643 GB, free: 10.45 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/1.847, allocations: 7.938 kB / 1.643 GB, free: 10.44 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001953/1.849, allocations: 239.6 kB / 1.643 GB, free: 10.21 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002893/1.852, allocations: 0.6326 MB / 1.643 GB, free: 9.547 MB / 1.057 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/1.852, allocations: 15.98 kB / 1.643 GB, free: 9.531 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01959/1.871, allocations: 14.69 MB / 1.658 GB, free: 9.805 MB / 1.073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.354e-05/1.871, allocations: 7.938 kB / 1.658 GB, free: 9.797 MB / 1.073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009506/1.881, allocations: 4.087 MB / 1.662 GB, free: 5.473 MB / 1.073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001643/1.883, allocations: 442.7 kB / 1.662 GB, free: 5.02 MB / 1.073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003914/1.883, allocations: 12 kB / 1.662 GB, free: 5.008 MB / 1.073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/1.885, allocations: 59.89 kB / 1.662 GB, free: 4.949 MB / 1.073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004484/1.885, allocations: 109.1 kB / 1.662 GB, free: 4.844 MB / 1.073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/1.885, allocations: 47.92 kB / 1.662 GB, free: 4.797 MB / 1.073 GB Notification: Performance of sorting global known variables: time 0.001809/1.887, allocations: 0.7918 MB / 1.663 GB, free: 4.012 MB / 1.073 GB Notification: Performance of sort global known variables: time 4.2e-07/1.887, allocations: 0 / 1.663 GB, free: 4.012 MB / 1.073 GB Notification: Performance of remove unused functions: time 0.004172/1.891, allocations: 0.6367 MB / 1.664 GB, free: 3.375 MB / 1.073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.i_p[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 92 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003882/1.892, allocations: 138.2 kB / 1.664 GB, free: 3.23 MB / 1.073 GB Notification: Performance of simCode: created initialization part: time 0.007078/1.899, allocations: 3.222 MB / 1.667 GB, free: 15.92 MB / 1.089 GB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/1.899, allocations: 0 / 1.667 GB, free: 15.92 MB / 1.089 GB Notification: Performance of simCode: created simulation system equations: time 0.004348/1.903, allocations: 2.127 MB / 1.669 GB, free: 13.7 MB / 1.089 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004396/1.907, allocations: 0.5311 MB / 1.67 GB, free: 13.18 MB / 1.089 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/1.928, allocations: 5.171 MB / 1.675 GB, free: 7.898 MB / 1.089 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006856/1.935, allocations: 2.734 MB / 1.677 GB, free: 5.133 MB / 1.089 GB Notification: Performance of simCode: alias equations: time 0.00308/1.938, allocations: 456.5 kB / 1.678 GB, free: 4.684 MB / 1.089 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004918/1.939, allocations: 107.4 kB / 1.678 GB, free: 4.578 MB / 1.089 GB Notification: Performance of SimCode: time 1.102e-06/1.939, allocations: 0 / 1.678 GB, free: 4.578 MB / 1.089 GB Notification: Performance of Templates: time 0.07572/2.015, allocations: 27.87 MB / 1.705 GB, free: 9.098 MB / 1.12 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches