Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.643/2.643, allocations: 284.8 MB / 292.1 MB, free: 1.453 MB / 227.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00168/0.00168, allocations: 189.7 kB / 360.3 MB, free: 15.63 MB / 291.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.856/1.856, allocations: 205.1 MB / 0.6187 GB, free: 6.621 MB / 467.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001198/0.001198, allocations: 94.41 kB / 0.7317 GB, free: 46.84 MB / 0.5186 GB Notification: Performance of FrontEnd - loaded program: time 0.2716/0.2728, allocations: 121.4 MB / 0.8502 GB, free: 13.63 MB / 0.5967 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.648/0.9209, allocations: 115.2 MB / 0.9627 GB, free: 86.41 MB / 0.6749 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.238/1.159, allocations: 141 MB / 1.1 GB, free: 9.367 MB / 0.7061 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/1.159, allocations: 79.95 kB / 1.101 GB, free: 9.289 MB / 0.7061 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.02499/1.184, allocations: 5.463 MB / 1.106 GB, free: 3.855 MB / 0.7061 GB Notification: Performance of prepare preOptimizeDAE: time 5.985e-05/1.184, allocations: 12.5 kB / 1.106 GB, free: 3.844 MB / 0.7061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/1.185, allocations: 16.34 kB / 1.106 GB, free: 3.828 MB / 0.7061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006324/1.185, allocations: 256.1 kB / 1.106 GB, free: 3.535 MB / 0.7061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/1.185, allocations: 2.844 kB / 1.106 GB, free: 3.535 MB / 0.7061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/1.185, allocations: 4 kB / 1.106 GB, free: 3.531 MB / 0.7061 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001495/1.186, allocations: 39.92 kB / 1.106 GB, free: 3.492 MB / 0.7061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002607/1.186, allocations: 91.88 kB / 1.106 GB, free: 3.391 MB / 0.7061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/1.186, allocations: 0 / 1.106 GB, free: 3.391 MB / 0.7061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/1.186, allocations: 0 / 1.106 GB, free: 3.391 MB / 0.7061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.555e-05/1.186, allocations: 4 kB / 1.106 GB, free: 3.387 MB / 0.7061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/1.187, allocations: 345.1 kB / 1.107 GB, free: 3.012 MB / 0.7061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003339/1.187, allocations: 76.09 kB / 1.107 GB, free: 2.93 MB / 0.7061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/1.188, allocations: 36.84 kB / 1.107 GB, free: 2.895 MB / 0.7061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/1.188, allocations: 0.6562 kB / 1.107 GB, free: 2.895 MB / 0.7061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002619/1.188, allocations: 87.48 kB / 1.107 GB, free: 2.797 MB / 0.7061 GB Notification: Performance of pre-optimization done (n=8): time 3.897e-06/1.188, allocations: 3.938 kB / 1.107 GB, free: 2.793 MB / 0.7061 GB Notification: Performance of matching and sorting (n=8): time 0.0005999/1.189, allocations: 97.48 kB / 1.107 GB, free: 2.691 MB / 0.7061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/1.189, allocations: 110.8 kB / 1.107 GB, free: 2.559 MB / 0.7061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006591/1.189, allocations: 227.2 kB / 1.107 GB, free: 2.328 MB / 0.7061 GB Notification: Performance of collectPreVariables (initialization): time 4.974e-05/1.189, allocations: 25.7 kB / 1.107 GB, free: 2.297 MB / 0.7061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/1.19, allocations: 108 kB / 1.107 GB, free: 2.188 MB / 0.7061 GB Notification: Performance of collectInitialBindings (initialization): time 6.179e-05/1.19, allocations: 11.81 kB / 1.107 GB, free: 2.176 MB / 0.7061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.597e-05/1.19, allocations: 4 kB / 1.107 GB, free: 2.172 MB / 0.7061 GB Notification: Performance of setup shared object (initialization): time 0.0002799/1.19, allocations: 330.8 kB / 1.108 GB, free: 1.84 MB / 0.7061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/1.19, allocations: 23.98 kB / 1.108 GB, free: 1.816 MB / 0.7061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002836/1.19, allocations: 68.28 kB / 1.108 GB, free: 1.734 MB / 0.7061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002811/1.191, allocations: 39.44 kB / 1.108 GB, free: 1.699 MB / 0.7061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/1.191, allocations: 4 kB / 1.108 GB, free: 1.695 MB / 0.7061 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005512/1.191, allocations: 109.5 kB / 1.108 GB, free: 1.582 MB / 0.7061 GB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/1.191, allocations: 4.625 kB / 1.108 GB, free: 1.578 MB / 0.7061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/1.191, allocations: 0 / 1.108 GB, free: 1.578 MB / 0.7061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.725e-05/1.192, allocations: 9.531 kB / 1.108 GB, free: 1.57 MB / 0.7061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/1.192, allocations: 11.94 kB / 1.108 GB, free: 1.559 MB / 0.7061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/1.192, allocations: 0 / 1.108 GB, free: 1.559 MB / 0.7061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/1.192, allocations: 7.984 kB / 1.108 GB, free: 1.551 MB / 0.7061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.506e-05/1.192, allocations: 4 kB / 1.108 GB, free: 1.547 MB / 0.7061 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 0.0001884/1.192, allocations: 110.4 kB / 1.108 GB, free: 1.434 MB / 0.7061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.747e-05/1.192, allocations: 19.72 kB / 1.108 GB, free: 1.414 MB / 0.7061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006591/1.193, allocations: 120.2 kB / 1.108 GB, free: 1.293 MB / 0.7061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.153e-05/1.193, allocations: 4 kB / 1.108 GB, free: 1.289 MB / 0.7061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/1.193, allocations: 3.938 kB / 1.108 GB, free: 1.285 MB / 0.7061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.575e-06/1.193, allocations: 0 / 1.108 GB, free: 1.285 MB / 0.7061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005079/1.194, allocations: 211.3 kB / 1.108 GB, free: 1.043 MB / 0.7061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/1.194, allocations: 0 / 1.108 GB, free: 1.043 MB / 0.7061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001362/1.194, allocations: 8 kB / 1.108 GB, free: 1.035 MB / 0.7061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.695e-06/1.194, allocations: 4 kB / 1.108 GB, free: 1.031 MB / 0.7061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/1.194, allocations: 4 kB / 1.108 GB, free: 1.027 MB / 0.7061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/1.194, allocations: 4 kB / 1.108 GB, free: 1.023 MB / 0.7061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/1.194, allocations: 3.984 kB / 1.108 GB, free: 1.02 MB / 0.7061 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005413/1.195, allocations: 126.1 kB / 1.109 GB, free: 0.8789 MB / 0.7061 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007428/1.195, allocations: 0.5173 MB / 1.109 GB, free: 348 kB / 0.7061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/1.195, allocations: 101.6 kB / 1.109 GB, free: 228 kB / 0.7061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.085e-05/1.196, allocations: 4 kB / 1.109 GB, free: 224 kB / 0.7061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/1.196, allocations: 0 / 1.109 GB, free: 224 kB / 0.7061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.909e-05/1.196, allocations: 11.98 kB / 1.109 GB, free: 212 kB / 0.7061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.458e-05/1.196, allocations: 9.031 kB / 1.109 GB, free: 204 kB / 0.7061 GB Notification: Performance of sort global known variables: time 0.0005068/1.196, allocations: 186.8 kB / 1.109 GB, free: 16 kB / 0.7061 GB Notification: Performance of remove unused functions: time 0.002593/1.199, allocations: 59.92 kB / 1.109 GB, free: 15.96 MB / 0.7217 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.001493/1.201, allocations: 338.8 kB / 1.11 GB, free: 15.76 MB / 0.7217 GB Notification: Performance of simCode: created initialization part: time 0.0004943/1.201, allocations: 75.91 kB / 1.11 GB, free: 15.69 MB / 0.7217 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/1.201, allocations: 0 / 1.11 GB, free: 15.69 MB / 0.7217 GB Notification: Performance of simCode: created simulation system equations: time 0.0002009/1.201, allocations: 35.98 kB / 1.11 GB, free: 15.65 MB / 0.7217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006279/1.202, allocations: 33.05 kB / 1.11 GB, free: 15.62 MB / 0.7217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/1.203, allocations: 228.5 kB / 1.11 GB, free: 15.38 MB / 0.7217 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006903/1.204, allocations: 0.7462 MB / 1.111 GB, free: 14.61 MB / 0.7217 GB Notification: Performance of SimCode: time 1.162e-06/1.204, allocations: 0 / 1.111 GB, free: 14.61 MB / 0.7217 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)