Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IDEAS_IDEAS_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.005683/0.005683, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001283/0.001283, allocations: 192.8 kB / 16.67 MB, free: 5.875 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8969/0.8969, allocations: 132.2 MB / 422.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 63.23 kB / 0.5809 GB, free: 24.15 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1617, allocations: 80.21 MB / 0.6592 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.003288/0.165, allocations: 1.767 MB / 0.6609 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001868/0.1669, allocations: 1.104 MB / 0.662 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.175e-05/0.167, allocations: 0 / 0.662 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003045/0.1673, allocations: 63.66 kB / 0.6621 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002396/0.1676, allocations: 75.67 kB / 0.6621 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006209/0.1682, allocations: 237.2 kB / 0.6624 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000218/0.1684, allocations: 147.6 kB / 0.6625 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.791e-05/0.1685, allocations: 21.11 kB / 0.6625 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.1686, allocations: 63.7 kB / 0.6626 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001182/0.1688, allocations: 59.77 kB / 0.6626 GB, free: 7.188 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.094e-05/0.1688, allocations: 4 kB / 0.6626 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.169, allocations: 83.88 kB / 0.6627 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.652e-05/0.1691, allocations: 39.83 kB / 0.6628 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.853e-05/0.1692, allocations: 55.67 kB / 0.6628 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002978/0.1695, allocations: 203.4 kB / 0.663 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1695, allocations: 4 kB / 0.663 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.232e-06/0.1695, allocations: 0 / 0.663 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.1695, allocations: 0 / 0.663 GB, free: 6.805 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.0006883/0.1702, allocations: 492.1 kB / 0.6635 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.1702, allocations: 12.03 kB / 0.6635 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.837e-05/0.1703, allocations: 38.73 kB / 0.6635 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.734e-05/0.1703, allocations: 20.8 kB / 0.6635 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003738/0.1707, allocations: 249 kB / 0.6638 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.1707, allocations: 4.375 kB / 0.6638 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.1708, allocations: 15.86 kB / 0.6638 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002123/0.171, allocations: 92.23 kB / 0.6639 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.171, allocations: 0 / 0.6639 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.171, allocations: 4 kB / 0.6639 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.171, allocations: 0 / 0.6639 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001079/0.1711, allocations: 31.92 kB / 0.6639 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005158/0.1717, allocations: 356.7 kB / 0.6643 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002374/0.1719, allocations: 102.7 kB / 0.6644 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.958e-05/0.172, allocations: 32.84 kB / 0.6644 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.172, allocations: 3.984 kB / 0.6644 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000189/0.1722, allocations: 79.38 kB / 0.6645 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.1722, allocations: 0 / 0.6645 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.000366/0.1726, allocations: 141.5 kB / 0.6646 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.858e-05/0.1727, allocations: 106.8 kB / 0.6647 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.173, allocations: 266.7 kB / 0.665 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.173, allocations: 29.7 kB / 0.665 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.702e-05/0.1731, allocations: 124 kB / 0.6651 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.863e-05/0.1732, allocations: 23.88 kB / 0.6651 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.085e-05/0.1732, allocations: 25.72 kB / 0.6652 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001699/0.1734, allocations: 334.8 kB / 0.6655 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.829e-05/0.1735, allocations: 31.92 kB / 0.6655 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.1736, allocations: 60.28 kB / 0.6656 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.1738, allocations: 81.92 kB / 0.6656 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1738, allocations: 0 / 0.6656 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002384/0.174, allocations: 113.5 kB / 0.6658 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.1741, allocations: 4 kB / 0.6658 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.1741, allocations: 0 / 0.6658 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.1741, allocations: 0 / 0.6658 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.554e-05/0.1742, allocations: 19.92 kB / 0.6658 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.1742, allocations: 0 / 0.6658 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.649e-05/0.1743, allocations: 11.94 kB / 0.6658 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.1743, allocations: 8.031 kB / 0.6658 GB, free: 3.66 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.0001501/0.1744, allocations: 154.5 kB / 0.6659 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.023e-05/0.1745, allocations: 15.91 kB / 0.666 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.906e-05/0.1745, allocations: 21.39 kB / 0.666 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.1746, allocations: 0 / 0.666 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1746, allocations: 4 kB / 0.666 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.1746, allocations: 3.938 kB / 0.666 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002225/0.1748, allocations: 217.5 kB / 0.6662 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1748, allocations: 0 / 0.6662 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.452e-05/0.1749, allocations: 15.98 kB / 0.6662 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1749, allocations: 0 / 0.6662 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.1749, allocations: 4 kB / 0.6662 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.636e-06/0.1749, allocations: 0 / 0.6662 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1749, allocations: 3.938 kB / 0.6662 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002749/0.1752, allocations: 148.9 kB / 0.6664 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.225e-05/0.1753, allocations: 89.02 kB / 0.6664 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.011e-05/0.1753, allocations: 8 kB / 0.6665 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.479e-05/0.1754, allocations: 7.984 kB / 0.6665 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.842e-05/0.1754, allocations: 7.938 kB / 0.6665 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.1754, allocations: 11.98 kB / 0.6665 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001953/0.1756, allocations: 187.2 kB / 0.6667 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1756, allocations: 0 / 0.6667 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002497/0.1759, allocations: 31.94 kB / 0.6667 GB, free: 2.648 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.00196/0.1779, allocations: 0.9951 MB / 0.6677 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002343/0.1781, allocations: 71.95 kB / 0.6677 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1781, allocations: 7.938 kB / 0.6677 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.428e-05/0.1782, allocations: 31.98 kB / 0.6678 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.1785, allocations: 48.06 kB / 0.6678 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.1809, allocations: 1.954 MB / 0.6697 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.1813, allocations: 0.724 MB / 0.6704 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.225e-05/0.1814, allocations: 25.06 kB / 0.6705 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.906e-05/0.1815, allocations: 47.42 kB / 0.6705 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of SimCode: time 2.7e-07/0.1815, allocations: 3.938 kB / 0.6705 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.2062, allocations: 4.663 MB / 0.6751 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.086/8.292, allocations: 5.562 kB / 0.6751 GB, free: 10.25 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)