Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 185 kB / 7.804 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4718/0.4718, allocations: 90.85 MB / 99.08 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 221.4 MB / 342.8 MB, free: 5.203 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00099/0.00099, allocations: 95.08 kB / 415.5 MB, free: 9.828 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1692/0.1702, allocations: 78.45 MB / 494 MB, free: 11.48 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.39/0.5602, allocations: 72.31 MB / 0.553 GB, free: 44.77 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1316/0.6919, allocations: 105.2 MB / 0.6557 GB, free: 3.461 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.6922, allocations: 76.73 kB / 0.6558 GB, free: 3.387 MB / 474.7 MB 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.01713/0.7094, allocations: 5.615 MB / 0.6612 GB, free: 13.73 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.7094, allocations: 8 kB / 0.6612 GB, free: 13.72 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.923e-05/0.7095, allocations: 19.72 kB / 0.6613 GB, free: 13.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005001/0.71, allocations: 263.6 kB / 0.6615 GB, free: 13.4 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.7101, allocations: 4 kB / 0.6615 GB, free: 13.4 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.279e-05/0.7101, allocations: 5.25 kB / 0.6615 GB, free: 13.39 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001149/0.7102, allocations: 35.98 kB / 0.6616 GB, free: 13.36 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001586/0.7104, allocations: 84.25 kB / 0.6616 GB, free: 13.26 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.7104, allocations: 11.98 kB / 0.6617 GB, free: 13.25 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.7104, allocations: 0 / 0.6617 GB, free: 13.25 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/0.7105, allocations: 0 / 0.6617 GB, free: 13.25 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006065/0.7111, allocations: 349.1 kB / 0.662 GB, free: 12.87 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001554/0.7113, allocations: 82.67 kB / 0.6621 GB, free: 12.78 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.88e-05/0.7113, allocations: 27.89 kB / 0.6621 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.7113, allocations: 4.562 kB / 0.6621 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001275/0.7115, allocations: 75.42 kB / 0.6622 GB, free: 12.66 MB / 490.7 MB Notification: Performance of pre-optimization done (n=8): time 1.673e-06/0.7115, allocations: 0 / 0.6622 GB, free: 12.66 MB / 490.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003664/0.7119, allocations: 105.5 kB / 0.6623 GB, free: 12.55 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.7119, allocations: 106.8 kB / 0.6624 GB, free: 12.43 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/0.7122, allocations: 233.7 kB / 0.6626 GB, free: 12.19 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.7123, allocations: 31.48 kB / 0.6626 GB, free: 12.16 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.781e-05/0.7124, allocations: 100 kB / 0.6627 GB, free: 12.05 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.774e-05/0.7124, allocations: 19.73 kB / 0.6627 GB, free: 12.04 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-06/0.7124, allocations: 0 / 0.6627 GB, free: 12.04 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.7126, allocations: 326.8 kB / 0.663 GB, free: 11.71 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.874e-05/0.7127, allocations: 24 kB / 0.6631 GB, free: 11.68 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.075e-05/0.7127, allocations: 76.2 kB / 0.6631 GB, free: 11.59 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.59e-05/0.7129, allocations: 31.98 kB / 0.6632 GB, free: 11.56 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.7129, allocations: 0 / 0.6632 GB, free: 11.56 MB / 490.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002225/0.7131, allocations: 113.5 kB / 0.6633 GB, free: 11.45 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.7131, allocations: 4 kB / 0.6633 GB, free: 11.44 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.7131, allocations: 4 kB / 0.6633 GB, free: 11.44 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.7131, allocations: 7.969 kB / 0.6633 GB, free: 11.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.7133, allocations: 11.98 kB / 0.6633 GB, free: 11.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.657e-06/0.7133, allocations: 5.875 kB / 0.6633 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.135e-05/0.7134, allocations: 7.938 kB / 0.6633 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.7134, allocations: 0 / 0.6633 GB, free: 11.41 MB / 490.7 MB 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.0001051/0.7135, allocations: 112.9 kB / 0.6634 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.289e-05/0.7135, allocations: 15.81 kB / 0.6634 GB, free: 11.27 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002651/0.7138, allocations: 119 kB / 0.6636 GB, free: 11.16 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.7138, allocations: 3.984 kB / 0.6636 GB, free: 11.15 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.7138, allocations: 0 / 0.6636 GB, free: 11.15 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.7138, allocations: 3.984 kB / 0.6636 GB, free: 11.15 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.714, allocations: 206.1 kB / 0.6638 GB, free: 10.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.7141, allocations: 0 / 0.6638 GB, free: 10.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.257e-05/0.7141, allocations: 7.984 kB / 0.6638 GB, free: 10.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.7141, allocations: 0 / 0.6638 GB, free: 10.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.7141, allocations: 4 kB / 0.6638 GB, free: 10.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.7141, allocations: 0 / 0.6638 GB, free: 10.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.7142, allocations: 7.953 kB / 0.6638 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002127/0.7144, allocations: 144.8 kB / 0.6639 GB, free: 10.73 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003301/0.7147, allocations: 0.509 MB / 0.6644 GB, free: 10.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.333e-05/0.7148, allocations: 105.6 kB / 0.6645 GB, free: 10.08 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.786e-05/0.7149, allocations: 3.906 kB / 0.6645 GB, free: 10.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.47e-05/0.7149, allocations: 11.98 kB / 0.6645 GB, free: 10.07 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.715, allocations: 11.98 kB / 0.6645 GB, free: 10.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.715, allocations: 0 / 0.6645 GB, free: 10.05 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0001967/0.7152, allocations: 184.6 kB / 0.6647 GB, free: 9.875 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0009664/0.7162, allocations: 55.92 kB / 0.6648 GB, free: 9.82 MB / 490.7 MB 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.0007893/0.717, allocations: 322.5 kB / 0.6651 GB, free: 9.609 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0002329/0.7172, allocations: 74.02 kB / 0.6652 GB, free: 9.539 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.7173, allocations: 4 kB / 0.6652 GB, free: 9.535 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 8.659e-05/0.7174, allocations: 35.92 kB / 0.6652 GB, free: 9.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.7176, allocations: 35.86 kB / 0.6652 GB, free: 9.465 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004785/0.7181, allocations: 227.8 kB / 0.6654 GB, free: 9.215 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003475/0.7185, allocations: 0.7547 MB / 0.6662 GB, free: 8.434 MB / 490.7 MB Notification: Performance of SimCode: time 2.51e-07/0.7185, allocations: 0 / 0.6662 GB, free: 8.434 MB / 490.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)