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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.01081/0.01081, 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.8126/0.8126, 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.582/1.582, allocations: 223.2 MB / 406.8 MB, free: 3.219 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.001053/0.001053, allocations: 91.08 kB / 489.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003685, allocations: 12 kB / 0.5692 GB, free: 14.05 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3883/0.3886, allocations: 82.3 MB / 0.6495 GB, free: 36.11 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1423/0.531, allocations: 115.8 MB / 0.7626 GB, free: 196 kB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.5312, allocations: 79.95 kB / 0.7626 GB, free: 116 kB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01562/0.5469, allocations: 5.552 MB / 0.7681 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.834e-06/0.5469, allocations: 0 / 0.7681 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.489e-05/0.5469, allocations: 4 kB / 0.7681 GB, free: 10.55 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.0007477/0.5477, allocations: 0.4962 MB / 0.7686 GB, free: 10 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.5478, allocations: 8.031 kB / 0.7686 GB, free: 9.992 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.019e-05/0.5478, allocations: 38.56 kB / 0.7686 GB, free: 9.945 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.84e-05/0.5479, allocations: 15.81 kB / 0.7686 GB, free: 9.93 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004709/0.5484, allocations: 263.5 kB / 0.7689 GB, free: 9.629 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.5484, allocations: 7.984 kB / 0.7689 GB, free: 9.621 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/0.5484, allocations: 7.938 kB / 0.7689 GB, free: 9.613 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002242/0.5487, allocations: 96.23 kB / 0.769 GB, free: 9.504 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.5487, allocations: 3.938 kB / 0.769 GB, free: 9.5 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.5487, allocations: 3.984 kB / 0.769 GB, free: 9.496 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.5487, allocations: 4 kB / 0.769 GB, free: 9.492 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001129/0.5488, allocations: 35.91 kB / 0.769 GB, free: 9.457 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006013/0.5494, allocations: 364.8 kB / 0.7694 GB, free: 9.051 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002226/0.5497, allocations: 98.69 kB / 0.7695 GB, free: 8.945 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.5497, allocations: 0 / 0.7695 GB, free: 8.945 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000204/0.5499, allocations: 79.44 kB / 0.7695 GB, free: 8.855 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 2.264e-06/0.5499, allocations: 4 kB / 0.7695 GB, free: 8.852 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8): time 0.0004606/0.5504, allocations: 226.6 kB / 0.7698 GB, free: 8.605 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.071e-05/0.5505, allocations: 110.8 kB / 0.7699 GB, free: 8.473 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003035/0.5508, allocations: 249.8 kB / 0.7701 GB, free: 8.223 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.5508, allocations: 25.7 kB / 0.7701 GB, free: 8.191 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.997e-05/0.5509, allocations: 116.1 kB / 0.7702 GB, free: 8.074 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.991e-05/0.551, allocations: 15.81 kB / 0.7703 GB, free: 8.059 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.741e-06/0.551, allocations: 0 / 0.7703 GB, free: 8.059 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.5511, allocations: 330.8 kB / 0.7706 GB, free: 7.727 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.763e-05/0.5512, allocations: 27.98 kB / 0.7706 GB, free: 7.699 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.5514, allocations: 80.27 kB / 0.7707 GB, free: 7.605 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.53e-05/0.5515, allocations: 31.98 kB / 0.7707 GB, free: 7.574 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.5515, allocations: 3.938 kB / 0.7707 GB, free: 7.57 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002556/0.5517, allocations: 117.4 kB / 0.7708 GB, free: 7.449 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.5518, allocations: 4 kB / 0.7708 GB, free: 7.445 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.5518, allocations: 4.031 kB / 0.7708 GB, free: 7.441 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.5518, allocations: 4 kB / 0.7708 GB, free: 7.438 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.5519, allocations: 15.92 kB / 0.7708 GB, free: 7.422 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.5519, allocations: 8.344 kB / 0.7709 GB, free: 7.414 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.405e-05/0.552, allocations: 16.03 kB / 0.7709 GB, free: 7.398 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-06/0.5521, allocations: 0 / 0.7709 GB, free: 7.398 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.0001888/0.5522, allocations: 141.8 kB / 0.771 GB, free: 7.25 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.198e-05/0.5523, allocations: 23.8 kB / 0.771 GB, free: 7.227 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003118/0.5526, allocations: 131 kB / 0.7712 GB, free: 7.094 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.5527, allocations: 3.984 kB / 0.7712 GB, free: 7.09 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.5527, allocations: 0 / 0.7712 GB, free: 7.09 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.5527, allocations: 7.953 kB / 0.7712 GB, free: 7.082 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002547/0.5529, allocations: 229.6 kB / 0.7714 GB, free: 6.809 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.553, allocations: 4 kB / 0.7714 GB, free: 6.805 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.973e-05/0.553, allocations: 4 kB / 0.7714 GB, free: 6.801 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.553, allocations: 0 / 0.7714 GB, free: 6.801 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.553, allocations: 7.984 kB / 0.7714 GB, free: 6.793 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.553, allocations: 0 / 0.7714 GB, free: 6.793 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.5531, allocations: 4 kB / 0.7714 GB, free: 6.789 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002743/0.5533, allocations: 153.5 kB / 0.7715 GB, free: 6.621 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 9.818e-05/0.5534, allocations: 100.9 kB / 0.7716 GB, free: 6.504 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.5535, allocations: 3.984 kB / 0.7716 GB, free: 6.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.071e-05/0.5536, allocations: 4 kB / 0.7717 GB, free: 6.496 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.654e-05/0.5536, allocations: 11.98 kB / 0.7717 GB, free: 6.484 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.5536, allocations: 4 kB / 0.7717 GB, free: 6.48 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000205/0.5539, allocations: 200.5 kB / 0.7719 GB, free: 6.285 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5539, allocations: 0 / 0.7719 GB, free: 6.285 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002894/0.5542, allocations: 47.94 kB / 0.7719 GB, free: 6.238 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.001665/0.5558, allocations: 1.022 MB / 0.7729 GB, free: 5.348 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002849/0.5561, allocations: 83.89 kB / 0.773 GB, free: 5.266 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.5561, allocations: 0 / 0.773 GB, free: 5.266 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.5563, allocations: 43.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.0002789/0.5566, allocations: 33.66 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.001722/0.5583, allocations: 1.144 MB / 0.7742 GB, free: 3.988 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.5586, allocations: 0.7281 MB / 0.7749 GB, free: 3.234 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 9.597e-05/0.5587, allocations: 25.38 kB / 0.7749 GB, free: 3.211 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.8e-05/0.5588, allocations: 47.42 kB / 0.775 GB, free: 3.164 MB / 0.5417 GB Notification: Performance of SimCode: time 5.41e-07/0.5588, allocations: 4 kB / 0.775 GB, free: 3.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.5782, allocations: 4.255 MB / 0.7791 GB, free: 15.04 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000246/0.5785, allocations: 210.5 kB / 0.7793 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.708/2.286, allocations: 0 / 0.7793 GB, free: 14.79 MB / 0.5573 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/linux/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)