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.005075/0.005075, allocations: 102.4 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.001292/0.001292, allocations: 197.2 kB / 16.67 MB, free: 5.969 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9991/0.9991, allocations: 135.1 MB / 425.7 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 67.89 kB / 0.5851 GB, free: 3.859 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4632/0.4646, allocations: 80.91 MB / 0.6642 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.002693/0.4673, allocations: 1.773 MB / 0.6659 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001454/0.4688, allocations: 1.106 MB / 0.667 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.4689, allocations: 1.031 kB / 0.667 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003079/0.4692, allocations: 54.23 kB / 0.667 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002264/0.4695, allocations: 79.41 kB / 0.6671 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005488/0.47, allocations: 232 kB / 0.6673 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.4703, allocations: 141.1 kB / 0.6674 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.4704, allocations: 24.98 kB / 0.6675 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.109e-05/0.4705, allocations: 64.92 kB / 0.6675 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.958e-05/0.4706, allocations: 63.06 kB / 0.6676 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.095e-05/0.4706, allocations: 6.125 kB / 0.6676 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.4708, allocations: 72.7 kB / 0.6677 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.702e-05/0.4708, allocations: 39.25 kB / 0.6677 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.374e-05/0.4709, allocations: 63.12 kB / 0.6678 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002453/0.4712, allocations: 202.6 kB / 0.668 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.4712, allocations: 4 kB / 0.668 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.392e-06/0.4712, allocations: 0 / 0.668 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.033e-05/0.4712, allocations: 0 / 0.668 GB, free: 4.402 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.0005784/0.4718, allocations: 487.2 kB / 0.6684 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.4718, allocations: 9.688 kB / 0.6684 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.716e-05/0.4718, allocations: 40.03 kB / 0.6685 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.685e-05/0.4719, allocations: 16.94 kB / 0.6685 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.4722, allocations: 252.9 kB / 0.6687 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.4722, allocations: 5.594 kB / 0.6687 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.349e-05/0.4722, allocations: 7.094 kB / 0.6687 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.4724, allocations: 96.11 kB / 0.6688 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.4724, allocations: 3.984 kB / 0.6688 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.4725, allocations: 5.328 kB / 0.6688 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.4725, allocations: 3 kB / 0.6688 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001055/0.4726, allocations: 28.64 kB / 0.6689 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004812/0.4731, allocations: 360.5 kB / 0.6692 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/0.4733, allocations: 85.33 kB / 0.6693 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.179e-05/0.4734, allocations: 30.84 kB / 0.6693 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.4734, allocations: 5.703 kB / 0.6693 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001669/0.4736, allocations: 91.2 kB / 0.6694 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.643e-06/0.4736, allocations: 0.9375 kB / 0.6694 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.000365/0.474, allocations: 139.1 kB / 0.6696 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.4741, allocations: 105.1 kB / 0.6697 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.4743, allocations: 271.9 kB / 0.6699 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.4743, allocations: 26.86 kB / 0.6699 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.492e-05/0.4744, allocations: 123.9 kB / 0.6701 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.4744, allocations: 19.66 kB / 0.6701 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-05/0.4744, allocations: 39.03 kB / 0.6701 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.85e-05/0.4745, allocations: 328.3 kB / 0.6704 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.716e-05/0.4746, allocations: 25.02 kB / 0.6705 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.42e-05/0.4747, allocations: 68.92 kB / 0.6705 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.4748, allocations: 73.73 kB / 0.6706 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.4748, allocations: 0 / 0.6706 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001984/0.475, allocations: 112.2 kB / 0.6707 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.475, allocations: 5.344 kB / 0.6707 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.475, allocations: 1.156 kB / 0.6707 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.4751, allocations: 5.422 kB / 0.6707 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.617e-05/0.4752, allocations: 10.12 kB / 0.6707 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.4752, allocations: 1.156 kB / 0.6707 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.122e-05/0.4753, allocations: 10.66 kB / 0.6707 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.4753, allocations: 10.67 kB / 0.6707 GB, free: 1.859 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.0001013/0.4754, allocations: 147.3 kB / 0.6709 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.791e-05/0.4754, allocations: 15.19 kB / 0.6709 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.341e-05/0.4755, allocations: 16.66 kB / 0.6709 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.4755, allocations: 5.047 kB / 0.6709 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.4755, allocations: 1.094 kB / 0.6709 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4755, allocations: 3.938 kB / 0.6709 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001561/0.4756, allocations: 222.3 kB / 0.6711 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.4757, allocations: 1.344 kB / 0.6711 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.812e-05/0.4757, allocations: 12.28 kB / 0.6711 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.4757, allocations: 1.25 kB / 0.6711 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.4757, allocations: 1.25 kB / 0.6711 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.4757, allocations: 3.984 kB / 0.6712 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4757, allocations: 0 / 0.6712 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000218/0.476, allocations: 135.5 kB / 0.6713 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.181e-05/0.476, allocations: 99.28 kB / 0.6714 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.476, allocations: 5.375 kB / 0.6714 GB, free: 1.234 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.98e-05/0.4761, allocations: 10.16 kB / 0.6714 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.4762, allocations: 15.81 kB / 0.6714 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.4762, allocations: 6.562 kB / 0.6714 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001434/0.4763, allocations: 192.3 kB / 0.6716 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4763, allocations: 192 / 0.6716 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002543/0.4766, allocations: 34.09 kB / 0.6716 GB, free: 1.082 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.001294/0.4779, allocations: 0.9951 MB / 0.6726 GB, free: 340 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002318/0.4781, allocations: 71.72 kB / 0.6727 GB, free: 308 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4782, allocations: 1.656 kB / 0.6727 GB, free: 308 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.589e-05/0.4782, allocations: 33.05 kB / 0.6727 GB, free: 296 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.4785, allocations: 42 kB / 0.6727 GB, free: 272 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/0.4808, allocations: 1.972 MB / 0.6747 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.4812, allocations: 0.7222 MB / 0.6754 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.535e-05/0.4812, allocations: 28.05 kB / 0.6754 GB, free: 14 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.618e-05/0.4814, allocations: 44.98 kB / 0.6754 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of SimCode: time 3.71e-07/0.4814, allocations: 0 / 0.6754 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02311/0.5045, allocations: 4.727 MB / 0.6801 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.698/8.203, allocations: 13.98 kB / 0.6801 GB, free: 11.46 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegerReplicator.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)