Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) [: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 8.1.4-maint.8.1.x/package.mo): time 1.584/1.584, allocations: 289.8 MB / 297.1 MB, free: 6.699 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 176.1 kB / 366.3 MB, free: 1.984 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.721/1.721, allocations: 205.1 MB / 0.6256 GB, free: 5.82 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001177/0.001177, allocations: 84.75 kB / 0.7395 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2936/0.2949, allocations: 122.4 MB / 0.8591 GB, free: 13.26 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.694/0.9889, allocations: 116.3 MB / 0.9726 GB, free: 68.11 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1914/1.18, allocations: 142.2 MB / 1.111 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/1.181, allocations: 89.16 kB / 1.112 GB, free: 6.211 MB / 0.7136 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.0158/1.197, allocations: 5.455 MB / 1.117 GB, free: 0.7305 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/1.197, allocations: 8 kB / 1.117 GB, free: 0.7227 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.789e-05/1.197, allocations: 15.81 kB / 1.117 GB, free: 0.707 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/1.197, allocations: 263.6 kB / 1.117 GB, free: 416 kB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/1.197, allocations: 5.5 kB / 1.117 GB, free: 412 kB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.681e-05/1.197, allocations: 0 / 1.117 GB, free: 412 kB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001081/1.197, allocations: 35.92 kB / 1.117 GB, free: 376 kB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001408/1.197, allocations: 84.25 kB / 1.117 GB, free: 276 kB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/1.197, allocations: 0 / 1.117 GB, free: 276 kB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/1.197, allocations: 4 kB / 1.117 GB, free: 272 kB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/1.197, allocations: 7.984 kB / 1.117 GB, free: 264 kB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006038/1.198, allocations: 345.2 kB / 1.118 GB, free: 15.88 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/1.198, allocations: 82.67 kB / 1.118 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.28e-05/1.198, allocations: 24.92 kB / 1.118 GB, free: 15.77 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/1.198, allocations: 0 / 1.118 GB, free: 15.77 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001224/1.198, allocations: 94.84 kB / 1.118 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/1.198, allocations: 0 / 1.118 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8): time 0.00028/1.199, allocations: 101.5 kB / 1.118 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/1.199, allocations: 110.8 kB / 1.118 GB, free: 15.43 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/1.199, allocations: 229.9 kB / 1.118 GB, free: 15.19 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/1.199, allocations: 25.7 kB / 1.118 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.798e-05/1.199, allocations: 100 kB / 1.118 GB, free: 15.06 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.49e-05/1.199, allocations: 19.81 kB / 1.118 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-06/1.199, allocations: 0 / 1.118 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001317/1.199, allocations: 336.6 kB / 1.119 GB, free: 14.7 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.406e-05/1.199, allocations: 24 kB / 1.119 GB, free: 14.68 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.135e-05/1.199, allocations: 72.2 kB / 1.119 GB, free: 14.59 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.545e-05/1.2, allocations: 35.98 kB / 1.119 GB, free: 14.56 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/1.2, allocations: 0 / 1.119 GB, free: 14.56 MB / 0.7292 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001922/1.2, allocations: 105.5 kB / 1.119 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/1.2, allocations: 4 kB / 1.119 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/1.2, allocations: 0 / 1.119 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/1.2, allocations: 7.906 kB / 1.119 GB, free: 14.44 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/1.2, allocations: 15.92 kB / 1.119 GB, free: 14.42 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/1.2, allocations: 4 kB / 1.119 GB, free: 14.42 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.737e-05/1.2, allocations: 0 / 1.119 GB, free: 14.42 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/1.2, allocations: 4 kB / 1.119 GB, free: 14.41 MB / 0.7292 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 9.428e-05/1.2, allocations: 110.9 kB / 1.119 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/1.2, allocations: 25.25 kB / 1.119 GB, free: 14.28 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002491/1.2, allocations: 121.4 kB / 1.119 GB, free: 14.16 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.511e-05/1.2, allocations: 0 / 1.119 GB, free: 14.16 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/1.2, allocations: 3.938 kB / 1.119 GB, free: 14.15 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/1.2, allocations: 0 / 1.119 GB, free: 14.15 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001874/1.201, allocations: 218 kB / 1.119 GB, free: 13.9 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/1.201, allocations: 0 / 1.119 GB, free: 13.9 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.822e-05/1.201, allocations: 11.98 kB / 1.119 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/1.201, allocations: 0 / 1.119 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/1.201, allocations: 4 kB / 1.119 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/1.201, allocations: 0 / 1.119 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/1.201, allocations: 1.031 kB / 1.119 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002066/1.201, allocations: 136.8 kB / 1.12 GB, free: 13.73 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003481/1.201, allocations: 0.5097 MB / 1.12 GB, free: 13.2 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.165e-05/1.201, allocations: 104.9 kB / 1.12 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.333e-05/1.201, allocations: 0 / 1.12 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.969e-05/1.202, allocations: 10.05 kB / 1.12 GB, free: 13.07 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.525e-05/1.202, allocations: 11.98 kB / 1.12 GB, free: 13.06 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/1.202, allocations: 7.906 kB / 1.12 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001833/1.202, allocations: 187 kB / 1.12 GB, free: 12.87 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0008936/1.203, allocations: 51.94 kB / 1.12 GB, free: 12.82 MB / 0.7292 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.0007725/1.204, allocations: 328.1 kB / 1.121 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000235/1.204, allocations: 81.7 kB / 1.121 GB, free: 12.5 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.204, allocations: 0 / 1.121 GB, free: 12.5 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 8.683e-05/1.204, allocations: 39.92 kB / 1.121 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/1.204, allocations: 27.95 kB / 1.121 GB, free: 12.43 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004843/1.205, allocations: 219.9 kB / 1.121 GB, free: 12.19 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003513/1.205, allocations: 0.7508 MB / 1.122 GB, free: 11.41 MB / 0.7292 GB Notification: Performance of SimCode: time 2.81e-07/1.205, allocations: 0 / 1.122 GB, free: 11.41 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)