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.001179/0.001179, allocations: 113.1 kB / 16.41 MB, free: 6.5 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.001204/0.001204, allocations: 193.2 kB / 17.34 MB, free: 5.762 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.427/1.427, 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.8052/0.8052, allocations: 122.8 MB / 414.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 62.69 kB / 0.568 GB, free: 28.98 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1555, allocations: 77.94 MB / 0.6441 GB, free: 9.531 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.003277/0.1588, allocations: 1.753 MB / 0.6458 GB, free: 7.77 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.1605, allocations: 1.101 MB / 0.6469 GB, free: 6.66 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.271e-05/0.1606, allocations: 3.938 kB / 0.6469 GB, free: 6.656 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003171/0.161, allocations: 59.73 kB / 0.6469 GB, free: 6.598 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002564/0.1613, allocations: 75.67 kB / 0.647 GB, free: 6.523 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006387/0.1619, allocations: 234.6 kB / 0.6472 GB, free: 6.297 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002133/0.1621, allocations: 151.6 kB / 0.6474 GB, free: 6.148 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.1623, allocations: 21.12 kB / 0.6474 GB, free: 6.129 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.1624, allocations: 63.75 kB / 0.6474 GB, free: 6.066 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.1625, allocations: 67.69 kB / 0.6475 GB, free: 6 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.325e-05/0.1625, allocations: 4 kB / 0.6475 GB, free: 5.996 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001738/0.1627, allocations: 75.94 kB / 0.6476 GB, free: 5.922 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.328e-05/0.1628, allocations: 39.84 kB / 0.6476 GB, free: 5.883 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.991e-05/0.1629, allocations: 47.69 kB / 0.6477 GB, free: 5.836 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002741/0.1631, allocations: 211.4 kB / 0.6479 GB, free: 5.629 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1632, allocations: 0 / 0.6479 GB, free: 5.629 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1632, allocations: 0 / 0.6479 GB, free: 5.629 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.758e-06/0.1632, allocations: 4 kB / 0.6479 GB, free: 5.625 MB / 494.1 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.0005975/0.1638, allocations: 0.4883 MB / 0.6483 GB, free: 5.082 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1638, allocations: 12.62 kB / 0.6484 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.211e-05/0.1639, allocations: 42.73 kB / 0.6484 GB, free: 5.02 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.429e-05/0.1639, allocations: 20.84 kB / 0.6484 GB, free: 5 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003111/0.1642, allocations: 252.9 kB / 0.6487 GB, free: 4.711 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.1643, allocations: 384 / 0.6487 GB, free: 4.711 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/0.1643, allocations: 7.938 kB / 0.6487 GB, free: 4.703 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001909/0.1645, allocations: 104.1 kB / 0.6488 GB, free: 4.586 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.1645, allocations: 0 / 0.6488 GB, free: 4.586 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.1645, allocations: 0 / 0.6488 GB, free: 4.586 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.1645, allocations: 4 kB / 0.6488 GB, free: 4.582 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001115/0.1646, allocations: 31.98 kB / 0.6488 GB, free: 4.551 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005001/0.1652, allocations: 352.7 kB / 0.6491 GB, free: 4.156 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002275/0.1654, allocations: 90.69 kB / 0.6492 GB, free: 4.059 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.692e-05/0.1655, allocations: 40.78 kB / 0.6493 GB, free: 4.016 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.1655, allocations: 4 kB / 0.6493 GB, free: 4.012 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001741/0.1657, allocations: 75.38 kB / 0.6493 GB, free: 3.926 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.623e-06/0.1657, allocations: 0 / 0.6493 GB, free: 3.926 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003718/0.1661, allocations: 145.5 kB / 0.6495 GB, free: 3.777 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.1661, allocations: 102.8 kB / 0.6496 GB, free: 3.652 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002504/0.1664, allocations: 270.9 kB / 0.6498 GB, free: 3.375 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.1664, allocations: 29.7 kB / 0.6499 GB, free: 3.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.957e-05/0.1665, allocations: 124.1 kB / 0.65 GB, free: 3.215 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.1665, allocations: 15.86 kB / 0.65 GB, free: 3.199 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.534e-05/0.1666, allocations: 29.7 kB / 0.65 GB, free: 3.164 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.1667, allocations: 322.8 kB / 0.6503 GB, free: 2.84 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.393e-05/0.1668, allocations: 27.92 kB / 0.6504 GB, free: 2.812 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.807e-05/0.1669, allocations: 76.2 kB / 0.6504 GB, free: 2.723 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.1671, allocations: 73.69 kB / 0.6505 GB, free: 2.645 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1671, allocations: 0 / 0.6505 GB, free: 2.645 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002182/0.1673, allocations: 117.8 kB / 0.6506 GB, free: 2.523 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.1673, allocations: 8 kB / 0.6506 GB, free: 2.516 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1673, allocations: 0 / 0.6506 GB, free: 2.516 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.1673, allocations: 0 / 0.6506 GB, free: 2.516 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.449e-05/0.1674, allocations: 12 kB / 0.6506 GB, free: 2.504 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.1674, allocations: 4.031 kB / 0.6506 GB, free: 2.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.821e-05/0.1675, allocations: 15.92 kB / 0.6507 GB, free: 2.484 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-06/0.1675, allocations: 4.047 kB / 0.6507 GB, free: 2.48 MB / 494.1 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 ($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.0001206/0.1677, allocations: 143.2 kB / 0.6508 GB, free: 2.332 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.678e-05/0.1677, allocations: 19.91 kB / 0.6508 GB, free: 2.312 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.43e-05/0.1678, allocations: 21.39 kB / 0.6508 GB, free: 2.285 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.1678, allocations: 0 / 0.6508 GB, free: 2.285 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1678, allocations: 3.938 kB / 0.6508 GB, free: 2.281 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1678, allocations: 7.938 kB / 0.6508 GB, free: 2.273 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/0.168, allocations: 229.5 kB / 0.6511 GB, free: 2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.168, allocations: 0 / 0.6511 GB, free: 2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.078e-05/0.168, allocations: 4 kB / 0.6511 GB, free: 1.996 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.168, allocations: 0 / 0.6511 GB, free: 1.996 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.1681, allocations: 11.98 kB / 0.6511 GB, free: 1.984 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1681, allocations: 0 / 0.6511 GB, free: 1.984 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1681, allocations: 192 / 0.6511 GB, free: 1.984 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000241/0.1683, allocations: 140.9 kB / 0.6512 GB, free: 1.828 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.827e-05/0.1684, allocations: 96.95 kB / 0.6513 GB, free: 1.715 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.957e-05/0.1684, allocations: 4 kB / 0.6513 GB, free: 1.711 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.92e-05/0.1685, allocations: 4 kB / 0.6513 GB, free: 1.707 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.295e-05/0.1685, allocations: 11.92 kB / 0.6513 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.1686, allocations: 4 kB / 0.6513 GB, free: 1.691 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001764/0.1687, allocations: 200.3 kB / 0.6515 GB, free: 1.496 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1688, allocations: 4 kB / 0.6515 GB, free: 1.492 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.169, allocations: 31.94 kB / 0.6516 GB, free: 1.461 MB / 494.1 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.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.001425/0.1704, allocations: 1.002 MB / 0.6525 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002647/0.1707, allocations: 71.91 kB / 0.6526 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1707, allocations: 4 kB / 0.6526 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.224e-05/0.1708, allocations: 31.98 kB / 0.6526 GB, free: 500 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.1712, allocations: 52.28 kB / 0.6527 GB, free: 460 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002131/0.1733, allocations: 1.946 MB / 0.6546 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.1736, allocations: 0.7239 MB / 0.6553 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.742e-05/0.1736, allocations: 25.38 kB / 0.6553 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.296e-05/0.1737, allocations: 51.41 kB / 0.6554 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1737, allocations: 3.938 kB / 0.6554 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01947/0.1932, allocations: 4.679 MB / 0.6599 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.599/7.792, allocations: 15.89 kB / 0.66 GB, free: 9.004 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)