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.001144/0.001144, allocations: 108 kB / 15.61 MB, free: 148 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.001352/0.001352, allocations: 193.9 kB / 16.53 MB, free: 6.664 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.396/1.396, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8028/0.8028, allocations: 132.2 MB / 422.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 61.62 kB / 0.5019 GB, free: 3.801 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4503/0.4522, allocations: 80.21 MB / 0.5802 GB, free: 4.574 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.002974/0.4552, allocations: 1.76 MB / 0.5819 GB, free: 3.348 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.4568, allocations: 1.1 MB / 0.583 GB, free: 2.59 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.927e-05/0.4569, allocations: 1.25 kB / 0.583 GB, free: 2.59 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000313/0.4572, allocations: 61.14 kB / 0.5831 GB, free: 2.562 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.4575, allocations: 79.92 kB / 0.5831 GB, free: 2.523 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006014/0.4581, allocations: 224.1 kB / 0.5833 GB, free: 2.41 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001917/0.4583, allocations: 139.7 kB / 0.5835 GB, free: 2.348 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.4584, allocations: 35.36 kB / 0.5835 GB, free: 2.324 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.561e-05/0.4585, allocations: 61.73 kB / 0.5836 GB, free: 2.297 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.4586, allocations: 63.64 kB / 0.5836 GB, free: 2.273 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.4587, allocations: 10.94 kB / 0.5836 GB, free: 2.27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.4588, allocations: 71.48 kB / 0.5837 GB, free: 2.246 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.158e-05/0.4589, allocations: 33.09 kB / 0.5837 GB, free: 2.234 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.418e-05/0.459, allocations: 63.44 kB / 0.5838 GB, free: 2.188 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002803/0.4593, allocations: 199.5 kB / 0.584 GB, free: 2.109 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.4593, allocations: 0 / 0.584 GB, free: 2.109 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.4593, allocations: 0 / 0.584 GB, free: 2.109 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.4593, allocations: 0.7188 kB / 0.584 GB, free: 2.109 MB / 430.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.0005307/0.4598, allocations: 487 kB / 0.5845 GB, free: 1.645 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.4599, allocations: 10.81 kB / 0.5845 GB, free: 1.645 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.81e-05/0.4599, allocations: 41.62 kB / 0.5845 GB, free: 1.598 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.761e-05/0.46, allocations: 20.59 kB / 0.5845 GB, free: 1.586 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.4602, allocations: 250.4 kB / 0.5848 GB, free: 1.352 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.4602, allocations: 2.156 kB / 0.5848 GB, free: 1.352 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/0.4603, allocations: 11.45 kB / 0.5848 GB, free: 1.344 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.4604, allocations: 98.2 kB / 0.5849 GB, free: 1.27 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.4605, allocations: 0 / 0.5849 GB, free: 1.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.4605, allocations: 5.469 kB / 0.5849 GB, free: 1.266 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.4605, allocations: 5.406 kB / 0.5849 GB, free: 1.262 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001068/0.4606, allocations: 35.22 kB / 0.5849 GB, free: 1.25 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004522/0.4611, allocations: 348.4 kB / 0.5852 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.4613, allocations: 87.36 kB / 0.5853 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.892e-05/0.4614, allocations: 36.38 kB / 0.5854 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.4614, allocations: 5.344 kB / 0.5854 GB, free: 0.875 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002669/0.4617, allocations: 79.62 kB / 0.5854 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 1.663e-06/0.4617, allocations: 0 / 0.5854 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003728/0.4621, allocations: 137.9 kB / 0.5856 GB, free: 0.75 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.4621, allocations: 104.9 kB / 0.5857 GB, free: 0.625 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.4624, allocations: 277.1 kB / 0.5859 GB, free: 472 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.4624, allocations: 27.77 kB / 0.586 GB, free: 440 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.178e-05/0.4625, allocations: 120.6 kB / 0.5861 GB, free: 328 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.689e-05/0.4625, allocations: 20.64 kB / 0.5861 GB, free: 312 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-05/0.4626, allocations: 25.72 kB / 0.5861 GB, free: 292 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.44e-05/0.4627, allocations: 328.8 kB / 0.5864 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.61e-05/0.4628, allocations: 25.56 kB / 0.5865 GB, free: 15.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.4629, allocations: 72.14 kB / 0.5865 GB, free: 15.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001603/0.4631, allocations: 75.05 kB / 0.5866 GB, free: 15.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.4631, allocations: 5.594 kB / 0.5866 GB, free: 15.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002389/0.4633, allocations: 108.7 kB / 0.5867 GB, free: 15.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.4634, allocations: 5.625 kB / 0.5867 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.4634, allocations: 192 / 0.5867 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.4634, allocations: 6.078 kB / 0.5867 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.4635, allocations: 20.42 kB / 0.5867 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.4635, allocations: 1.188 kB / 0.5867 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.171e-05/0.4636, allocations: 13.08 kB / 0.5868 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.4636, allocations: 5.797 kB / 0.5868 GB, free: 15.77 MB / 446.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.0001493/0.4638, allocations: 153.1 kB / 0.5869 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.39e-05/0.4638, allocations: 15.66 kB / 0.5869 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.856e-05/0.4639, allocations: 18.7 kB / 0.5869 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.4639, allocations: 6.016 kB / 0.5869 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.4639, allocations: 5.281 kB / 0.587 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.4639, allocations: 4.594 kB / 0.587 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002249/0.4641, allocations: 226.3 kB / 0.5872 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.4641, allocations: 0.7031 kB / 0.5872 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.094e-05/0.4642, allocations: 5.75 kB / 0.5872 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.4642, allocations: 1.469 kB / 0.5872 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.4642, allocations: 2.062 kB / 0.5872 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.4642, allocations: 1.094 kB / 0.5872 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4642, allocations: 0.7031 kB / 0.5872 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000269/0.4645, allocations: 150.3 kB / 0.5873 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.319e-05/0.4646, allocations: 96.09 kB / 0.5874 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.147e-05/0.4646, allocations: 1.953 kB / 0.5874 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.604e-05/0.4647, allocations: 3.969 kB / 0.5874 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.744e-05/0.4648, allocations: 14.56 kB / 0.5874 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.4648, allocations: 3.906 kB / 0.5874 GB, free: 15.17 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000207/0.465, allocations: 194.6 kB / 0.5876 GB, free: 15.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.465, allocations: 4 kB / 0.5876 GB, free: 15.06 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.4653, allocations: 34.67 kB / 0.5877 GB, free: 15.05 MB / 446.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.001496/0.4668, allocations: 0.9962 MB / 0.5886 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002456/0.467, allocations: 70.7 kB / 0.5887 GB, free: 14.33 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4671, allocations: 4.562 kB / 0.5887 GB, free: 14.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.837e-05/0.4672, allocations: 33.58 kB / 0.5887 GB, free: 14.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.4675, allocations: 38.94 kB / 0.5888 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.4699, allocations: 1.941 MB / 0.5907 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/0.4702, allocations: 0.7285 MB / 0.5914 GB, free: 12.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000105/0.4703, allocations: 26.95 kB / 0.5914 GB, free: 12.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.423e-05/0.4705, allocations: 47.72 kB / 0.5915 GB, free: 12.16 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4705, allocations: 0 / 0.5915 GB, free: 12.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02306/0.4935, allocations: 4.584 MB / 0.5959 GB, free: 10.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.405/7.899, allocations: 12.53 kB / 0.5959 GB, free: 10.87 MB / 446.1 MB (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)