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.ACLineMatrix_RL_N.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.ACLineMatrix_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") [: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.333/1.333, 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.001146/0.001146, allocations: 189.2 kB / 316 MB, free: 3.512 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.344/1.344, allocations: 205.2 MB / 0.5667 GB, free: 15.57 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.0008998/0.0008998, allocations: 82.44 kB / 0.671 GB, free: 4.715 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.644e-06/7.674e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.1801, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5594/0.7395, allocations: 160.4 MB / 1.041 GB, free: 11.7 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.7398, allocations: 91.56 kB / 1.041 GB, free: 11.65 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.3625/1.102, allocations: 137.9 MB / 1.176 GB, free: 11.56 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 0.0002396/1.103, allocations: 95.98 kB / 1.176 GB, free: 11.47 MB / 0.7917 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.01005/1.113, allocations: 3.365 MB / 1.179 GB, free: 8.043 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/1.113, allocations: 8.031 kB / 1.179 GB, free: 8.035 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007853/1.121, allocations: 1.052 MB / 1.18 GB, free: 6.977 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006246/1.127, allocations: 2.622 MB / 1.183 GB, free: 4.301 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/1.127, allocations: 119.9 kB / 1.183 GB, free: 4.184 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001075/1.128, allocations: 208 kB / 1.183 GB, free: 3.98 MB / 0.7917 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009127/1.137, allocations: 4.592 MB / 1.188 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01465/1.152, allocations: 6.249 MB / 1.194 GB, free: 8.781 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001035/1.152, allocations: 19.78 kB / 1.194 GB, free: 8.762 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004531/1.153, allocations: 16 kB / 1.194 GB, free: 8.746 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007002/1.153, allocations: 403.2 kB / 1.194 GB, free: 8.352 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04014/1.193, allocations: 31.63 MB / 1.225 GB, free: 5.965 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002726/1.196, allocations: 2.107 MB / 1.227 GB, free: 3.848 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002847/1.199, allocations: 2.24 MB / 1.229 GB, free: 1.602 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 8.152e-05/1.199, allocations: 29.28 kB / 1.229 GB, free: 1.574 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/1.199, allocations: 43.88 kB / 1.229 GB, free: 1.52 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=146): time 4.097e-06/1.199, allocations: 3.938 kB / 1.229 GB, free: 1.516 MB / 0.8386 GB Notification: Performance of matching and sorting (n=251): time 0.06015/1.259, allocations: 21.6 MB / 1.251 GB, free: 11.87 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.228e-05/1.259, allocations: 77.41 kB / 1.251 GB, free: 11.78 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002036/1.262, allocations: 1.264 MB / 1.252 GB, free: 10.52 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0006052/1.262, allocations: 25.7 kB / 1.252 GB, free: 10.48 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009137/1.263, allocations: 1.462 MB / 1.253 GB, free: 9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009627/1.264, allocations: 0.8197 MB / 1.254 GB, free: 8.168 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002515/1.264, allocations: 0 / 1.254 GB, free: 8.168 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001869/1.265, allocations: 407.1 kB / 1.255 GB, free: 7.766 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003898/1.268, allocations: 2.867 MB / 1.257 GB, free: 4.895 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004203/1.273, allocations: 3.397 MB / 1.261 GB, free: 1.285 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3245/1.597, allocations: 3.607 MB / 1.264 GB, free: 199.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.529e-05/1.597, allocations: 4.344 kB / 1.264 GB, free: 199.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=322) (initialization): time 0.02263/1.62, allocations: 12.42 MB / 1.276 GB, free: 199.7 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/1.62, allocations: 11.16 kB / 1.276 GB, free: 199.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.43e-05/1.62, allocations: 22.84 kB / 1.276 GB, free: 199.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02304/1.643, allocations: 7.958 MB / 1.284 GB, free: 199.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/1.644, allocations: 276.5 kB / 1.284 GB, free: 199.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04391/1.688, allocations: 30.89 MB / 1.315 GB, free: 194.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002669/1.691, allocations: 86.31 kB / 1.315 GB, free: 194.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000588/1.691, allocations: 270.5 kB / 1.315 GB, free: 194.4 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 142 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(19,68.1%) 19,(12,50.0%) 18,(12,53.5%) 10} * Non-linear torn systems: 3 {20 18,12 18,12 10} Notification: Performance of prepare postOptimizeDAE: time 0.0006007/1.692, allocations: 154.8 kB / 1.315 GB, free: 194.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005273/1.693, allocations: 234.3 kB / 1.315 GB, free: 194.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02283/1.715, allocations: 12.65 MB / 1.328 GB, free: 194 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.943e-05/1.715, allocations: 25.12 kB / 1.328 GB, free: 194 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.541e-05/1.716, allocations: 26.25 kB / 1.328 GB, free: 194 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.161e-05/1.716, allocations: 12.84 kB / 1.328 GB, free: 194 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.033/1.749, allocations: 18.1 MB / 1.345 GB, free: 193.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-05/1.749, allocations: 9.125 kB / 1.345 GB, free: 193.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/1.75, allocations: 156.6 kB / 1.345 GB, free: 193.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02583/1.776, allocations: 7.886 MB / 1.353 GB, free: 193.1 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005835/1.776, allocations: 83.03 kB / 1.353 GB, free: 193.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0504/1.827, allocations: 30.45 MB / 1.383 GB, free: 181.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.666e-05/1.827, allocations: 14.12 kB / 1.383 GB, free: 181.3 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02415/1.851, allocations: 12.68 MB / 1.395 GB, free: 172.7 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002259/1.853, allocations: 0.9949 MB / 1.396 GB, free: 171.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007736/1.854, allocations: 10.34 kB / 1.396 GB, free: 171.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001817/1.856, allocations: 87.8 kB / 1.396 GB, free: 171.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004801/1.856, allocations: 198.1 kB / 1.397 GB, free: 171.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000397/1.857, allocations: 242.7 kB / 1.397 GB, free: 171.5 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001216/1.858, allocations: 0.9521 MB / 1.398 GB, free: 170.6 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003868/1.862, allocations: 1.098 MB / 1.399 GB, free: 169.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 74 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(12,53.5%) 10,(12,50.0%) 18,(19,54.8%) 19} * Non-linear torn systems: 3 {12 10,12 18,20 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005066/1.862, allocations: 148.6 kB / 1.399 GB, free: 169.4 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01639/1.879, allocations: 9.384 MB / 1.408 GB, free: 161.2 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/1.879, allocations: 0 / 1.408 GB, free: 161.2 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.01333/1.892, allocations: 5.975 MB / 1.414 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003056/1.895, allocations: 412.5 kB / 1.414 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01677/1.912, allocations: 7.465 MB / 1.422 GB, free: 149.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003458/1.915, allocations: 3.211 MB / 1.425 GB, free: 146.5 MB / 0.8698 GB Notification: Performance of SimCode: time 1.122e-06/1.915, allocations: 0 / 1.425 GB, free: 146.5 MB / 0.8698 GB Notification: Performance of Templates: time 0.08441/2, allocations: 65.59 MB / 1.489 GB, free: 86.98 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches