Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") [: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 7.0.3-maint.7.0.x/package.mo): time 1.469/1.469, allocations: 249.4 MB / 256.7 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 185.2 kB / 316 MB, free: 3.57 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.329/1.329, allocations: 205.1 MB / 0.5667 GB, free: 15.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009452/0.0009453, allocations: 86.27 kB / 0.671 GB, free: 4.773 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.01e-05/1.013e-05, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.2007, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6345/0.8353, allocations: 164.8 MB / 1.046 GB, free: 7.789 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.8356, allocations: 98.95 kB / 1.046 GB, free: 7.734 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.4134/1.249, allocations: 180.4 MB / 1.222 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.000333/1.249, allocations: 128 kB / 1.222 GB, free: 11.68 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01391/1.263, allocations: 4.23 MB / 1.226 GB, free: 7.387 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/1.263, allocations: 8.031 kB / 1.226 GB, free: 7.379 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007583/1.271, allocations: 1.001 MB / 1.227 GB, free: 6.371 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00901/1.28, allocations: 3.245 MB / 1.23 GB, free: 3.07 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002675/1.28, allocations: 156 kB / 1.23 GB, free: 2.918 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002049/1.282, allocations: 283.8 kB / 1.231 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01285/1.295, allocations: 4.877 MB / 1.235 GB, free: 13.76 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02051/1.316, allocations: 6.86 MB / 1.242 GB, free: 6.434 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002433/1.316, allocations: 19.81 kB / 1.242 GB, free: 6.414 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001807/1.318, allocations: 16 kB / 1.242 GB, free: 6.398 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003331/1.318, allocations: 273.2 kB / 1.242 GB, free: 6.129 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3454/1.664, allocations: 35.33 MB / 1.277 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002481/1.666, allocations: 2.02 MB / 1.279 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/1.668, allocations: 1.436 MB / 1.28 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 8.054e-05/1.668, allocations: 19.22 kB / 1.28 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/1.668, allocations: 62.22 kB / 1.28 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=157): time 3.667e-06/1.668, allocations: 0 / 1.28 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=160): time 0.007063/1.675, allocations: 4.879 MB / 1.285 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.747e-05/1.675, allocations: 68.03 kB / 1.285 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/1.676, allocations: 1.243 MB / 1.286 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 9.289e-05/1.676, allocations: 29.55 kB / 1.286 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006617/1.677, allocations: 1.807 MB / 1.288 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003057/1.677, allocations: 0.5305 MB / 1.289 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.391e-05/1.677, allocations: 0 / 1.289 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001071/1.677, allocations: 386 kB / 1.289 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/1.679, allocations: 0.9933 MB / 1.29 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/1.68, allocations: 1.69 MB / 1.292 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/1.681, allocations: 1.291 MB / 1.293 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/1.681, allocations: 11.78 kB / 1.293 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.004704/1.686, allocations: 3.578 MB / 1.296 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/1.686, allocations: 6.281 kB / 1.296 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.29e-05/1.686, allocations: 30.08 kB / 1.296 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002063/1.688, allocations: 0.9065 MB / 1.297 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/1.689, allocations: 398.8 kB / 1.298 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01352/1.703, allocations: 19.67 MB / 1.317 GB, free: 263 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002072/1.705, allocations: 57.17 kB / 1.317 GB, free: 263 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001711/1.705, allocations: 94.09 kB / 1.317 GB, free: 263 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 203 * 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%) 6,(2,100.0%) 6,(2,100.0%) 6,(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.0003707/1.706, allocations: 174.7 kB / 1.317 GB, free: 262.9 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002874/1.706, allocations: 237.9 kB / 1.317 GB, free: 262.8 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00457/1.71, allocations: 3.149 MB / 1.321 GB, free: 262.5 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/1.711, allocations: 19.59 kB / 1.321 GB, free: 262.5 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/1.711, allocations: 11.41 kB / 1.321 GB, free: 262.5 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/1.711, allocations: 7.312 kB / 1.321 GB, free: 262.5 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/1.721, allocations: 6.716 MB / 1.327 GB, free: 261.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/1.721, allocations: 3.688 kB / 1.327 GB, free: 261.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008733/1.722, allocations: 200.4 kB / 1.327 GB, free: 261.9 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002005/1.724, allocations: 0.8829 MB / 1.328 GB, free: 261.8 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.684e-05/1.724, allocations: 7.594 kB / 1.328 GB, free: 261.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01368/1.738, allocations: 19.66 MB / 1.347 GB, free: 247.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/1.738, allocations: 3.688 kB / 1.347 GB, free: 247.5 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004948/1.743, allocations: 3.597 MB / 1.351 GB, free: 246.4 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/1.744, allocations: 0.5059 MB / 1.351 GB, free: 246.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003435/1.744, allocations: 14.62 kB / 1.351 GB, free: 246.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/1.745, allocations: 38.84 kB / 1.351 GB, free: 246.2 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/1.745, allocations: 83.73 kB / 1.352 GB, free: 246.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/1.746, allocations: 49.75 kB / 1.352 GB, free: 246.2 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.001148/1.747, allocations: 0.914 MB / 1.353 GB, free: 246.1 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.002809/1.75, allocations: 0.8223 MB / 1.353 GB, free: 246.1 MB / 0.8542 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 (109): * Single equations (assignments): 97 * 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%) 4,(2,100.0%) 6,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002736/1.75, allocations: 135.1 kB / 1.353 GB, free: 246 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.004867/1.755, allocations: 4.011 MB / 1.357 GB, free: 244.8 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/1.755, allocations: 3.969 kB / 1.357 GB, free: 244.8 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.003231/1.758, allocations: 2.719 MB / 1.36 GB, free: 243.5 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/1.761, allocations: 0.6235 MB / 1.361 GB, free: 243.5 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01161/1.772, allocations: 6.011 MB / 1.366 GB, free: 241.8 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003535/1.776, allocations: 3.376 MB / 1.37 GB, free: 240.6 MB / 0.8542 GB Notification: Performance of SimCode: time 1.613e-06/1.776, allocations: 0 / 1.37 GB, free: 240.6 MB / 0.8542 GB Notification: Performance of Templates: time 0.06253/1.839, allocations: 37.77 MB / 1.407 GB, free: 235.9 MB / 0.8542 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches