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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 104.3 kB / 16.4 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 193.2 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8385/0.8385, allocations: 126.7 MB / 417.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 68.11 kB / 0.5735 GB, free: 27.18 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1513, allocations: 78.87 MB / 0.6506 GB, free: 3.598 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.003261/0.1546, allocations: 1.765 MB / 0.6523 GB, free: 1.824 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001799/0.1565, allocations: 1.1 MB / 0.6534 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.143e-05/0.1566, allocations: 0 / 0.6534 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003082/0.1569, allocations: 63.67 kB / 0.6534 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.1572, allocations: 83.66 kB / 0.6535 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005915/0.1578, allocations: 222.4 kB / 0.6537 GB, free: 364 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002041/0.158, allocations: 147.6 kB / 0.6538 GB, free: 216 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.1581, allocations: 29.12 kB / 0.6539 GB, free: 188 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.568e-05/0.1582, allocations: 59.77 kB / 0.6539 GB, free: 128 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001076/0.1583, allocations: 63.75 kB / 0.654 GB, free: 64 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.325e-05/0.1583, allocations: 8 kB / 0.654 GB, free: 56 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001761/0.1585, allocations: 71.94 kB / 0.6541 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.622e-05/0.1586, allocations: 39.78 kB / 0.6541 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.134e-05/0.1587, allocations: 59.67 kB / 0.6542 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003032/0.159, allocations: 207.5 kB / 0.6544 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.159, allocations: 4 kB / 0.6544 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.423e-06/0.159, allocations: 0 / 0.6544 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.159, allocations: 0 / 0.6544 GB, free: 15.68 MB / 0.4981 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.0006783/0.1597, allocations: 500 kB / 0.6548 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.1597, allocations: 12.03 kB / 0.6549 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.51e-05/0.1598, allocations: 30.75 kB / 0.6549 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.285e-05/0.1598, allocations: 20.83 kB / 0.6549 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003483/0.1602, allocations: 249 kB / 0.6551 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.1602, allocations: 12.31 kB / 0.6552 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.1602, allocations: 7.938 kB / 0.6552 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002036/0.1605, allocations: 92.17 kB / 0.6552 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.1605, allocations: 3.984 kB / 0.6553 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.1605, allocations: 4 kB / 0.6553 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.1605, allocations: 0 / 0.6553 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.1606, allocations: 35.98 kB / 0.6553 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005355/0.1612, allocations: 360.6 kB / 0.6556 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002234/0.1614, allocations: 86.64 kB / 0.6557 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.37e-05/0.1615, allocations: 32.84 kB / 0.6557 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.1615, allocations: 3.984 kB / 0.6558 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/0.1617, allocations: 87.41 kB / 0.6558 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.462e-06/0.1617, allocations: 0 / 0.6558 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.000363/0.1621, allocations: 133.6 kB / 0.656 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.641e-05/0.1622, allocations: 102.8 kB / 0.6561 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.1624, allocations: 274.6 kB / 0.6563 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.1625, allocations: 33.7 kB / 0.6564 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.883e-05/0.1626, allocations: 116.1 kB / 0.6565 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.029e-05/0.1626, allocations: 19.89 kB / 0.6565 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.343e-05/0.1627, allocations: 33.64 kB / 0.6565 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1628, allocations: 330.8 kB / 0.6568 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.405e-05/0.1629, allocations: 27.98 kB / 0.6569 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/0.163, allocations: 68.27 kB / 0.6569 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001532/0.1632, allocations: 70.02 kB / 0.657 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1632, allocations: 0 / 0.657 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002248/0.1634, allocations: 121.5 kB / 0.6571 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.1635, allocations: 7.984 kB / 0.6571 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1635, allocations: 0 / 0.6571 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.1635, allocations: 4 kB / 0.6571 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.14e-05/0.1636, allocations: 8.188 kB / 0.6571 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.1636, allocations: 3.938 kB / 0.6571 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.353e-05/0.1637, allocations: 15.86 kB / 0.6571 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.1637, allocations: 8.031 kB / 0.6572 GB, free: 12.54 MB / 0.4981 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 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001553/0.1638, allocations: 149.8 kB / 0.6573 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.724e-05/0.1639, allocations: 11.91 kB / 0.6573 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.057e-05/0.1639, allocations: 25.39 kB / 0.6573 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.1639, allocations: 4 kB / 0.6573 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.164, allocations: 0 / 0.6573 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.164, allocations: 3.938 kB / 0.6573 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002158/0.1642, allocations: 221.5 kB / 0.6575 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1642, allocations: 0 / 0.6575 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.991e-05/0.1642, allocations: 8 kB / 0.6576 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.1643, allocations: 4 kB / 0.6576 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.1643, allocations: 3.984 kB / 0.6576 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1643, allocations: 0 / 0.6576 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1643, allocations: 0 / 0.6576 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000255/0.1645, allocations: 144.9 kB / 0.6577 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.949e-05/0.1646, allocations: 97 kB / 0.6578 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.006e-05/0.1647, allocations: 4 kB / 0.6578 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.046e-05/0.1647, allocations: 4 kB / 0.6578 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.449e-05/0.1648, allocations: 15.92 kB / 0.6578 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.1648, allocations: 4 kB / 0.6578 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002231/0.165, allocations: 200.4 kB / 0.658 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.165, allocations: 0 / 0.658 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002486/0.1653, allocations: 31.94 kB / 0.658 GB, free: 11.53 MB / 0.4981 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.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002035/0.1673, allocations: 1.007 MB / 0.659 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002444/0.1676, allocations: 63.97 kB / 0.6591 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1676, allocations: 0 / 0.6591 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.968e-05/0.1677, allocations: 35.92 kB / 0.6591 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/0.168, allocations: 45.52 kB / 0.6592 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00239/0.1704, allocations: 1.932 MB / 0.6611 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.1708, allocations: 0.7204 MB / 0.6618 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.109e-05/0.1709, allocations: 32.98 kB / 0.6618 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.171, allocations: 55.41 kB / 0.6618 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of SimCode: time 5.31e-07/0.171, allocations: 0 / 0.6618 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02644/0.1975, allocations: 4.689 MB / 0.6664 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.219/8.416, allocations: 23.33 kB / 0.6664 GB, free: 3.059 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)