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.001115/0.001115, allocations: 174.4 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7787/0.7787, allocations: 133.6 MB / 141.6 MB, free: 2.922 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.676/1.676, allocations: 221.5 MB / 395.4 MB, free: 10.77 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.0008656/0.0008657, allocations: 93.5 kB / 478.2 MB, free: 1.305 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.234e-05/2.235e-05, allocations: 8 kB / 0.5535 GB, free: 8.941 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3965/0.3966, allocations: 82.3 MB / 0.6339 GB, free: 40.78 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1677/0.5644, allocations: 115 MB / 0.7462 GB, free: 7.648 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.5647, allocations: 79.95 kB / 0.7463 GB, free: 7.57 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.0169/0.5816, allocations: 5.51 MB / 0.7517 GB, free: 2.059 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.773e-06/0.5817, allocations: 0 / 0.7517 GB, free: 2.059 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.075e-05/0.5817, allocations: 0 / 0.7517 GB, free: 2.059 MB / 0.5261 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.0007809/0.5825, allocations: 475.6 kB / 0.7522 GB, free: 1.543 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/0.5826, allocations: 12.03 kB / 0.7522 GB, free: 1.531 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.402e-05/0.5826, allocations: 15.81 kB / 0.7522 GB, free: 1.516 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004247/0.5831, allocations: 263.6 kB / 0.7524 GB, free: 1.215 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.5831, allocations: 0 / 0.7524 GB, free: 1.215 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.5831, allocations: 4 kB / 0.7524 GB, free: 1.211 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001117/0.5833, allocations: 31.98 kB / 0.7525 GB, free: 1.18 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001609/0.5834, allocations: 96.17 kB / 0.7526 GB, free: 1.07 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.5835, allocations: 0 / 0.7526 GB, free: 1.07 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.92e-05/0.5835, allocations: 0 / 0.7526 GB, free: 1.07 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.5835, allocations: 4 kB / 0.7526 GB, free: 1.066 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005817/0.5841, allocations: 345.2 kB / 0.7529 GB, free: 0.6914 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.5842, allocations: 82.66 kB / 0.753 GB, free: 0.6016 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.266e-05/0.5843, allocations: 32.91 kB / 0.753 GB, free: 0.5664 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.5843, allocations: 0 / 0.753 GB, free: 0.5664 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001647/0.5845, allocations: 79.38 kB / 0.7531 GB, free: 488 kB / 0.5261 GB Notification: Performance of pre-optimization done (n=8): time 1.683e-06/0.5845, allocations: 0 / 0.7531 GB, free: 488 kB / 0.5261 GB Notification: Performance of matching and sorting (n=8): time 0.0003216/0.5848, allocations: 113.4 kB / 0.7532 GB, free: 368 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.5849, allocations: 106.8 kB / 0.7533 GB, free: 236 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.5852, allocations: 238 kB / 0.7535 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.5853, allocations: 25.7 kB / 0.7535 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.468e-05/0.5854, allocations: 123.9 kB / 0.7537 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.683e-05/0.5854, allocations: 15.8 kB / 0.7537 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-06/0.5854, allocations: 0 / 0.7537 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.5856, allocations: 326.8 kB / 0.754 GB, free: 15.49 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.417e-05/0.5856, allocations: 20 kB / 0.754 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.162e-05/0.5857, allocations: 80.27 kB / 0.7541 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.746e-05/0.5858, allocations: 28.06 kB / 0.7541 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5858, allocations: 3.938 kB / 0.7541 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001953/0.586, allocations: 105.5 kB / 0.7542 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.5861, allocations: 8 kB / 0.7542 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.5861, allocations: 0 / 0.7542 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.5861, allocations: 192 / 0.7542 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.5862, allocations: 15.98 kB / 0.7542 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.5862, allocations: 7.969 kB / 0.7542 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.5863, allocations: 11.88 kB / 0.7543 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.5864, allocations: 7.891 kB / 0.7543 GB, free: 15.18 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 () * 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.0001051/0.5865, allocations: 114.3 kB / 0.7544 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002147/0.5867, allocations: 109.5 kB / 0.7545 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.586e-05/0.5867, allocations: 15.81 kB / 0.7545 GB, free: 14.94 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002462/0.587, allocations: 123.3 kB / 0.7546 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.587, allocations: 4 kB / 0.7546 GB, free: 14.81 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.587, allocations: 7.953 kB / 0.7546 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.587, allocations: 4 kB / 0.7546 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002193/0.5873, allocations: 206.1 kB / 0.7548 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5873, allocations: 0 / 0.7548 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.976e-05/0.5873, allocations: 8 kB / 0.7548 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.5873, allocations: 0 / 0.7548 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.5874, allocations: 3.984 kB / 0.7548 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.5874, allocations: 0 / 0.7548 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.5874, allocations: 0 / 0.7548 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002423/0.5876, allocations: 148.8 kB / 0.755 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 9.785e-05/0.5877, allocations: 105 kB / 0.7551 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.5878, allocations: 0 / 0.7551 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.866e-05/0.5878, allocations: 11.98 kB / 0.7551 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.681e-05/0.5879, allocations: 7.984 kB / 0.7551 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.5879, allocations: 0 / 0.7551 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001869/0.5881, allocations: 191 kB / 0.7553 GB, free: 14.06 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5881, allocations: 0 / 0.7553 GB, free: 14.06 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003245/0.5885, allocations: 47.88 kB / 0.7553 GB, free: 14.01 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) * 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.001434/0.5899, allocations: 0.9469 MB / 0.7562 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002112/0.5901, allocations: 75.97 kB / 0.7563 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.5901, allocations: 0 / 0.7563 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.063e-05/0.5902, allocations: 39.92 kB / 0.7564 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.5905, allocations: 37.09 kB / 0.7564 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006463/0.5912, allocations: 278.6 kB / 0.7567 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.5915, allocations: 0.7319 MB / 0.7574 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 9.721e-05/0.5916, allocations: 25.2 kB / 0.7574 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.369e-05/0.5917, allocations: 51.41 kB / 0.7574 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of SimCode: time 3e-07/0.5917, allocations: 0 / 0.7574 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02471/0.6165, allocations: 3.798 MB / 0.7612 GB, free: 8.062 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001815/0.6167, allocations: 162.2 kB / 0.7613 GB, free: 7.871 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.399, allocations: 3.938 kB / 0.7613 GB, free: 7.867 MB / 0.5417 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)