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.006264/0.006264, allocations: 95.36 kB / 15.73 MB, free: 6.039 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.001437/0.001437, allocations: 198.2 kB / 16.68 MB, free: 5.969 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002122/0.002122, allocations: 283.2 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9484/0.9484, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001755/0.001755, allocations: 91.86 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1625, allocations: 86.97 MB / 0.7659 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003215/0.1658, allocations: 1.775 MB / 0.7676 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1676, allocations: 1.104 MB / 0.7687 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.1677, allocations: 7.938 kB / 0.7687 GB, free: 6 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0003007/0.168, allocations: 55.73 kB / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002626/0.1683, allocations: 79.66 kB / 0.7689 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006554/0.169, allocations: 222.5 kB / 0.7691 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002405/0.1692, allocations: 147.7 kB / 0.7692 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.1693, allocations: 29.09 kB / 0.7692 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.1695, allocations: 67.69 kB / 0.7693 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.1696, allocations: 63.75 kB / 0.7694 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.029e-05/0.1696, allocations: 4 kB / 0.7694 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.1698, allocations: 67.97 kB / 0.7694 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.55e-05/0.1699, allocations: 43.77 kB / 0.7695 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.743e-05/0.1699, allocations: 55.67 kB / 0.7695 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.1702, allocations: 203.5 kB / 0.7697 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1703, allocations: 4 kB / 0.7697 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.082e-06/0.1703, allocations: 4 kB / 0.7697 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.1703, allocations: 0 / 0.7697 GB, free: 4.977 MB / 0.5606 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.0006688/0.1709, allocations: 0.4921 MB / 0.7702 GB, free: 4.43 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.171, allocations: 12.03 kB / 0.7702 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.484e-05/0.171, allocations: 34.75 kB / 0.7702 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.199e-05/0.1711, allocations: 20.78 kB / 0.7703 GB, free: 4.355 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.1714, allocations: 257.7 kB / 0.7705 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.1715, allocations: 4.375 kB / 0.7705 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.819e-05/0.1715, allocations: 7.938 kB / 0.7705 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.1717, allocations: 96.17 kB / 0.7706 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.1717, allocations: 0 / 0.7706 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.1717, allocations: 0 / 0.7706 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.942e-05/0.1718, allocations: 4 kB / 0.7706 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/0.1719, allocations: 31.97 kB / 0.7707 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005019/0.1724, allocations: 364.6 kB / 0.771 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/0.1726, allocations: 86.66 kB / 0.7711 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.217e-05/0.1727, allocations: 32.84 kB / 0.7711 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.1727, allocations: 0 / 0.7711 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001797/0.1729, allocations: 87.41 kB / 0.7712 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.543e-06/0.1729, allocations: 0 / 0.7712 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0003775/0.1733, allocations: 141.5 kB / 0.7713 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.1734, allocations: 102.8 kB / 0.7714 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/0.1736, allocations: 263.1 kB / 0.7717 GB, free: 2.738 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.1737, allocations: 29.7 kB / 0.7717 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.08e-05/0.1737, allocations: 116.1 kB / 0.7718 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.814e-05/0.1738, allocations: 27.78 kB / 0.7718 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.809e-05/0.1738, allocations: 33.7 kB / 0.7719 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.1739, allocations: 322.8 kB / 0.7722 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.623e-05/0.174, allocations: 31.92 kB / 0.7722 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.1741, allocations: 72.27 kB / 0.7723 GB, free: 2.078 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.1743, allocations: 69.7 kB / 0.7724 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1743, allocations: 0 / 0.7724 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002261/0.1745, allocations: 113.5 kB / 0.7725 GB, free: 1.887 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.1745, allocations: 4 kB / 0.7725 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.1746, allocations: 192 / 0.7725 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.1746, allocations: 0 / 0.7725 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.167e-05/0.1747, allocations: 19.92 kB / 0.7725 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.1747, allocations: 0 / 0.7725 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.996e-05/0.1748, allocations: 15.88 kB / 0.7725 GB, free: 1.848 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.1748, allocations: 7.984 kB / 0.7725 GB, free: 1.84 MB / 0.5606 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.0001152/0.1749, allocations: 145.3 kB / 0.7726 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.301e-05/0.1749, allocations: 19.89 kB / 0.7727 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.921e-05/0.175, allocations: 21.41 kB / 0.7727 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.175, allocations: 0 / 0.7727 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.175, allocations: 0 / 0.7727 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.175, allocations: 7.938 kB / 0.7727 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/0.1752, allocations: 221.5 kB / 0.7729 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1752, allocations: 0 / 0.7729 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.144e-05/0.1753, allocations: 4 kB / 0.7729 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.1753, allocations: 4 kB / 0.7729 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.1753, allocations: 8 kB / 0.7729 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1753, allocations: 0 / 0.7729 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1753, allocations: 0 / 0.7729 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002504/0.1756, allocations: 153.2 kB / 0.7731 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.354e-05/0.1756, allocations: 89.02 kB / 0.7731 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.966e-05/0.1757, allocations: 3.984 kB / 0.7732 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.032e-05/0.1757, allocations: 12 kB / 0.7732 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.552e-05/0.1758, allocations: 11.97 kB / 0.7732 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.1758, allocations: 7.984 kB / 0.7732 GB, free: 1.051 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001747/0.176, allocations: 197.1 kB / 0.7734 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.383e-06/0.176, allocations: 0 / 0.7734 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002463/0.1762, allocations: 39.86 kB / 0.7734 GB, free: 0.8203 MB / 0.5606 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.3489/0.5252, allocations: 0.9897 MB / 0.7744 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003584/0.5256, allocations: 62.38 kB / 0.7744 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5256, allocations: 1.5 kB / 0.7744 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.5257, allocations: 40.62 kB / 0.7745 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003836/0.5261, allocations: 50.92 kB / 0.7745 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.5285, allocations: 1.941 MB / 0.7764 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000206/0.5287, allocations: 0.7228 MB / 0.7771 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001005/0.5288, allocations: 25.34 kB / 0.7771 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.029e-05/0.5289, allocations: 49.59 kB / 0.7772 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of SimCode: time 4.51e-07/0.5289, allocations: 0 / 0.7772 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02257/0.5515, allocations: 4.708 MB / 0.7818 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.783/8.334, allocations: 14.75 kB / 0.7818 GB, free: 12.32 MB / 0.5606 GB (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)