Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.OnePhase.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_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.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_maint.7.0.x_Buildings.Electrical.AC.OnePhase.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 7.0.3-maint.7.0.x/package.mo): time 1.457/1.457, allocations: 249.4 MB / 256.7 MB, free: 7.07 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.001085/0.001085, allocations: 188.6 kB / 316 MB, free: 3.559 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.15/1.15, allocations: 205.2 MB / 0.5667 GB, free: 15.68 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.0008871/0.0008871, allocations: 80.78 kB / 0.671 GB, free: 4.816 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.003e-06/7.033e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.164/0.164, allocations: 106.3 MB / 0.8846 GB, free: 12.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6055/0.7695, allocations: 175.3 MB / 1.056 GB, free: 14.06 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.7699, allocations: 92.75 kB / 1.056 GB, free: 14.01 MB / 0.6823 GB Notification: Performance of FrontEnd: time 0.07315/0.843, allocations: 30.78 MB / 1.086 GB, free: 4.355 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.25e-05/0.8431, allocations: 19.98 kB / 1.086 GB, free: 4.336 MB / 0.698 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.001376/0.8445, allocations: 0.8062 MB / 1.087 GB, free: 3.527 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.8446, allocations: 8.031 kB / 1.087 GB, free: 3.52 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001474/0.846, allocations: 205.8 kB / 1.087 GB, free: 3.32 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.8471, allocations: 485.1 kB / 1.087 GB, free: 2.852 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.523e-05/0.8471, allocations: 16 kB / 1.087 GB, free: 2.836 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001574/0.8473, allocations: 42.83 kB / 1.087 GB, free: 2.797 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007522/0.8481, allocations: 478.5 kB / 1.088 GB, free: 2.484 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.8491, allocations: 0.8049 MB / 1.089 GB, free: 1.738 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.57e-05/0.8491, allocations: 0 / 1.089 GB, free: 1.738 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-05/0.8492, allocations: 4 kB / 1.089 GB, free: 1.734 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.96e-05/0.8493, allocations: 48.16 kB / 1.089 GB, free: 1.691 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004264/0.8535, allocations: 4.499 MB / 1.093 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003598/0.8539, allocations: 277.7 kB / 1.093 GB, free: 13.06 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002968/0.8542, allocations: 214.4 kB / 1.094 GB, free: 12.92 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.264e-05/0.8542, allocations: 7.984 kB / 1.094 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.8543, allocations: 34.38 kB / 1.094 GB, free: 12.88 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=33): time 2.134e-06/0.8543, allocations: 0 / 1.094 GB, free: 12.88 MB / 0.7136 GB Notification: Performance of matching and sorting (n=40): time 0.004136/0.8584, allocations: 2.023 MB / 1.096 GB, free: 11.17 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.8585, allocations: 59.39 kB / 1.096 GB, free: 11.1 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/0.8589, allocations: 331.2 kB / 1.096 GB, free: 10.84 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.8589, allocations: 25.7 kB / 1.096 GB, free: 10.81 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.8591, allocations: 291.2 kB / 1.096 GB, free: 10.55 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.8592, allocations: 136.6 kB / 1.096 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.471e-05/0.8592, allocations: 0 / 1.096 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001803/0.8594, allocations: 361.4 kB / 1.097 GB, free: 10.09 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003135/0.8597, allocations: 229 kB / 1.097 GB, free: 9.941 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000404/0.8601, allocations: 367.6 kB / 1.097 GB, free: 9.609 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.8605, allocations: 283.5 kB / 1.098 GB, free: 9.422 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.8605, allocations: 0 / 1.098 GB, free: 9.422 MB / 0.7136 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001496/0.862, allocations: 0.8502 MB / 1.098 GB, free: 8.754 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.8621, allocations: 8 kB / 1.098 GB, free: 8.746 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.8621, allocations: 4 kB / 1.098 GB, free: 8.742 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008297/0.8629, allocations: 224.4 kB / 1.099 GB, free: 8.551 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005296/0.8635, allocations: 99.08 kB / 1.099 GB, free: 8.457 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004783/0.8682, allocations: 4.625 MB / 1.103 GB, free: 3.852 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004836/0.8688, allocations: 11.98 kB / 1.103 GB, free: 3.84 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-05/0.8688, allocations: 27.23 kB / 1.103 GB, free: 3.816 MB / 0.7136 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.0001594/0.869, allocations: 120.9 kB / 1.103 GB, free: 3.691 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.001e-05/0.8691, allocations: 51.34 kB / 1.103 GB, free: 3.641 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001507/0.8706, allocations: 0.7428 MB / 1.104 GB, free: 3.086 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.8706, allocations: 4 kB / 1.104 GB, free: 3.082 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.8706, allocations: 4.188 kB / 1.104 GB, free: 3.078 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.8706, allocations: 0 / 1.104 GB, free: 3.078 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002248/0.8729, allocations: 1.39 MB / 1.106 GB, free: 1.914 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.8729, allocations: 8.031 kB / 1.106 GB, free: 1.906 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000396/0.8733, allocations: 63.89 kB / 1.106 GB, free: 1.844 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007044/0.874, allocations: 200.2 kB / 1.106 GB, free: 1.676 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.138e-05/0.8741, allocations: 4 kB / 1.106 GB, free: 1.672 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004147/0.8782, allocations: 4.54 MB / 1.11 GB, free: 13.14 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.8782, allocations: 4 kB / 1.11 GB, free: 13.13 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001801/0.8801, allocations: 1.192 MB / 1.111 GB, free: 12.14 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002357/0.8803, allocations: 167.8 kB / 1.112 GB, free: 11.97 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.945e-05/0.8804, allocations: 4 kB / 1.112 GB, free: 11.96 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003254/0.8807, allocations: 11.98 kB / 1.112 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.834e-05/0.8808, allocations: 31.75 kB / 1.112 GB, free: 11.93 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.8808, allocations: 15.75 kB / 1.112 GB, free: 11.91 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0002638/0.8811, allocations: 248.6 kB / 1.112 GB, free: 11.73 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0007312/0.8818, allocations: 152 kB / 1.112 GB, free: 11.58 MB / 0.7292 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.0002452/0.8821, allocations: 107.1 kB / 1.112 GB, free: 11.46 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001452/0.8836, allocations: 0.9099 MB / 1.113 GB, free: 10.71 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.8836, allocations: 3.938 kB / 1.113 GB, free: 10.7 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0008636/0.8845, allocations: 0.6254 MB / 1.114 GB, free: 10.13 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007492/0.8852, allocations: 138.9 kB / 1.114 GB, free: 10.02 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.8871, allocations: 0.9527 MB / 1.115 GB, free: 9.117 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007203/0.8879, allocations: 0.9817 MB / 1.116 GB, free: 8.125 MB / 0.7292 GB Notification: Performance of SimCode: time 1.392e-06/0.8879, allocations: 0 / 1.116 GB, free: 8.125 MB / 0.7292 GB Notification: Performance of Templates: time 0.01508/0.903, allocations: 8.16 MB / 1.124 GB, free: 72 kB / 0.7292 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches