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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6555/0.6555, allocations: 90.92 MB / 99.35 MB, free: 2.195 MB / 74.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 221.5 MB / 343.2 MB, free: 1.547 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009533/0.0009533, allocations: 99.33 kB / 415.9 MB, free: 11.14 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.364e-05/2.366e-05, allocations: 4 kB / 494.6 MB, free: 52.27 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.1719, allocations: 72.3 MB / 0.5536 GB, free: 12.17 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5818/0.7537, allocations: 105.2 MB / 0.6564 GB, free: 5.051 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.754, allocations: 75.58 kB / 0.6565 GB, free: 5.012 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01529/0.7693, allocations: 5.507 MB / 0.6618 GB, free: 492 kB / 458.7 MB Notification: Performance of FrontEnd: time 4.408e-06/0.7694, allocations: 0 / 0.6618 GB, free: 492 kB / 458.7 MB Notification: Performance of Transformations before backend: time 2.168e-05/0.7694, allocations: 7.938 kB / 0.6618 GB, free: 484 kB / 458.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.0006957/0.7701, allocations: 466.5 kB / 0.6623 GB, free: 15.98 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.7702, allocations: 8.031 kB / 0.6623 GB, free: 15.97 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.087e-05/0.7702, allocations: 27.7 kB / 0.6623 GB, free: 15.94 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.7707, allocations: 262.5 kB / 0.6626 GB, free: 15.66 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.7707, allocations: 7.984 kB / 0.6626 GB, free: 15.65 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.7708, allocations: 0 / 0.6626 GB, free: 15.65 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001064/0.7709, allocations: 33.92 kB / 0.6626 GB, free: 15.63 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.771, allocations: 85.81 kB / 0.6627 GB, free: 15.54 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.7711, allocations: 3.984 kB / 0.6627 GB, free: 15.54 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.7711, allocations: 7.953 kB / 0.6627 GB, free: 15.53 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.7711, allocations: 4 kB / 0.6627 GB, free: 15.53 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005512/0.7717, allocations: 332.5 kB / 0.663 GB, free: 15.2 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/0.7718, allocations: 85.14 kB / 0.6631 GB, free: 15.13 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.611e-05/0.7719, allocations: 30.92 kB / 0.6631 GB, free: 15.11 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.7719, allocations: 4 kB / 0.6631 GB, free: 15.11 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001433/0.7721, allocations: 84.64 kB / 0.6632 GB, free: 15.02 MB / 474.7 MB Notification: Performance of pre-optimization done (n=8): time 1.723e-06/0.7721, allocations: 0 / 0.6632 GB, free: 15.02 MB / 474.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003022/0.7724, allocations: 106.2 kB / 0.6633 GB, free: 14.93 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.7725, allocations: 111.4 kB / 0.6634 GB, free: 14.79 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.7727, allocations: 236.3 kB / 0.6636 GB, free: 14.6 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.7728, allocations: 25.7 kB / 0.6637 GB, free: 14.57 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.944e-05/0.7729, allocations: 121.7 kB / 0.6638 GB, free: 14.46 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.7729, allocations: 18.81 kB / 0.6638 GB, free: 14.45 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-06/0.7729, allocations: 0 / 0.6638 GB, free: 14.45 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.773, allocations: 337.4 kB / 0.6641 GB, free: 14.12 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.51e-05/0.7731, allocations: 22.5 kB / 0.6642 GB, free: 14.11 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.406e-05/0.7732, allocations: 62.97 kB / 0.6642 GB, free: 14.04 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001098/0.7733, allocations: 38.53 kB / 0.6642 GB, free: 14.01 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.7733, allocations: 0 / 0.6642 GB, free: 14.01 MB / 474.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001941/0.7735, allocations: 114 kB / 0.6644 GB, free: 13.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.7735, allocations: 5.25 kB / 0.6644 GB, free: 13.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.7735, allocations: 0 / 0.6644 GB, free: 13.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.7736, allocations: 3.953 kB / 0.6644 GB, free: 13.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.93e-05/0.7737, allocations: 12 kB / 0.6644 GB, free: 13.89 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.7737, allocations: 3.984 kB / 0.6644 GB, free: 13.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.173e-05/0.7738, allocations: 11.84 kB / 0.6644 GB, free: 13.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.7738, allocations: 8.031 kB / 0.6644 GB, free: 13.87 MB / 474.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 9.642e-05/0.7739, allocations: 113.6 kB / 0.6645 GB, free: 13.75 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002068/0.7741, allocations: 113.6 kB / 0.6646 GB, free: 13.65 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.017e-05/0.7741, allocations: 19.77 kB / 0.6646 GB, free: 13.63 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002253/0.7744, allocations: 116 kB / 0.6647 GB, free: 13.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.7744, allocations: 7.984 kB / 0.6648 GB, free: 13.53 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.7744, allocations: 0 / 0.6648 GB, free: 13.53 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.7744, allocations: 0 / 0.6648 GB, free: 13.53 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001977/0.7746, allocations: 206.6 kB / 0.665 GB, free: 13.31 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.7746, allocations: 3.984 kB / 0.665 GB, free: 13.31 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.756e-05/0.7747, allocations: 11.94 kB / 0.665 GB, free: 13.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.7747, allocations: 0 / 0.665 GB, free: 13.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.7747, allocations: 0 / 0.665 GB, free: 13.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.7747, allocations: 7.953 kB / 0.665 GB, free: 13.29 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.7747, allocations: 0 / 0.665 GB, free: 13.29 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.775, allocations: 144.9 kB / 0.6651 GB, free: 13.15 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.48e-05/0.7751, allocations: 107.9 kB / 0.6652 GB, free: 13.03 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.093e-05/0.7751, allocations: 0 / 0.6652 GB, free: 13.03 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.926e-05/0.7752, allocations: 4 kB / 0.6652 GB, free: 13.03 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.694e-05/0.7752, allocations: 11.94 kB / 0.6652 GB, free: 13.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.7752, allocations: 8 kB / 0.6652 GB, free: 13.01 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001732/0.7754, allocations: 183 kB / 0.6654 GB, free: 12.86 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7754, allocations: 0 / 0.6654 GB, free: 12.86 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0002793/0.7757, allocations: 47.23 kB / 0.6655 GB, free: 12.82 MB / 474.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.001326/0.777, allocations: 0.9421 MB / 0.6664 GB, free: 11.96 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001931/0.7772, allocations: 79.66 kB / 0.6665 GB, free: 11.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.7773, allocations: 0 / 0.6665 GB, free: 11.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 6.729e-05/0.7773, allocations: 41.36 kB / 0.6665 GB, free: 11.87 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.7776, allocations: 32.03 kB / 0.6665 GB, free: 11.84 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006461/0.7783, allocations: 282.5 kB / 0.6668 GB, free: 11.55 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003557/0.7786, allocations: 0.7275 MB / 0.6675 GB, free: 10.8 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 9.724e-05/0.7787, allocations: 29.5 kB / 0.6675 GB, free: 10.78 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.719e-05/0.7788, allocations: 50.3 kB / 0.6676 GB, free: 10.75 MB / 474.7 MB Notification: Performance of SimCode: time 2.7e-07/0.7788, allocations: 0 / 0.6676 GB, free: 10.75 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02525/0.8041, allocations: 3.808 MB / 0.6713 GB, free: 6.98 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000207/0.8044, allocations: 157.3 kB / 0.6714 GB, free: 6.793 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/2.541, allocations: 4.031 kB / 0.6715 GB, free: 6.789 MB / 474.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)