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.006788/0.006788, allocations: 99.16 kB / 15.73 MB, free: 6.004 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.001409/0.001409, allocations: 191.6 kB / 16.67 MB, free: 5.93 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7922/0.7922, allocations: 132.2 MB / 422.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 59.44 kB / 0.5809 GB, free: 24.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1381, allocations: 80.22 MB / 0.6592 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.004093/0.1423, allocations: 1.757 MB / 0.6609 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001961/0.1443, allocations: 1.111 MB / 0.662 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.1444, allocations: 0 / 0.662 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000332/0.1448, allocations: 59.67 kB / 0.6621 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002677/0.1451, allocations: 79.67 kB / 0.6621 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006944/0.1458, allocations: 233.9 kB / 0.6624 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002499/0.1461, allocations: 151.6 kB / 0.6625 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.1462, allocations: 21.11 kB / 0.6625 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000134/0.1463, allocations: 63.75 kB / 0.6626 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/0.1465, allocations: 67.69 kB / 0.6626 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.374e-05/0.1465, allocations: 4 kB / 0.6626 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.1467, allocations: 71.95 kB / 0.6627 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.782e-05/0.1468, allocations: 47.83 kB / 0.6628 GB, free: 7.043 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.059e-05/0.1469, allocations: 51.62 kB / 0.6628 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003142/0.1472, allocations: 203.5 kB / 0.663 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.1472, allocations: 4 kB / 0.663 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1472, allocations: 0 / 0.663 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.321e-06/0.1472, allocations: 0 / 0.663 GB, free: 6.789 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.0006856/0.1479, allocations: 492.1 kB / 0.6635 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.1479, allocations: 12.03 kB / 0.6635 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.462e-05/0.148, allocations: 38.73 kB / 0.6635 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.764e-05/0.148, allocations: 24.8 kB / 0.6635 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.1484, allocations: 249 kB / 0.6638 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.1484, allocations: 4.375 kB / 0.6638 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.958e-05/0.1485, allocations: 7.938 kB / 0.6638 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002006/0.1487, allocations: 96.16 kB / 0.6639 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.1487, allocations: 0 / 0.6639 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.1487, allocations: 4 kB / 0.6639 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.1487, allocations: 8 kB / 0.6639 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001057/0.1488, allocations: 27.98 kB / 0.6639 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000539/0.1494, allocations: 356.7 kB / 0.6643 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000229/0.1496, allocations: 94.69 kB / 0.6644 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.477e-05/0.1497, allocations: 32.84 kB / 0.6644 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.1497, allocations: 4 kB / 0.6644 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001666/0.1499, allocations: 79.38 kB / 0.6645 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.673e-06/0.1499, allocations: 0 / 0.6645 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0003607/0.1503, allocations: 145.5 kB / 0.6646 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.1504, allocations: 106.8 kB / 0.6647 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.1506, allocations: 266.7 kB / 0.665 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.1507, allocations: 37.7 kB / 0.665 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.011e-05/0.1507, allocations: 120 kB / 0.6651 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.733e-05/0.1508, allocations: 19.84 kB / 0.6651 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.94e-05/0.1508, allocations: 29.64 kB / 0.6652 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.151, allocations: 326.8 kB / 0.6655 GB, free: 4 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.466e-05/0.151, allocations: 27.98 kB / 0.6655 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.991e-05/0.1511, allocations: 76.2 kB / 0.6656 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.1513, allocations: 65.7 kB / 0.6656 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1513, allocations: 0 / 0.6656 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002265/0.1515, allocations: 125.4 kB / 0.6658 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.1516, allocations: 4 kB / 0.6658 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1516, allocations: 0 / 0.6658 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.1516, allocations: 0 / 0.6658 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.33e-05/0.1517, allocations: 12 kB / 0.6658 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.1517, allocations: 4.031 kB / 0.6658 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.179e-05/0.1518, allocations: 11.92 kB / 0.6658 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.1518, allocations: 8 kB / 0.6658 GB, free: 3.645 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.0001327/0.1519, allocations: 146.6 kB / 0.6659 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.118e-05/0.152, allocations: 19.84 kB / 0.666 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.648e-05/0.152, allocations: 25.42 kB / 0.666 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.152, allocations: 0 / 0.666 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.152, allocations: 4 kB / 0.666 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1521, allocations: 7.938 kB / 0.666 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001874/0.1523, allocations: 221.5 kB / 0.6662 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1523, allocations: 0 / 0.6662 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.344e-05/0.1523, allocations: 4 kB / 0.6662 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1523, allocations: 0 / 0.6662 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.1523, allocations: 7.984 kB / 0.6662 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1524, allocations: 0 / 0.6662 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1524, allocations: 0 / 0.6662 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.1526, allocations: 152.9 kB / 0.6664 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.658e-05/0.1527, allocations: 89.02 kB / 0.6664 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.049e-05/0.1527, allocations: 4 kB / 0.6664 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.587e-05/0.1528, allocations: 8 kB / 0.6665 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/0.1528, allocations: 15.86 kB / 0.6665 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.1528, allocations: 4 kB / 0.6665 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001699/0.153, allocations: 195.2 kB / 0.6667 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.153, allocations: 0 / 0.6667 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002565/0.1533, allocations: 32.12 kB / 0.6667 GB, free: 2.629 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.00134/0.1546, allocations: 0.9893 MB / 0.6677 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000214/0.1549, allocations: 71.89 kB / 0.6677 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.1549, allocations: 4 kB / 0.6677 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.077e-05/0.155, allocations: 40.05 kB / 0.6678 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.1553, allocations: 51.53 kB / 0.6678 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002062/0.1574, allocations: 1.95 MB / 0.6697 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.1576, allocations: 0.7162 MB / 0.6704 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.054e-05/0.1577, allocations: 29.02 kB / 0.6704 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.323e-05/0.1578, allocations: 51.41 kB / 0.6705 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of SimCode: time 3.51e-07/0.1578, allocations: 0 / 0.6705 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.1788, allocations: 4.669 MB / 0.6751 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.562/7.741, allocations: 7.109 kB / 0.6751 GB, free: 10.23 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)