Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_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.001272/0.001272, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.269/1.269, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001988/0.001988, allocations: 291 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8955/0.8955, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001924, allocations: 104.2 kB / 0.5954 GB, free: 27.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1523, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003091/0.1554, allocations: 1.752 MB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.1571, allocations: 1.115 MB / 0.6831 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.529e-05/0.1572, allocations: 0 / 0.6831 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000275/0.1575, allocations: 59.73 kB / 0.6831 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.1577, allocations: 72.33 kB / 0.6832 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005915/0.1583, allocations: 233.6 kB / 0.6834 GB, free: 13.36 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001939/0.1585, allocations: 137.7 kB / 0.6836 GB, free: 13.22 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.664e-05/0.1586, allocations: 25.38 kB / 0.6836 GB, free: 13.2 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.697e-05/0.1587, allocations: 59.77 kB / 0.6837 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.1589, allocations: 71.69 kB / 0.6837 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.1589, allocations: 8 kB / 0.6837 GB, free: 13.06 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.159, allocations: 67.95 kB / 0.6838 GB, free: 13 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.831e-05/0.1591, allocations: 39.84 kB / 0.6838 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.265e-05/0.1592, allocations: 55.61 kB / 0.6839 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002593/0.1595, allocations: 203.4 kB / 0.6841 GB, free: 12.7 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1595, allocations: 0 / 0.6841 GB, free: 12.7 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1595, allocations: 0 / 0.6841 GB, free: 12.7 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1595, allocations: 3.938 kB / 0.6841 GB, free: 12.7 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.0006051/0.1601, allocations: 0.4885 MB / 0.6846 GB, free: 12.16 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.1601, allocations: 8.031 kB / 0.6846 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.968e-05/0.1602, allocations: 42.75 kB / 0.6846 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.903e-05/0.1603, allocations: 12.75 kB / 0.6846 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.1605, allocations: 261.4 kB / 0.6849 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.1606, allocations: 4.375 kB / 0.6849 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.1606, allocations: 7.938 kB / 0.6849 GB, free: 11.78 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.1608, allocations: 88.23 kB / 0.685 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1608, allocations: 8 kB / 0.685 GB, free: 11.67 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.1608, allocations: 3.984 kB / 0.685 GB, free: 11.67 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.1608, allocations: 3.938 kB / 0.685 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000102/0.1609, allocations: 35.97 kB / 0.685 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004813/0.1614, allocations: 352.7 kB / 0.6854 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.1617, allocations: 86.7 kB / 0.6854 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.09e-05/0.1617, allocations: 32.84 kB / 0.6855 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.1618, allocations: 7.984 kB / 0.6855 GB, free: 11.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002027/0.162, allocations: 75.38 kB / 0.6855 GB, free: 11.01 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/0.162, allocations: 0 / 0.6855 GB, free: 11.01 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.000344/0.1623, allocations: 149.6 kB / 0.6857 GB, free: 10.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.1624, allocations: 106.8 kB / 0.6858 GB, free: 10.73 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.1626, allocations: 263.1 kB / 0.686 GB, free: 10.46 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.1627, allocations: 25.7 kB / 0.6861 GB, free: 10.43 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.178e-05/0.1628, allocations: 120.1 kB / 0.6862 GB, free: 10.31 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.1628, allocations: 19.66 kB / 0.6862 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.681e-05/0.1628, allocations: 29.7 kB / 0.6862 GB, free: 10.26 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.163, allocations: 326.8 kB / 0.6865 GB, free: 9.93 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.924e-05/0.163, allocations: 27.92 kB / 0.6866 GB, free: 9.902 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.462e-05/0.1631, allocations: 72.27 kB / 0.6866 GB, free: 9.816 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.1633, allocations: 73.89 kB / 0.6867 GB, free: 9.738 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1633, allocations: 0 / 0.6867 GB, free: 9.738 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002131/0.1635, allocations: 121.3 kB / 0.6868 GB, free: 9.613 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.1635, allocations: 4 kB / 0.6868 GB, free: 9.609 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.1635, allocations: 4.031 kB / 0.6868 GB, free: 9.605 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.1636, allocations: 4 kB / 0.6868 GB, free: 9.602 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.624e-05/0.1636, allocations: 11.98 kB / 0.6868 GB, free: 9.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.1637, allocations: 4 kB / 0.6868 GB, free: 9.586 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.104e-05/0.1637, allocations: 7.938 kB / 0.6869 GB, free: 9.578 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.1637, allocations: 4 kB / 0.6869 GB, free: 9.574 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.00012/0.1639, allocations: 143 kB / 0.687 GB, free: 9.426 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.854e-05/0.1639, allocations: 15.81 kB / 0.687 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.058e-05/0.164, allocations: 21.41 kB / 0.687 GB, free: 9.387 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.164, allocations: 4 kB / 0.687 GB, free: 9.383 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.164, allocations: 0 / 0.687 GB, free: 9.383 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.164, allocations: 7.922 kB / 0.687 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.1642, allocations: 221.6 kB / 0.6873 GB, free: 9.109 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1642, allocations: 0 / 0.6873 GB, free: 9.109 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.138e-05/0.1642, allocations: 11.94 kB / 0.6873 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1642, allocations: 0 / 0.6873 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.1642, allocations: 4 kB / 0.6873 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1643, allocations: 0 / 0.6873 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1643, allocations: 0 / 0.6873 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002348/0.1645, allocations: 144.8 kB / 0.6874 GB, free: 8.934 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.475e-05/0.1646, allocations: 96.84 kB / 0.6875 GB, free: 8.82 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.579e-05/0.1646, allocations: 8 kB / 0.6875 GB, free: 8.812 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.128e-05/0.1647, allocations: 0 / 0.6875 GB, free: 8.812 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.334e-05/0.1647, allocations: 11.92 kB / 0.6875 GB, free: 8.801 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.1647, allocations: 4 kB / 0.6875 GB, free: 8.797 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001608/0.1649, allocations: 197.1 kB / 0.6877 GB, free: 8.605 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1649, allocations: 4 kB / 0.6877 GB, free: 8.602 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002592/0.1652, allocations: 31.98 kB / 0.6877 GB, free: 8.57 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.001352/0.1665, allocations: 0.9971 MB / 0.6887 GB, free: 7.707 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002235/0.1668, allocations: 83.89 kB / 0.6888 GB, free: 7.625 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.1668, allocations: 0 / 0.6888 GB, free: 7.625 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.544e-05/0.1669, allocations: 31.98 kB / 0.6888 GB, free: 7.594 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.1672, allocations: 45.62 kB / 0.6889 GB, free: 7.555 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.1692, allocations: 1.958 MB / 0.6908 GB, free: 5.504 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.1695, allocations: 0.7279 MB / 0.6915 GB, free: 4.75 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.457e-05/0.1696, allocations: 21.06 kB / 0.6915 GB, free: 4.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.543e-05/0.1697, allocations: 51.42 kB / 0.6916 GB, free: 4.68 MB / 494.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1697, allocations: 0 / 0.6916 GB, free: 4.68 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02109/0.1908, allocations: 4.616 MB / 0.6961 GB, free: 200 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.048/7.238, allocations: 0 / 0.6961 GB, free: 200 kB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)