Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.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 9.1.1-maint.9.1.x/package.mo): time 1.779/1.779, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.0009731/0.0009731, allocations: 177.3 kB / 487 MB, free: 5.395 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.127/1.127, allocations: 221.3 MB / 0.7819 GB, free: 1.352 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007785/0.0007787, allocations: 88.69 kB / 0.9213 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.3e-06/5.32e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.1831, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5289/0.7121, allocations: 170.9 MB / 1.372 GB, free: 5.316 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.7124, allocations: 92.25 kB / 1.372 GB, free: 5.266 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.08385/0.7962, allocations: 39.5 MB / 1.411 GB, free: 3.844 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.067e-05/0.7963, allocations: 31.92 kB / 1.411 GB, free: 3.812 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001372/0.7977, allocations: 0.951 MB / 1.412 GB, free: 2.871 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.786e-05/0.7977, allocations: 8.031 kB / 1.412 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001468/0.7992, allocations: 246.6 kB / 1.412 GB, free: 2.621 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007633/0.7999, allocations: 0.5338 MB / 1.412 GB, free: 2.109 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.8, allocations: 23.91 kB / 1.412 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.407e-05/0.8001, allocations: 40 kB / 1.413 GB, free: 2.047 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008589/0.8009, allocations: 0.6273 MB / 1.413 GB, free: 1.629 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.8021, allocations: 1.044 MB / 1.414 GB, free: 0.6602 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.8021, allocations: 3.938 kB / 1.414 GB, free: 0.6562 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.04e-05/0.8022, allocations: 8 kB / 1.414 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.298e-05/0.8023, allocations: 53.03 kB / 1.414 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004436/0.8067, allocations: 5.79 MB / 1.42 GB, free: 10.94 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000799/0.8075, allocations: 0.5193 MB / 1.42 GB, free: 10.57 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003622/0.8079, allocations: 327.4 kB / 1.421 GB, free: 10.36 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/0.8079, allocations: 8.422 kB / 1.421 GB, free: 10.35 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.8079, allocations: 42.22 kB / 1.421 GB, free: 10.3 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=47): time 1.744e-06/0.808, allocations: 4 kB / 1.421 GB, free: 10.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=48): time 0.001841/0.8098, allocations: 1.183 MB / 1.422 GB, free: 9.367 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.478e-05/0.8098, allocations: 55.84 kB / 1.422 GB, free: 9.301 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003629/0.8102, allocations: 396.9 kB / 1.422 GB, free: 8.988 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.8102, allocations: 25.7 kB / 1.422 GB, free: 8.957 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.8104, allocations: 350.5 kB / 1.423 GB, free: 8.648 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.8105, allocations: 159.7 kB / 1.423 GB, free: 8.508 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-05/0.8106, allocations: 0 / 1.423 GB, free: 8.508 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.8107, allocations: 369.3 kB / 1.423 GB, free: 8.164 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003235/0.811, allocations: 268.4 kB / 1.423 GB, free: 7.992 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004166/0.8114, allocations: 441 kB / 1.424 GB, free: 7.586 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004054/0.8119, allocations: 340.9 kB / 1.424 GB, free: 7.359 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.8119, allocations: 0 / 1.424 GB, free: 7.359 MB / 0.8542 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001464/0.8133, allocations: 0.9755 MB / 1.425 GB, free: 6.594 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.8133, allocations: 7.906 kB / 1.425 GB, free: 6.586 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.8134, allocations: 8 kB / 1.425 GB, free: 6.578 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007613/0.8141, allocations: 267.2 kB / 1.425 GB, free: 6.352 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.8146, allocations: 113.3 kB / 1.426 GB, free: 6.246 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005183/0.8198, allocations: 6.208 MB / 1.432 GB, free: 96 kB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004679/0.8203, allocations: 15.98 kB / 1.432 GB, free: 80 kB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-05/0.8203, allocations: 26.38 kB / 1.432 GB, free: 60 kB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001568/0.8205, allocations: 129.9 kB / 1.432 GB, free: 15.93 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.842e-05/0.8206, allocations: 63.44 kB / 1.432 GB, free: 15.86 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.822, allocations: 0.8468 MB / 1.433 GB, free: 15.24 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.822, allocations: 4 kB / 1.433 GB, free: 15.23 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.822, allocations: 8 kB / 1.433 GB, free: 15.23 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.822, allocations: 4 kB / 1.433 GB, free: 15.22 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.8242, allocations: 1.598 MB / 1.434 GB, free: 13.93 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.8242, allocations: 4 kB / 1.434 GB, free: 13.92 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002491/0.8245, allocations: 55.14 kB / 1.434 GB, free: 13.87 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006961/0.8252, allocations: 266.2 kB / 1.435 GB, free: 13.65 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.8252, allocations: 7.906 kB / 1.435 GB, free: 13.64 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004877/0.8301, allocations: 6.186 MB / 1.441 GB, free: 7.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.8301, allocations: 0 / 1.441 GB, free: 7.5 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001314/0.8314, allocations: 1.018 MB / 1.442 GB, free: 6.602 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002261/0.8317, allocations: 185.2 kB / 1.442 GB, free: 6.422 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.504e-05/0.8318, allocations: 4 kB / 1.442 GB, free: 6.418 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003314/0.8321, allocations: 15.97 kB / 1.442 GB, free: 6.402 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.039e-05/0.8322, allocations: 32 kB / 1.442 GB, free: 6.375 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.702e-05/0.8322, allocations: 19.94 kB / 1.442 GB, free: 6.359 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0002643/0.8325, allocations: 299.9 kB / 1.442 GB, free: 6.137 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0006716/0.8332, allocations: 192 kB / 1.442 GB, free: 5.949 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(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.0001409/0.8333, allocations: 111.1 kB / 1.442 GB, free: 5.828 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00151/0.8348, allocations: 1.147 MB / 1.444 GB, free: 4.855 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.8348, allocations: 0 / 1.444 GB, free: 4.855 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.8359, allocations: 0.8143 MB / 1.444 GB, free: 4.109 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006998/0.8366, allocations: 155.5 kB / 1.444 GB, free: 3.988 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.8382, allocations: 0.9847 MB / 1.445 GB, free: 3.07 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006174/0.8388, allocations: 1.054 MB / 1.446 GB, free: 2.012 MB / 0.8698 GB Notification: Performance of SimCode: time 2.61e-07/0.8389, allocations: 0 / 1.446 GB, free: 2.012 MB / 0.8698 GB Notification: Performance of Templates: time 0.01512/0.854, allocations: 10.07 MB / 1.456 GB, free: 8.051 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches