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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.008145/0.008145, allocations: 172 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7916/0.7916, allocations: 135.2 MB / 151 MB, free: 13.82 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 223.2 MB / 406.9 MB, free: 3.223 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 95.03 kB / 489.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003364, allocations: 12 kB / 0.5692 GB, free: 14.05 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3938, allocations: 82.3 MB / 0.6495 GB, free: 36.11 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1438/0.5376, allocations: 115.8 MB / 0.7626 GB, free: 204 kB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.5379, allocations: 79.95 kB / 0.7626 GB, free: 124 kB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01509/0.553, allocations: 5.552 MB / 0.7681 GB, free: 10.56 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.613e-06/0.553, allocations: 4 kB / 0.7681 GB, free: 10.56 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.277e-05/0.5531, allocations: 0 / 0.7681 GB, free: 10.56 MB / 0.5417 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.0006209/0.5537, allocations: 0.5 MB / 0.7686 GB, free: 10 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.5537, allocations: 12.03 kB / 0.7686 GB, free: 9.992 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.211e-05/0.5538, allocations: 34.56 kB / 0.7686 GB, free: 9.949 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.443e-05/0.5538, allocations: 15.81 kB / 0.7686 GB, free: 9.934 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.5542, allocations: 267.5 kB / 0.7689 GB, free: 9.629 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.5542, allocations: 0 / 0.7689 GB, free: 9.629 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.5543, allocations: 8 kB / 0.7689 GB, free: 9.621 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/0.5545, allocations: 104.1 kB / 0.769 GB, free: 9.504 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.5545, allocations: 0 / 0.769 GB, free: 9.504 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.5545, allocations: 4 kB / 0.769 GB, free: 9.5 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.5545, allocations: 0 / 0.769 GB, free: 9.5 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.5546, allocations: 43.91 kB / 0.769 GB, free: 9.457 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005031/0.5551, allocations: 368.8 kB / 0.7694 GB, free: 9.047 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.5554, allocations: 86.69 kB / 0.7695 GB, free: 8.953 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.281e-05/0.5554, allocations: 4 kB / 0.7695 GB, free: 8.949 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001634/0.5556, allocations: 79.44 kB / 0.7695 GB, free: 8.859 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.5556, allocations: 4 kB / 0.7695 GB, free: 8.855 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8): time 0.000394/0.556, allocations: 222.7 kB / 0.7698 GB, free: 8.613 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.97e-05/0.556, allocations: 110.8 kB / 0.7699 GB, free: 8.48 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002417/0.5563, allocations: 249.8 kB / 0.7701 GB, free: 8.23 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.5563, allocations: 29.69 kB / 0.7701 GB, free: 8.195 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.875e-05/0.5564, allocations: 120.2 kB / 0.7702 GB, free: 8.074 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.5564, allocations: 11.81 kB / 0.7703 GB, free: 8.062 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.114e-06/0.5564, allocations: 4 kB / 0.7703 GB, free: 8.059 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001021/0.5566, allocations: 330.8 kB / 0.7706 GB, free: 7.727 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.552e-05/0.5566, allocations: 27.98 kB / 0.7706 GB, free: 7.699 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.826e-05/0.5568, allocations: 72.27 kB / 0.7707 GB, free: 7.613 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.165e-05/0.5568, allocations: 36.05 kB / 0.7707 GB, free: 7.578 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.5569, allocations: 7.875 kB / 0.7707 GB, free: 7.57 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002126/0.5571, allocations: 117.5 kB / 0.7708 GB, free: 7.449 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.5571, allocations: 8.938 kB / 0.7708 GB, free: 7.441 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.5571, allocations: 0 / 0.7708 GB, free: 7.441 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.5571, allocations: 0 / 0.7708 GB, free: 7.441 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.53e-05/0.5572, allocations: 15.94 kB / 0.7708 GB, free: 7.426 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.5572, allocations: 7.938 kB / 0.7709 GB, free: 7.418 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.167e-05/0.5573, allocations: 11.84 kB / 0.7709 GB, free: 7.406 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.5573, allocations: 4 kB / 0.7709 GB, free: 7.402 MB / 0.5417 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 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,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.0001153/0.5575, allocations: 145.9 kB / 0.771 GB, free: 7.25 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.5575, allocations: 15.81 kB / 0.771 GB, free: 7.234 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002678/0.5578, allocations: 139.1 kB / 0.7712 GB, free: 7.094 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.5578, allocations: 4 kB / 0.7712 GB, free: 7.09 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.5578, allocations: 0 / 0.7712 GB, free: 7.09 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.5578, allocations: 3.953 kB / 0.7712 GB, free: 7.086 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001894/0.558, allocations: 229.6 kB / 0.7714 GB, free: 6.812 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.558, allocations: 0 / 0.7714 GB, free: 6.812 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.804e-05/0.5581, allocations: 4 kB / 0.7714 GB, free: 6.809 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.5581, allocations: 4 kB / 0.7714 GB, free: 6.805 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.5581, allocations: 4 kB / 0.7714 GB, free: 6.801 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.5581, allocations: 0 / 0.7714 GB, free: 6.801 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.5581, allocations: 0 / 0.7714 GB, free: 6.801 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000252/0.5584, allocations: 157.4 kB / 0.7715 GB, free: 6.629 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.773e-05/0.5584, allocations: 104.9 kB / 0.7716 GB, free: 6.508 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.052e-05/0.5585, allocations: 4 kB / 0.7717 GB, free: 6.504 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.157e-05/0.5585, allocations: 7.984 kB / 0.7717 GB, free: 6.496 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/0.5586, allocations: 8 kB / 0.7717 GB, free: 6.488 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.5586, allocations: 11.92 kB / 0.7717 GB, free: 6.477 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001742/0.5588, allocations: 196.6 kB / 0.7719 GB, free: 6.285 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5588, allocations: 0 / 0.7719 GB, free: 6.285 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002818/0.5591, allocations: 43.94 kB / 0.7719 GB, free: 6.242 MB / 0.5417 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.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.001332/0.5604, allocations: 1.025 MB / 0.7729 GB, free: 5.348 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002479/0.5607, allocations: 87.88 kB / 0.773 GB, free: 5.262 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.5607, allocations: 4 kB / 0.773 GB, free: 5.258 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 9.317e-05/0.5608, allocations: 35.92 kB / 0.773 GB, free: 5.223 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.5611, allocations: 33.72 kB / 0.7731 GB, free: 5.191 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/0.5627, allocations: 1.137 MB / 0.7742 GB, free: 3.996 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.563, allocations: 0.7321 MB / 0.7749 GB, free: 3.238 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 9.664e-05/0.5631, allocations: 29.38 kB / 0.7749 GB, free: 3.211 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.694e-05/0.5632, allocations: 47.42 kB / 0.775 GB, free: 3.164 MB / 0.5417 GB Notification: Performance of SimCode: time 2.91e-07/0.5632, allocations: 3.938 kB / 0.775 GB, free: 3.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01538/0.5786, allocations: 4.238 MB / 0.7791 GB, free: 15.05 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001633/0.5788, allocations: 203 kB / 0.7793 GB, free: 14.81 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/2.277, allocations: 4.062 kB / 0.7793 GB, free: 14.8 MB / 0.5573 GB (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)