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.0007849/0.0007849, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.0008252/0.0008252, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7369/0.7369, allocations: 132.3 MB / 423.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003014, allocations: 12 kB / 0.5035 GB, free: 4.148 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3946/0.3949, allocations: 81.57 MB / 0.5831 GB, free: 4.004 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.001818/0.3967, allocations: 1.455 MB / 0.5846 GB, free: 2.953 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.3981, allocations: 1.013 MB / 0.5856 GB, free: 2.254 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.637e-05/0.3982, allocations: 4.844 kB / 0.5856 GB, free: 2.25 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000266/0.3985, allocations: 51.39 kB / 0.5856 GB, free: 2.234 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001767/0.3987, allocations: 65.89 kB / 0.5857 GB, free: 2.203 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005072/0.3992, allocations: 195.2 kB / 0.5859 GB, free: 2.109 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.3994, allocations: 123.3 kB / 0.586 GB, free: 2.055 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.85e-05/0.3995, allocations: 20.22 kB / 0.586 GB, free: 2.043 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.218e-05/0.3996, allocations: 52.92 kB / 0.586 GB, free: 2.023 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.522e-05/0.3997, allocations: 54.09 kB / 0.5861 GB, free: 2.004 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.714e-05/0.3997, allocations: 3.125 kB / 0.5861 GB, free: 2.004 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.3998, allocations: 55.16 kB / 0.5862 GB, free: 1.988 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.659e-05/0.3999, allocations: 37.91 kB / 0.5862 GB, free: 1.973 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.08e-05/0.4, allocations: 44.8 kB / 0.5862 GB, free: 1.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002188/0.4002, allocations: 147.3 kB / 0.5864 GB, free: 1.891 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.4002, allocations: 1.219 kB / 0.5864 GB, free: 1.891 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4002, allocations: 0 / 0.5864 GB, free: 1.891 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.4002, allocations: 1.125 kB / 0.5864 GB, free: 1.891 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.0004956/0.4007, allocations: 477.5 kB / 0.5868 GB, free: 1.426 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.4008, allocations: 8.906 kB / 0.5868 GB, free: 1.426 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.4008, allocations: 37.33 kB / 0.5869 GB, free: 1.383 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.143e-05/0.4008, allocations: 24.3 kB / 0.5869 GB, free: 1.367 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002351/0.4011, allocations: 240.7 kB / 0.5871 GB, free: 1.137 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.4011, allocations: 2.562 kB / 0.5871 GB, free: 1.137 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.4011, allocations: 3.75 kB / 0.5871 GB, free: 1.137 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.4013, allocations: 97.11 kB / 0.5872 GB, free: 1.062 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.4013, allocations: 0 / 0.5872 GB, free: 1.062 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.4014, allocations: 0.6562 kB / 0.5872 GB, free: 1.062 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.4014, allocations: 7.016 kB / 0.5872 GB, free: 1.059 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001173/0.4015, allocations: 32 kB / 0.5873 GB, free: 1.051 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004315/0.4019, allocations: 359 kB / 0.5876 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002023/0.4022, allocations: 83.52 kB / 0.5877 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.165e-05/0.4022, allocations: 35.28 kB / 0.5877 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.4023, allocations: 5.094 kB / 0.5877 GB, free: 0.668 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002017/0.4025, allocations: 83.5 kB / 0.5878 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 1.663e-06/0.4025, allocations: 1.344 kB / 0.5878 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003308/0.4028, allocations: 144.1 kB / 0.5879 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.4029, allocations: 105.2 kB / 0.588 GB, free: 416 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002604/0.4031, allocations: 266 kB / 0.5883 GB, free: 260 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.4032, allocations: 26.8 kB / 0.5883 GB, free: 228 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.607e-05/0.4032, allocations: 124 kB / 0.5884 GB, free: 112 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.4032, allocations: 16.48 kB / 0.5885 GB, free: 100 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-06/0.4033, allocations: 4.719 kB / 0.5885 GB, free: 96 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4034, allocations: 329.8 kB / 0.5888 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.199e-05/0.4035, allocations: 25.2 kB / 0.5888 GB, free: 15.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.4036, allocations: 70.78 kB / 0.5889 GB, free: 15.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.003e-05/0.4037, allocations: 31.33 kB / 0.5889 GB, free: 15.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4037, allocations: 1.594 kB / 0.5889 GB, free: 15.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000214/0.4039, allocations: 115.9 kB / 0.589 GB, free: 15.63 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.4039, allocations: 9.469 kB / 0.589 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.4039, allocations: 5.219 kB / 0.589 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.404, allocations: 4.984 kB / 0.589 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-05/0.4041, allocations: 16.81 kB / 0.589 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.4041, allocations: 0.875 kB / 0.589 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.31e-05/0.4041, allocations: 5.672 kB / 0.5891 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.4042, allocations: 2.688 kB / 0.5891 GB, free: 15.62 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 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001389/0.4043, allocations: 148.7 kB / 0.5892 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.834e-05/0.4043, allocations: 14.89 kB / 0.5892 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.331e-05/0.4044, allocations: 19.53 kB / 0.5892 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.4044, allocations: 6.406 kB / 0.5892 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4044, allocations: 4.047 kB / 0.5892 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.4044, allocations: 5.547 kB / 0.5892 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002193/0.4046, allocations: 226.5 kB / 0.5895 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4047, allocations: 0.9062 kB / 0.5895 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.018e-05/0.4047, allocations: 6.047 kB / 0.5895 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.4047, allocations: 0.8125 kB / 0.5895 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.4047, allocations: 2.703 kB / 0.5895 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.4047, allocations: 0 / 0.5895 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.4047, allocations: 5.172 kB / 0.5895 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/0.405, allocations: 145.9 kB / 0.5896 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.39e-05/0.4051, allocations: 97.62 kB / 0.5897 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.765e-05/0.4051, allocations: 2.188 kB / 0.5897 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.851e-05/0.4052, allocations: 8.203 kB / 0.5897 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.36e-05/0.4052, allocations: 6.875 kB / 0.5897 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.4052, allocations: 8.453 kB / 0.5897 GB, free: 15.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003286/0.4056, allocations: 195.9 kB / 0.5899 GB, free: 14.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4056, allocations: 3.938 kB / 0.5899 GB, free: 14.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002523/0.4058, allocations: 31.06 kB / 0.59 GB, free: 14.9 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00137/0.4072, allocations: 0.9924 MB / 0.5909 GB, free: 14.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002329/0.4075, allocations: 75.8 kB / 0.591 GB, free: 14.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.4075, allocations: 1.281 kB / 0.591 GB, free: 14.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.382e-05/0.4076, allocations: 37 kB / 0.591 GB, free: 14.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.4079, allocations: 35.64 kB / 0.5911 GB, free: 14.15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.4095, allocations: 0.9797 MB / 0.592 GB, free: 13.58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.4099, allocations: 0.7251 MB / 0.5927 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.873e-05/0.4099, allocations: 20.56 kB / 0.5927 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.968e-05/0.41, allocations: 45.8 kB / 0.5928 GB, free: 12.85 MB / 446.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4101, allocations: 0 / 0.5928 GB, free: 12.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01542/0.4255, allocations: 4.136 MB / 0.5968 GB, free: 11.96 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001564/0.4257, allocations: 209.3 kB / 0.597 GB, free: 11.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.744/2.169, allocations: 0 / 0.597 GB, free: 11.73 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) Environment - environmentSimulation: