Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IDEAS_dev_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.006385/0.006385, allocations: 100.3 kB / 15.73 MB, free: 6.484 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.001231/0.001231, allocations: 189 kB / 16.68 MB, free: 6.367 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.436/1.436, 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/IDEAS 3.0.0-master/package.mo): time 1.007/1.007, allocations: 135.1 MB / 425.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 59.91 kB / 0.5852 GB, free: 3.852 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4448/0.4462, allocations: 80.92 MB / 0.6642 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.002526/0.4488, allocations: 1.77 MB / 0.6659 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001373/0.4502, allocations: 1.097 MB / 0.667 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.694e-05/0.4503, allocations: 1.5 kB / 0.667 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002742/0.4506, allocations: 59.23 kB / 0.667 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002192/0.4508, allocations: 78.39 kB / 0.6671 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005876/0.4514, allocations: 228.3 kB / 0.6673 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001924/0.4516, allocations: 150 kB / 0.6675 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.4518, allocations: 28.19 kB / 0.6675 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.454e-05/0.4519, allocations: 60.77 kB / 0.6676 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.452, allocations: 63.47 kB / 0.6676 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.131e-05/0.452, allocations: 6.406 kB / 0.6676 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.4522, allocations: 72.88 kB / 0.6677 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.352e-05/0.4522, allocations: 42.41 kB / 0.6677 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.525e-05/0.4523, allocations: 59.95 kB / 0.6678 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.4526, allocations: 196.6 kB / 0.668 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.4526, allocations: 0 / 0.668 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.353e-06/0.4526, allocations: 4 kB / 0.668 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.4526, allocations: 1.344 kB / 0.668 GB, free: 4.359 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.0006127/0.4533, allocations: 0.4904 MB / 0.6685 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.4533, allocations: 9.344 kB / 0.6685 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.984e-05/0.4533, allocations: 41.02 kB / 0.6685 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.412e-05/0.4534, allocations: 20.64 kB / 0.6685 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000304/0.4537, allocations: 243.9 kB / 0.6688 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.4537, allocations: 6.875 kB / 0.6688 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.817e-05/0.4538, allocations: 10.47 kB / 0.6688 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001854/0.4539, allocations: 99.84 kB / 0.6689 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.454, allocations: 0 / 0.6689 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.454, allocations: 5.188 kB / 0.6689 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.454, allocations: 2.562 kB / 0.6689 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001053/0.4541, allocations: 33.5 kB / 0.6689 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004654/0.4546, allocations: 356.9 kB / 0.6692 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/0.4548, allocations: 83.97 kB / 0.6693 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.739e-05/0.4549, allocations: 31.78 kB / 0.6694 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.4549, allocations: 1.219 kB / 0.6694 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001702/0.4551, allocations: 91.62 kB / 0.6694 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 2.074e-06/0.4551, allocations: 1.156 kB / 0.6694 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0003256/0.4554, allocations: 143 kB / 0.6696 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.034e-05/0.4555, allocations: 108.1 kB / 0.6697 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.4557, allocations: 265.1 kB / 0.6699 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.4557, allocations: 29.7 kB / 0.67 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.959e-05/0.4558, allocations: 116.4 kB / 0.6701 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.4558, allocations: 23.55 kB / 0.6701 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.092e-05/0.4558, allocations: 30.66 kB / 0.6701 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.552e-05/0.4559, allocations: 332.1 kB / 0.6704 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.834e-05/0.456, allocations: 26.23 kB / 0.6705 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.315e-05/0.4561, allocations: 65.5 kB / 0.6705 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/0.4562, allocations: 72.98 kB / 0.6706 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4562, allocations: 4 kB / 0.6706 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001985/0.4564, allocations: 120.6 kB / 0.6707 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.4564, allocations: 5.5 kB / 0.6707 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.4564, allocations: 5.625 kB / 0.6707 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.4565, allocations: 0 / 0.6707 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.147e-05/0.4566, allocations: 14.33 kB / 0.6707 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.4566, allocations: 5.406 kB / 0.6708 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.304e-05/0.4566, allocations: 7.094 kB / 0.6708 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.238e-06/0.4567, allocations: 6.875 kB / 0.6708 GB, free: 1.801 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 9.356e-05/0.4568, allocations: 141 kB / 0.6709 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.819e-05/0.4568, allocations: 19.92 kB / 0.6709 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.984e-05/0.4568, allocations: 24.28 kB / 0.6709 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.4568, allocations: 1.25 kB / 0.6709 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.4569, allocations: 1.344 kB / 0.6709 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.4569, allocations: 3.938 kB / 0.6709 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.457, allocations: 230.8 kB / 0.6712 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.457, allocations: 0 / 0.6712 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.052e-05/0.457, allocations: 8.828 kB / 0.6712 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.4571, allocations: 5.188 kB / 0.6712 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.4571, allocations: 1.438 kB / 0.6712 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.4571, allocations: 0 / 0.6712 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.4571, allocations: 3.938 kB / 0.6712 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002162/0.4573, allocations: 147.7 kB / 0.6713 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.024e-05/0.4574, allocations: 90.48 kB / 0.6714 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.4574, allocations: 2.188 kB / 0.6714 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.823e-05/0.4575, allocations: 14.73 kB / 0.6714 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.125e-05/0.4575, allocations: 11.8 kB / 0.6714 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.4575, allocations: 2.281 kB / 0.6714 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001656/0.4577, allocations: 191.6 kB / 0.6716 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4577, allocations: 1.531 kB / 0.6716 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002564/0.458, allocations: 36.61 kB / 0.6717 GB, free: 1.012 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.00132/0.4593, allocations: 0.9914 MB / 0.6726 GB, free: 272 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002179/0.4595, allocations: 68.52 kB / 0.6727 GB, free: 244 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4595, allocations: 0 / 0.6727 GB, free: 244 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.963e-05/0.4596, allocations: 42.48 kB / 0.6727 GB, free: 224 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.4599, allocations: 42.23 kB / 0.6728 GB, free: 204 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002218/0.4622, allocations: 1.955 MB / 0.6747 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.4625, allocations: 0.7226 MB / 0.6754 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.388e-05/0.4626, allocations: 23.41 kB / 0.6754 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.358e-05/0.4626, allocations: 50.23 kB / 0.6755 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of SimCode: time 2.8e-07/0.4627, allocations: 0 / 0.6755 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.4849, allocations: 4.688 MB / 0.68 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.804/8.289, allocations: 15.48 kB / 0.6801 GB, free: 11.43 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegerReplicator.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Examples_IntegerReplicator.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)