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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.252/1.252, allocations: 249.4 MB / 256.7 MB, free: 7.027 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.0009418/0.0009418, allocations: 177.2 kB / 316 MB, free: 3.531 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.138/1.138, allocations: 205.1 MB / 0.5667 GB, free: 15.6 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.0008429/0.0008428, allocations: 87.38 kB / 0.671 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3299/0.3308, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.4993, allocations: 106.3 MB / 0.8847 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5196/1.019, allocations: 135.9 MB / 1.017 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001913/1.019, allocations: 77.69 kB / 1.017 GB, free: 2.613 MB / 0.6355 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.0144/1.034, allocations: 5.476 MB / 1.023 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/1.034, allocations: 8 kB / 1.023 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.499e-05/1.034, allocations: 19.5 kB / 1.023 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003734/1.034, allocations: 255.6 kB / 1.023 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/1.034, allocations: 4 kB / 1.023 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/1.034, allocations: 0 / 1.023 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001012/1.034, allocations: 34.05 kB / 1.023 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/1.034, allocations: 89.38 kB / 1.023 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/1.034, allocations: 4 kB / 1.023 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/1.034, allocations: 7.891 kB / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/1.034, allocations: 0 / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000531/1.035, allocations: 347.5 kB / 1.024 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/1.035, allocations: 78.8 kB / 1.024 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.305e-05/1.035, allocations: 31.7 kB / 1.024 GB, free: 13.17 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/1.035, allocations: 4 kB / 1.024 GB, free: 13.17 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001028/1.035, allocations: 71.98 kB / 1.024 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=8): time 1.422e-06/1.035, allocations: 0 / 1.024 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=8): time 0.0002742/1.036, allocations: 105.1 kB / 1.024 GB, free: 13 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/1.036, allocations: 102.8 kB / 1.024 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002637/1.036, allocations: 237.1 kB / 1.024 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/1.036, allocations: 29.7 kB / 1.024 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.266e-05/1.036, allocations: 95.75 kB / 1.024 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.704e-05/1.036, allocations: 22.86 kB / 1.024 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-06/1.036, allocations: 0 / 1.024 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001323/1.036, allocations: 332.4 kB / 1.025 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.518e-05/1.036, allocations: 26.81 kB / 1.025 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.255e-05/1.036, allocations: 78.14 kB / 1.025 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.972e-05/1.036, allocations: 34.11 kB / 1.025 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/1.037, allocations: 0 / 1.025 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001842/1.037, allocations: 114.8 kB / 1.025 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/1.037, allocations: 4 kB / 1.025 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/1.037, allocations: 4 kB / 1.025 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/1.037, allocations: 0 / 1.025 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/1.037, allocations: 11.98 kB / 1.025 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/1.037, allocations: 8.031 kB / 1.025 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.888e-05/1.037, allocations: 7.906 kB / 1.025 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/1.037, allocations: 48 / 1.025 GB, free: 11.95 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 9.18e-05/1.037, allocations: 113 kB / 1.025 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.081e-05/1.037, allocations: 15.81 kB / 1.025 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002171/1.037, allocations: 115.6 kB / 1.025 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/1.037, allocations: 0 / 1.025 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/1.037, allocations: 4 kB / 1.025 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/1.037, allocations: 7.984 kB / 1.025 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001663/1.038, allocations: 210 kB / 1.025 GB, free: 11.49 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/1.038, allocations: 0 / 1.025 GB, free: 11.49 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.794e-05/1.038, allocations: 7.984 kB / 1.025 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/1.038, allocations: 0 / 1.025 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/1.038, allocations: 4 kB / 1.025 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/1.038, allocations: 0 / 1.025 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/1.038, allocations: 3.938 kB / 1.025 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00019/1.038, allocations: 149.2 kB / 1.025 GB, free: 11.33 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000289/1.038, allocations: 0.5132 MB / 1.026 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.236e-05/1.038, allocations: 99.55 kB / 1.026 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.247e-05/1.038, allocations: 0 / 1.026 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.638e-05/1.038, allocations: 7.984 kB / 1.026 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.227e-05/1.038, allocations: 11.61 kB / 1.026 GB, free: 10.69 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.735e-06/1.038, allocations: 4 kB / 1.026 GB, free: 10.69 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001526/1.039, allocations: 193.5 kB / 1.026 GB, free: 10.53 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0008025/1.039, allocations: 50.8 kB / 1.026 GB, free: 10.49 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.0007016/1.04, allocations: 331.3 kB / 1.027 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002044/1.04, allocations: 74.78 kB / 1.027 GB, free: 10.19 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/1.04, allocations: 64 / 1.027 GB, free: 10.19 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.984e-05/1.04, allocations: 43.39 kB / 1.027 GB, free: 10.15 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/1.041, allocations: 41.64 kB / 1.027 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004621/1.041, allocations: 209.4 kB / 1.027 GB, free: 9.918 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003375/1.041, allocations: 0.7502 MB / 1.028 GB, free: 9.145 MB / 0.6511 GB Notification: Performance of SimCode: time 2.5e-07/1.041, allocations: 0 / 1.028 GB, free: 9.145 MB / 0.6511 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)