Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.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.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator") [: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.181/1.181, allocations: 249.4 MB / 256.7 MB, free: 7.035 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.0009162/0.0009162, allocations: 181.2 kB / 316 MB, free: 3.551 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.061/1.061, allocations: 205.2 MB / 0.5667 GB, free: 15.61 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.0007956/0.0007956, allocations: 94.14 kB / 0.671 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.963e-06/6.973e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1603, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4526/0.613, allocations: 135.9 MB / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/0.6133, allocations: 78.83 kB / 1.017 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.014/0.6273, allocations: 5.001 MB / 1.022 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.342e-05/0.6274, allocations: 4 kB / 1.022 GB, free: 14.71 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004938/0.6279, allocations: 469.3 kB / 1.023 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.6279, allocations: 8.031 kB / 1.023 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.73e-05/0.628, allocations: 15.81 kB / 1.023 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003632/0.6284, allocations: 263.9 kB / 1.023 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.6284, allocations: 0 / 1.023 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.6284, allocations: 4 kB / 1.023 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.627e-05/0.6285, allocations: 36.48 kB / 1.023 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/0.6287, allocations: 90.44 kB / 1.023 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.6287, allocations: 0 / 1.023 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.6287, allocations: 3.906 kB / 1.023 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.6287, allocations: 4 kB / 1.023 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004506/0.6292, allocations: 350.2 kB / 1.023 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.6293, allocations: 78.42 kB / 1.024 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.789e-05/0.6294, allocations: 35.45 kB / 1.024 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.6294, allocations: 3.984 kB / 1.024 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.755e-05/0.6295, allocations: 73.3 kB / 1.024 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.6295, allocations: 0 / 1.024 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of matching and sorting (n=8): time 0.0002487/0.6298, allocations: 106.5 kB / 1.024 GB, free: 13.17 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.6298, allocations: 102.8 kB / 1.024 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.63, allocations: 234.8 kB / 1.024 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.6301, allocations: 25.7 kB / 1.024 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.399e-05/0.6301, allocations: 98.75 kB / 1.024 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.6301, allocations: 15.38 kB / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-06/0.6301, allocations: 0 / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.6303, allocations: 341.9 kB / 1.025 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.772e-05/0.6303, allocations: 26.94 kB / 1.025 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.132e-05/0.6304, allocations: 70.09 kB / 1.025 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.47e-05/0.6305, allocations: 37.09 kB / 1.025 GB, free: 12.26 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.6305, allocations: 0 / 1.025 GB, free: 12.26 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001762/0.6307, allocations: 110.9 kB / 1.025 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.6307, allocations: 8 kB / 1.025 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.6307, allocations: 4.031 kB / 1.025 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.6307, allocations: 0 / 1.025 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.697e-05/0.6308, allocations: 15.98 kB / 1.025 GB, free: 12.13 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.6308, allocations: 0 / 1.025 GB, free: 12.13 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.764e-05/0.6309, allocations: 7.906 kB / 1.025 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.6309, allocations: 4 kB / 1.025 GB, free: 12.12 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.349e-05/0.631, allocations: 108.2 kB / 1.025 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.531e-05/0.631, allocations: 15.81 kB / 1.025 GB, free: 12 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002095/0.6313, allocations: 120.7 kB / 1.025 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.6313, allocations: 7.938 kB / 1.025 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.6313, allocations: 0 / 1.025 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.6313, allocations: 0 / 1.025 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.6315, allocations: 215.7 kB / 1.025 GB, free: 11.67 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.6315, allocations: 0 / 1.025 GB, free: 11.67 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.709e-05/0.6315, allocations: 8 kB / 1.025 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.6315, allocations: 3.984 kB / 1.025 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.6315, allocations: 0 / 1.025 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.6316, allocations: 0 / 1.025 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.6316, allocations: 7.938 kB / 1.025 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001831/0.6318, allocations: 140 kB / 1.025 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.055e-05/0.6318, allocations: 96.73 kB / 1.025 GB, free: 11.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.6319, allocations: 4 kB / 1.026 GB, free: 11.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.415e-05/0.6319, allocations: 3.984 kB / 1.026 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.976e-05/0.632, allocations: 7.984 kB / 1.026 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.632, allocations: 4 kB / 1.026 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001544/0.6322, allocations: 195.3 kB / 1.026 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002417/0.6324, allocations: 47.16 kB / 1.026 GB, free: 11.18 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006531/0.6331, allocations: 340.4 kB / 1.026 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001882/0.6333, allocations: 76.47 kB / 1.026 GB, free: 10.87 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.6333, allocations: 0 / 1.026 GB, free: 10.87 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.183e-05/0.6334, allocations: 41.73 kB / 1.026 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002407/0.6336, allocations: 34.83 kB / 1.026 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004222/0.634, allocations: 210.9 kB / 1.026 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00028/0.6343, allocations: 0.7494 MB / 1.027 GB, free: 9.836 MB / 0.6511 GB Notification: Performance of SimCode: time 2.7e-07/0.6343, allocations: 0 / 1.027 GB, free: 9.836 MB / 0.6511 GB Notification: Performance of Templates: time 0.004965/0.6393, allocations: 2.359 MB / 1.029 GB, free: 7.5 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches