Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") [: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.807/1.807, 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.001015/0.001015, allocations: 177.2 kB / 487 MB, free: 5.359 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.111/1.111, allocations: 221.3 MB / 0.7819 GB, free: 1.383 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.0008759/0.0008759, allocations: 103.8 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.326e-06/8.336e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.1782, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.519/0.6973, allocations: 179.1 MB / 1.38 GB, free: 14.35 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.6975, allocations: 91.47 kB / 1.38 GB, free: 14.3 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/AC/OnePhase/Conversion/ACDCConverter.mo:42:5-42:39:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.root(terminal_p.theta);. Notification: Performance of FrontEnd: time 0.04229/0.7398, allocations: 19.77 MB / 1.4 GB, free: 13.8 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.339e-05/0.7399, allocations: 4 kB / 1.4 GB, free: 13.79 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005981/0.7405, allocations: 0.5244 MB / 1.4 GB, free: 13.24 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.7405, allocations: 16.02 kB / 1.4 GB, free: 13.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000824/0.7413, allocations: 107.5 kB / 1.4 GB, free: 13.12 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003109/0.7417, allocations: 266.9 kB / 1.4 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.7417, allocations: 4 kB / 1.4 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.227e-05/0.7417, allocations: 12 kB / 1.4 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003439/0.7421, allocations: 240 kB / 1.401 GB, free: 12.67 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003894/0.7425, allocations: 314.5 kB / 1.401 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.7425, allocations: 8 kB / 1.401 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.625e-05/0.7425, allocations: 3.984 kB / 1.401 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.392e-05/0.7426, allocations: 24.23 kB / 1.401 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001765/0.7443, allocations: 1.684 MB / 1.403 GB, free: 10.73 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.7446, allocations: 212.7 kB / 1.403 GB, free: 10.56 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.7447, allocations: 98.3 kB / 1.403 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.807e-05/0.7448, allocations: 88.42 kB / 1.403 GB, free: 10.39 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.7448, allocations: 38.48 kB / 1.403 GB, free: 10.34 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.7448, allocations: 3.938 kB / 1.403 GB, free: 10.34 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.00151/0.7464, allocations: 0.7007 MB / 1.404 GB, free: 9.766 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.83e-05/0.7464, allocations: 77.3 kB / 1.404 GB, free: 9.672 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.7465, allocations: 170.7 kB / 1.404 GB, free: 9.52 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.7466, allocations: 29.7 kB / 1.404 GB, free: 9.484 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.336e-05/0.7466, allocations: 163 kB / 1.404 GB, free: 9.332 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.807e-05/0.7467, allocations: 82.22 kB / 1.404 GB, free: 9.262 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.361e-05/0.7467, allocations: 0 / 1.404 GB, free: 9.262 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.403e-05/0.7468, allocations: 327 kB / 1.405 GB, free: 8.941 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001511/0.747, allocations: 129.4 kB / 1.405 GB, free: 8.863 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.7472, allocations: 211.6 kB / 1.405 GB, free: 8.676 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003511/0.7475, allocations: 191.2 kB / 1.405 GB, free: 8.543 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.7475, allocations: 3.906 kB / 1.405 GB, free: 8.539 MB / 0.8386 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008986/0.7484, allocations: 0.524 MB / 1.406 GB, free: 8.117 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.7484, allocations: 11.98 kB / 1.406 GB, free: 8.105 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.7485, allocations: 0 / 1.406 GB, free: 8.105 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003613/0.7488, allocations: 143 kB / 1.406 GB, free: 7.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.7491, allocations: 55.91 kB / 1.406 GB, free: 7.926 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002249/0.7513, allocations: 3.833 MB / 1.41 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.7515, allocations: 11.91 kB / 1.41 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.7515, allocations: 15.91 kB / 1.41 GB, free: 3.984 MB / 0.8386 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.idealACDCConverter1.P_n[1]:DUMMY_DER(fixed = false ) "Power transmitted at pin n (primary)" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 28 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001206/0.7517, allocations: 114.1 kB / 1.41 GB, free: 3.867 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.397e-05/0.7517, allocations: 19.81 kB / 1.41 GB, free: 3.848 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008681/0.7526, allocations: 499.3 kB / 1.41 GB, free: 3.461 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.7526, allocations: 8 kB / 1.41 GB, free: 3.453 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.7526, allocations: 0 / 1.41 GB, free: 3.453 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.7527, allocations: 0 / 1.41 GB, free: 3.453 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/0.754, allocations: 0.9784 MB / 1.411 GB, free: 2.582 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.7541, allocations: 4 kB / 1.411 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.7542, allocations: 27.98 kB / 1.411 GB, free: 2.551 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003183/0.7545, allocations: 143.8 kB / 1.411 GB, free: 2.426 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.7545, allocations: 4 kB / 1.411 GB, free: 2.422 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002202/0.7568, allocations: 3.823 MB / 1.415 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.7568, allocations: 15.94 kB / 1.415 GB, free: 14.49 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007983/0.7576, allocations: 0.7278 MB / 1.416 GB, free: 13.76 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.7577, allocations: 126.6 kB / 1.416 GB, free: 13.63 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.556e-05/0.7577, allocations: 4 kB / 1.416 GB, free: 13.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.758, allocations: 15.98 kB / 1.416 GB, free: 13.61 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.691e-05/0.758, allocations: 19.86 kB / 1.416 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.758, allocations: 15.78 kB / 1.416 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0001002/0.7581, allocations: 140.7 kB / 1.416 GB, free: 13.46 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004647/0.7586, allocations: 87.94 kB / 1.416 GB, free: 13.38 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002082/0.7588, allocations: 150.8 kB / 1.416 GB, free: 13.22 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006809/0.7595, allocations: 0.5157 MB / 1.417 GB, free: 12.78 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7595, allocations: 0 / 1.417 GB, free: 12.78 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0004347/0.76, allocations: 371.2 kB / 1.417 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003105/0.7603, allocations: 35.91 kB / 1.417 GB, free: 12.41 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007588/0.7611, allocations: 473.4 kB / 1.418 GB, free: 11.97 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003424/0.7614, allocations: 0.7998 MB / 1.418 GB, free: 11.15 MB / 0.8542 GB Notification: Performance of SimCode: time 2.51e-07/0.7614, allocations: 4 kB / 1.418 GB, free: 11.15 MB / 0.8542 GB Notification: Performance of Templates: time 0.006864/0.7683, allocations: 4.116 MB / 1.422 GB, free: 7.07 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches