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.005564/0.005564, allocations: 99.19 kB / 15.73 MB, free: 6.031 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.001371/0.001371, allocations: 194.8 kB / 16.67 MB, free: 5.961 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.02/1.02, allocations: 135.5 MB / 426.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 71.88 kB / 0.5858 GB, free: 3.199 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4433/0.4453, allocations: 81.02 MB / 0.6649 GB, free: 6.852 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.002631/0.4479, allocations: 1.766 MB / 0.6666 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001424/0.4494, allocations: 1.102 MB / 0.6677 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.355e-05/0.4495, allocations: 1.188 kB / 0.6677 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002931/0.4498, allocations: 55.23 kB / 0.6677 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002335/0.45, allocations: 81.75 kB / 0.6678 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005446/0.4506, allocations: 228.1 kB / 0.668 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001666/0.4508, allocations: 144.7 kB / 0.6682 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.4509, allocations: 28.86 kB / 0.6682 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.142e-05/0.451, allocations: 55.66 kB / 0.6682 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.921e-05/0.4511, allocations: 67.84 kB / 0.6683 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.4511, allocations: 6.719 kB / 0.6683 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001458/0.4512, allocations: 72.31 kB / 0.6684 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.98e-05/0.4513, allocations: 46.22 kB / 0.6684 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.686e-05/0.4514, allocations: 60.28 kB / 0.6685 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002474/0.4516, allocations: 200.2 kB / 0.6687 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4517, allocations: 0 / 0.6687 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.4517, allocations: 1.062 kB / 0.6687 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.786e-06/0.4517, allocations: 0 / 0.6687 GB, free: 3.961 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.0004967/0.4522, allocations: 0.4905 MB / 0.6692 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.4522, allocations: 10.62 kB / 0.6692 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.255e-05/0.4522, allocations: 35.91 kB / 0.6692 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.4523, allocations: 20.45 kB / 0.6692 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/0.4526, allocations: 255.6 kB / 0.6695 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.4526, allocations: 7.125 kB / 0.6695 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.4526, allocations: 7.781 kB / 0.6695 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.4528, allocations: 91.7 kB / 0.6696 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/0.4528, allocations: 0 / 0.6696 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.4528, allocations: 8.688 kB / 0.6696 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.4529, allocations: 2.688 kB / 0.6696 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.453, allocations: 33.53 kB / 0.6696 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004257/0.4534, allocations: 351.7 kB / 0.6699 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000206/0.4536, allocations: 86.12 kB / 0.67 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.902e-05/0.4537, allocations: 34.59 kB / 0.6701 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.4537, allocations: 5.109 kB / 0.6701 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001645/0.4539, allocations: 88.42 kB / 0.6701 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.874e-06/0.4539, allocations: 0 / 0.6701 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0003667/0.4543, allocations: 139.8 kB / 0.6703 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.4543, allocations: 108.2 kB / 0.6704 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.4546, allocations: 264.5 kB / 0.6706 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.4546, allocations: 39.2 kB / 0.6707 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.354e-05/0.4546, allocations: 115.2 kB / 0.6708 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.4547, allocations: 23.61 kB / 0.6708 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.273e-05/0.4547, allocations: 26.86 kB / 0.6708 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.265e-05/0.4548, allocations: 331.9 kB / 0.6711 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.901e-05/0.4548, allocations: 26.2 kB / 0.6712 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.914e-05/0.4549, allocations: 81 kB / 0.6712 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.4551, allocations: 70.22 kB / 0.6713 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.4551, allocations: 0 / 0.6713 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002082/0.4553, allocations: 119.8 kB / 0.6714 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.4553, allocations: 5.281 kB / 0.6714 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.4553, allocations: 1.469 kB / 0.6714 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.4554, allocations: 0 / 0.6714 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.152e-05/0.4555, allocations: 19.83 kB / 0.6715 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.4555, allocations: 0 / 0.6715 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.114e-05/0.4555, allocations: 8 kB / 0.6715 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.4555, allocations: 1.5 kB / 0.6715 GB, free: 1.402 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.0001082/0.4557, allocations: 146.5 kB / 0.6716 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.004e-05/0.4557, allocations: 14.69 kB / 0.6716 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.488e-05/0.4557, allocations: 20.7 kB / 0.6716 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.4558, allocations: 1.312 kB / 0.6716 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4558, allocations: 5.5 kB / 0.6716 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.4558, allocations: 3.938 kB / 0.6716 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001568/0.4559, allocations: 226.4 kB / 0.6719 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.456, allocations: 0 / 0.6719 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.101e-05/0.456, allocations: 9.172 kB / 0.6719 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.456, allocations: 0 / 0.6719 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.456, allocations: 2.344 kB / 0.6719 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.456, allocations: 0 / 0.6719 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.456, allocations: 0 / 0.6719 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002291/0.4563, allocations: 151.7 kB / 0.672 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.771e-05/0.4563, allocations: 91.58 kB / 0.6721 GB, free: 0.7734 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.743e-05/0.4563, allocations: 5.438 kB / 0.6721 GB, free: 0.7695 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.375e-05/0.4564, allocations: 5.328 kB / 0.6721 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.045e-05/0.4565, allocations: 20.23 kB / 0.6721 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.4565, allocations: 3.438 kB / 0.6721 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001524/0.4566, allocations: 191.3 kB / 0.6723 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4566, allocations: 0 / 0.6723 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002547/0.4569, allocations: 41.78 kB / 0.6724 GB, free: 0.6133 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.001811/0.4587, allocations: 0.9851 MB / 0.6733 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002251/0.459, allocations: 73.11 kB / 0.6734 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.459, allocations: 0 / 0.6734 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 9.76e-05/0.4591, allocations: 41.17 kB / 0.6734 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.4594, allocations: 45.17 kB / 0.6735 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.4617, allocations: 1.948 MB / 0.6754 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.4621, allocations: 0.7221 MB / 0.6761 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.876e-05/0.4622, allocations: 35.42 kB / 0.6761 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.034e-05/0.4623, allocations: 49.83 kB / 0.6762 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of SimCode: time 3.21e-07/0.4623, allocations: 0 / 0.6762 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0253/0.4876, allocations: 4.683 MB / 0.6807 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.272/8.759, allocations: 15.11 kB / 0.6808 GB, free: 11.04 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)