Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.706/1.706, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009062/0.0009062, allocations: 185.2 kB / 490.8 MB, free: 1.953 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.047/1.047, allocations: 221.3 MB / 0.7863 GB, free: 13.65 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.0007923/0.0007923, allocations: 91.06 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.062e-06/6.082e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1636, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4674/0.631, allocations: 182.5 MB / 1.39 GB, free: 15.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.6312, allocations: 89.09 kB / 1.39 GB, free: 15.14 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.375/1.006, allocations: 190.1 MB / 1.575 GB, free: 2.309 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.000222/1.006, allocations: 123.9 kB / 1.576 GB, free: 2.188 MB / 0.9792 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.008022/1.015, allocations: 3.91 MB / 1.579 GB, free: 14.21 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/1.015, allocations: 8.031 kB / 1.579 GB, free: 14.2 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004687/1.019, allocations: 0.9269 MB / 1.58 GB, free: 13.27 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004731/1.024, allocations: 2.999 MB / 1.583 GB, free: 10.21 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/1.024, allocations: 152 kB / 1.583 GB, free: 10.06 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005404/1.025, allocations: 276.1 kB / 1.584 GB, free: 9.793 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006379/1.031, allocations: 4.685 MB / 1.588 GB, free: 5.102 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008374/1.039, allocations: 6.71 MB / 1.595 GB, free: 13.93 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/1.04, allocations: 23.77 kB / 1.595 GB, free: 13.91 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003691/1.04, allocations: 16 kB / 1.595 GB, free: 13.89 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002115/1.04, allocations: 293 kB / 1.595 GB, free: 13.61 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02444/1.065, allocations: 34.21 MB / 1.629 GB, free: 8.203 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/1.066, allocations: 1.487 MB / 1.63 GB, free: 6.703 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/1.067, allocations: 1.312 MB / 1.631 GB, free: 5.387 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 7.401e-05/1.068, allocations: 21.2 kB / 1.631 GB, free: 5.367 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/1.068, allocations: 47.86 kB / 1.631 GB, free: 5.309 MB / 1.042 GB Notification: Performance of pre-optimization done (n=133): time 2.805e-06/1.068, allocations: 0 / 1.631 GB, free: 5.309 MB / 1.042 GB Notification: Performance of matching and sorting (n=136): time 0.006547/1.074, allocations: 4.579 MB / 1.636 GB, free: 0.6797 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/1.074, allocations: 64.72 kB / 1.636 GB, free: 0.6055 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001159/1.075, allocations: 1.07 MB / 1.637 GB, free: 15.54 MB / 1.057 GB Notification: Performance of collectPreVariables (initialization): time 7.843e-05/1.075, allocations: 25.7 kB / 1.637 GB, free: 15.5 MB / 1.057 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007567/1.076, allocations: 1.749 MB / 1.639 GB, free: 13.73 MB / 1.057 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003067/1.077, allocations: 469.1 kB / 1.639 GB, free: 13.27 MB / 1.057 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.406e-05/1.077, allocations: 0 / 1.639 GB, free: 13.27 MB / 1.057 GB Notification: Performance of setup shared object (initialization): time 0.0001268/1.077, allocations: 381.9 kB / 1.639 GB, free: 12.89 MB / 1.057 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/1.078, allocations: 0.8981 MB / 1.64 GB, free: 11.99 MB / 1.057 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/1.079, allocations: 1.551 MB / 1.642 GB, free: 10.14 MB / 1.057 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001344/1.081, allocations: 1.169 MB / 1.643 GB, free: 8.973 MB / 1.057 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/1.081, allocations: 8 kB / 1.643 GB, free: 8.965 MB / 1.057 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.005055/1.086, allocations: 3.364 MB / 1.646 GB, free: 5.551 MB / 1.057 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/1.086, allocations: 4 kB / 1.646 GB, free: 5.547 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.223e-05/1.086, allocations: 20 kB / 1.646 GB, free: 5.527 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002612/1.088, allocations: 0.955 MB / 1.647 GB, free: 4.535 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/1.089, allocations: 331.4 kB / 1.648 GB, free: 4.211 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01576/1.105, allocations: 19.76 MB / 1.667 GB, free: 15.05 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009672/1.106, allocations: 43.95 kB / 1.667 GB, free: 15.01 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/1.106, allocations: 84 kB / 1.667 GB, free: 14.93 MB / 1.089 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (182): * Single equations (assignments): 170 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(4,68.8%) 4,(4,68.8%) 4,(4,68.8%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002298/1.106, allocations: 168.3 kB / 1.667 GB, free: 14.75 MB / 1.089 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002191/1.107, allocations: 197.7 kB / 1.667 GB, free: 14.56 MB / 1.089 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004601/1.111, allocations: 2.968 MB / 1.67 GB, free: 11.54 MB / 1.089 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/1.111, allocations: 15.98 kB / 1.67 GB, free: 11.52 MB / 1.089 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/1.111, allocations: 19.91 kB / 1.67 GB, free: 11.5 MB / 1.089 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/1.111, allocations: 4.172 kB / 1.67 GB, free: 11.5 MB / 1.089 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008812/1.12, allocations: 6.203 MB / 1.676 GB, free: 5.152 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/1.12, allocations: 7.984 kB / 1.676 GB, free: 5.145 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006279/1.121, allocations: 155.7 kB / 1.676 GB, free: 4.992 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002532/1.123, allocations: 0.9242 MB / 1.677 GB, free: 4.031 MB / 1.089 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.173e-05/1.123, allocations: 8 kB / 1.677 GB, free: 4.023 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01576/1.139, allocations: 19.76 MB / 1.697 GB, free: 14.88 MB / 1.12 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.139, allocations: 4 kB / 1.697 GB, free: 14.88 MB / 1.12 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004451/1.144, allocations: 3.389 MB / 1.7 GB, free: 11.27 MB / 1.12 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000635/1.144, allocations: 450.6 kB / 1.7 GB, free: 10.81 MB / 1.12 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002419/1.145, allocations: 11.98 kB / 1.7 GB, free: 10.8 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006967/1.145, allocations: 35.95 kB / 1.7 GB, free: 10.76 MB / 1.12 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/1.145, allocations: 72.81 kB / 1.701 GB, free: 10.69 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.11e-05/1.146, allocations: 39.94 kB / 1.701 GB, free: 10.65 MB / 1.12 GB Notification: Performance of sort global known variables: time 0.0008048/1.146, allocations: 0.781 MB / 1.701 GB, free: 9.875 MB / 1.12 GB Notification: Performance of remove unused functions: time 0.0019/1.148, allocations: 0.7422 MB / 1.702 GB, free: 9.133 MB / 1.12 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 (85): * Single equations (assignments): 73 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(4,68.8%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(4,68.8%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(4,68.8%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001903/1.148, allocations: 127 kB / 1.702 GB, free: 8.996 MB / 1.12 GB Notification: Performance of simCode: created initialization part: time 0.004665/1.153, allocations: 3.794 MB / 1.706 GB, free: 5.09 MB / 1.12 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/1.153, allocations: 0 / 1.706 GB, free: 5.09 MB / 1.12 GB Notification: Performance of simCode: created simulation system equations: time 0.003384/1.157, allocations: 2.602 MB / 1.708 GB, free: 2.367 MB / 1.12 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002111/1.159, allocations: 0.571 MB / 1.709 GB, free: 1.801 MB / 1.12 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008475/1.167, allocations: 5.659 MB / 1.715 GB, free: 12.02 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00313/1.17, allocations: 3.25 MB / 1.718 GB, free: 8.738 MB / 1.135 GB Notification: Performance of SimCode: time 2.9e-07/1.17, allocations: 4 kB / 1.718 GB, free: 8.734 MB / 1.135 GB Notification: Performance of Templates: time 0.3917/1.562, allocations: 33.36 MB / 1.75 GB, free: 229.8 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches