Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") [: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.655/1.655, allocations: 390.4 MB / 397.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009096/0.0009096, allocations: 188.9 kB / 490.8 MB, free: 11.24 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.03/1.03, allocations: 221.4 MB / 0.7863 GB, free: 13.6 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008162/0.0008162, allocations: 97.78 kB / 0.9264 GB, free: 20.99 MB / 0.6042 GB Notification: Performance of FrontEnd - loaded program: time 5.58e-06/5.6e-06, allocations: 0 / 1.072 GB, free: 52 kB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4232/0.4232, allocations: 143 MB / 1.212 GB, free: 53.61 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1748/0.5981, allocations: 199.5 MB / 1.406 GB, free: 2.453 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.5983, allocations: 91.94 kB / 1.406 GB, free: 2.363 MB / 0.9011 GB Notification: Performance of FrontEnd: time 0.08735/0.6857, allocations: 43.37 MB / 1.449 GB, free: 6.531 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.128e-05/0.6857, allocations: 19.98 kB / 1.449 GB, free: 6.512 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001053/0.6868, allocations: 0.8137 MB / 1.45 GB, free: 5.652 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 2.884e-05/0.6868, allocations: 8.031 kB / 1.45 GB, free: 5.645 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001321/0.6882, allocations: 198.8 kB / 1.45 GB, free: 5.449 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008168/0.689, allocations: 0.4974 MB / 1.45 GB, free: 4.91 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.689, allocations: 19.98 kB / 1.45 GB, free: 4.891 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.6892, allocations: 35.91 kB / 1.45 GB, free: 4.855 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006733/0.6898, allocations: 474.1 kB / 1.451 GB, free: 4.395 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009192/0.6908, allocations: 0.7955 MB / 1.452 GB, free: 3.484 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.276e-05/0.6908, allocations: 4 kB / 1.452 GB, free: 3.48 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.869e-05/0.6909, allocations: 8 kB / 1.452 GB, free: 3.473 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.612e-05/0.6909, allocations: 44.97 kB / 1.452 GB, free: 3.43 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003676/0.6946, allocations: 4.505 MB / 1.456 GB, free: 14.59 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003277/0.6949, allocations: 274.5 kB / 1.456 GB, free: 14.31 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002596/0.6952, allocations: 224.8 kB / 1.457 GB, free: 14.09 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.6952, allocations: 3.984 kB / 1.457 GB, free: 14.09 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.6953, allocations: 38.56 kB / 1.457 GB, free: 14.04 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=33): time 1.423e-06/0.6953, allocations: 4 kB / 1.457 GB, free: 14.04 MB / 0.9636 GB Notification: Performance of matching and sorting (n=40): time 0.003483/0.6988, allocations: 2.015 MB / 1.459 GB, free: 11.93 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.372e-05/0.6988, allocations: 55.41 kB / 1.459 GB, free: 11.86 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003005/0.6991, allocations: 341 kB / 1.459 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.98e-05/0.6991, allocations: 25.7 kB / 1.459 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.6993, allocations: 295.5 kB / 1.459 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 8.428e-05/0.6994, allocations: 130 kB / 1.459 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.353e-05/0.6994, allocations: 0 / 1.459 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.6995, allocations: 362.8 kB / 1.46 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/0.6998, allocations: 225.2 kB / 1.46 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003576/0.7002, allocations: 375.9 kB / 1.46 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003485/0.7005, allocations: 285.4 kB / 1.461 GB, free: 9.777 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.7005, allocations: 0 / 1.461 GB, free: 9.777 MB / 0.9636 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001413/0.702, allocations: 0.8474 MB / 1.461 GB, free: 8.914 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.702, allocations: 4 kB / 1.461 GB, free: 8.91 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.702, allocations: 4 kB / 1.461 GB, free: 8.906 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007432/0.7027, allocations: 222.9 kB / 1.462 GB, free: 8.68 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004812/0.7032, allocations: 107.8 kB / 1.462 GB, free: 8.574 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003951/0.7072, allocations: 4.619 MB / 1.466 GB, free: 3.609 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/0.7076, allocations: 11.98 kB / 1.466 GB, free: 3.598 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.913e-05/0.7076, allocations: 24.12 kB / 1.466 GB, free: 3.574 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.7077, allocations: 120.7 kB / 1.466 GB, free: 3.449 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.859e-05/0.7078, allocations: 51.44 kB / 1.466 GB, free: 3.398 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001301/0.7091, allocations: 0.7384 MB / 1.467 GB, free: 2.645 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.7091, allocations: 4.188 kB / 1.467 GB, free: 2.641 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.7091, allocations: 11.94 kB / 1.467 GB, free: 2.629 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.7092, allocations: 11.83 kB / 1.467 GB, free: 2.617 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.7111, allocations: 1.377 MB / 1.469 GB, free: 1.164 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.7112, allocations: 0 / 1.469 GB, free: 1.164 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003665/0.7115, allocations: 63.95 kB / 1.469 GB, free: 1.102 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006608/0.7122, allocations: 202.6 kB / 1.469 GB, free: 0.8945 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.762e-05/0.7122, allocations: 4 kB / 1.469 GB, free: 0.8906 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2372/0.9495, allocations: 4.533 MB / 1.473 GB, free: 290.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.9495, allocations: 9.734 kB / 1.473 GB, free: 290.4 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001344/0.9508, allocations: 1.202 MB / 1.474 GB, free: 290.1 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001952/0.9511, allocations: 166.1 kB / 1.475 GB, free: 290 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.9511, allocations: 6.344 kB / 1.475 GB, free: 290 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002992/0.9514, allocations: 11.25 kB / 1.475 GB, free: 290 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.294e-05/0.9515, allocations: 18.8 kB / 1.475 GB, free: 290 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/0.9515, allocations: 18.75 kB / 1.475 GB, free: 290 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.0001887/0.9517, allocations: 253.6 kB / 1.475 GB, free: 289.9 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0005107/0.9522, allocations: 155.3 kB / 1.475 GB, free: 289.9 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001208/0.9524, allocations: 112.8 kB / 1.475 GB, free: 289.8 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.001084/0.9535, allocations: 0.9221 MB / 1.476 GB, free: 289.5 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.9535, allocations: 0 / 1.476 GB, free: 289.5 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0006582/0.9541, allocations: 0.6206 MB / 1.477 GB, free: 289.2 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005883/0.9547, allocations: 133 kB / 1.477 GB, free: 289.2 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.9561, allocations: 0.9487 MB / 1.478 GB, free: 288.9 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003871/0.9565, allocations: 0.9892 MB / 1.479 GB, free: 288.2 MB / 0.9636 GB Notification: Performance of SimCode: time 6.81e-07/0.9565, allocations: 0 / 1.479 GB, free: 288.2 MB / 0.9636 GB Notification: Performance of Templates: time 0.01047/0.967, allocations: 8.189 MB / 1.487 GB, free: 288.1 MB / 0.9636 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches