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.001296/0.001296, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7585/0.7585, allocations: 133.4 MB / 146.7 MB, free: 10.79 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.507/1.507, allocations: 221.3 MB / 400.4 MB, free: 5.824 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008848/0.0008848, allocations: 83.41 kB / 483.3 MB, free: 5.891 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.226e-05/3.228e-05, allocations: 4.062 kB / 0.5601 GB, free: 87.82 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.1678, allocations: 82.31 MB / 0.6405 GB, free: 7.742 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5943/0.7621, allocations: 115.7 MB / 0.7535 GB, free: 11.76 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.7624, allocations: 72.94 kB / 0.7536 GB, free: 11.76 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.01499/0.7775, allocations: 5.537 MB / 0.759 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.693e-06/0.7775, allocations: 0 / 0.759 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.979e-05/0.7775, allocations: 3.844 kB / 0.759 GB, free: 26.36 MB / 0.5105 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.0006498/0.7782, allocations: 471.6 kB / 0.7594 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.7783, allocations: 11.72 kB / 0.7594 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.947e-05/0.7783, allocations: 38.55 kB / 0.7595 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.113e-05/0.7784, allocations: 15.53 kB / 0.7595 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004131/0.7788, allocations: 261.6 kB / 0.7597 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.7788, allocations: 7.812 kB / 0.7597 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.125e-05/0.7789, allocations: 3.25 kB / 0.7597 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001827/0.7791, allocations: 92.95 kB / 0.7598 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.7791, allocations: 0 / 0.7598 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.7791, allocations: 4 kB / 0.7598 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.7791, allocations: 0 / 0.7598 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.13e-05/0.7792, allocations: 42.08 kB / 0.7599 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005844/0.7798, allocations: 369.3 kB / 0.7602 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001405/0.78, allocations: 90.3 kB / 0.7603 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.769e-05/0.78, allocations: 33.42 kB / 0.7603 GB, free: 25.16 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.78, allocations: 3.594 kB / 0.7603 GB, free: 25.16 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001351/0.7802, allocations: 84.38 kB / 0.7604 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=8): time 1.532e-06/0.7802, allocations: 0 / 0.7604 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=8): time 0.0002531/0.7805, allocations: 108.2 kB / 0.7605 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.7805, allocations: 110.5 kB / 0.7606 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.7808, allocations: 243.2 kB / 0.7609 GB, free: 24.81 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.7809, allocations: 29.7 kB / 0.7609 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 9.268e-05/0.781, allocations: 123.8 kB / 0.761 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.157e-05/0.781, allocations: 19 kB / 0.761 GB, free: 24.67 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-06/0.781, allocations: 0 / 0.761 GB, free: 24.67 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.7812, allocations: 324.6 kB / 0.7613 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.335e-05/0.7812, allocations: 27.73 kB / 0.7614 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.074e-05/0.7813, allocations: 77.12 kB / 0.7614 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.869e-05/0.7814, allocations: 28.92 kB / 0.7615 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.7814, allocations: 0 / 0.7615 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002296/0.7817, allocations: 109.7 kB / 0.7616 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.7817, allocations: 8.781 kB / 0.7616 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.7817, allocations: 48 / 0.7616 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.7817, allocations: 3.984 kB / 0.7616 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.7819, allocations: 15.67 kB / 0.7616 GB, free: 24.24 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.7819, allocations: 7.891 kB / 0.7616 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.017e-05/0.782, allocations: 19.75 kB / 0.7616 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.782, allocations: 3.844 kB / 0.7616 GB, free: 24.22 MB / 0.5105 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.0001192/0.7821, allocations: 113.7 kB / 0.7617 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.155e-05/0.7822, allocations: 15.5 kB / 0.7618 GB, free: 24.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002737/0.7824, allocations: 134.3 kB / 0.7619 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.7825, allocations: 0 / 0.7619 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.7825, allocations: 0 / 0.7619 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.7825, allocations: 11.94 kB / 0.7619 GB, free: 24.03 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002496/0.7827, allocations: 225.8 kB / 0.7621 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.7828, allocations: 0 / 0.7621 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.537e-05/0.7828, allocations: 11.78 kB / 0.7621 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.7828, allocations: 0 / 0.7621 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.7828, allocations: 3.812 kB / 0.7621 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.7828, allocations: 0 / 0.7621 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.7829, allocations: 4.219 kB / 0.7621 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002185/0.7831, allocations: 148.2 kB / 0.7623 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 9.518e-05/0.7832, allocations: 103.9 kB / 0.7624 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.141e-05/0.7832, allocations: 7.156 kB / 0.7624 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.903e-05/0.7833, allocations: 0 / 0.7624 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.725e-05/0.7834, allocations: 11.36 kB / 0.7624 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.7834, allocations: 7.891 kB / 0.7624 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0002235/0.7836, allocations: 196.9 kB / 0.7626 GB, free: 23.51 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7836, allocations: 0 / 0.7626 GB, free: 23.51 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003167/0.7839, allocations: 53.12 kB / 0.7626 GB, free: 23.5 MB / 0.5105 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.001438/0.7854, allocations: 0.9764 MB / 0.7636 GB, free: 22.77 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001973/0.7856, allocations: 80.5 kB / 0.7637 GB, free: 22.76 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.7856, allocations: 0 / 0.7637 GB, free: 22.76 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 6.72e-05/0.7857, allocations: 43.67 kB / 0.7637 GB, free: 22.75 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.786, allocations: 30.33 kB / 0.7637 GB, free: 22.74 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000594/0.7866, allocations: 296.9 kB / 0.764 GB, free: 22.56 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.7869, allocations: 0.729 MB / 0.7647 GB, free: 21.84 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.472e-05/0.787, allocations: 28.41 kB / 0.7648 GB, free: 21.83 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.931e-05/0.787, allocations: 50.3 kB / 0.7648 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of SimCode: time 4.21e-07/0.7871, allocations: 4 kB / 0.7648 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0155/0.8026, allocations: 4.205 MB / 0.7689 GB, free: 19.79 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001549/0.8028, allocations: 186.3 kB / 0.7691 GB, free: 19.56 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/2.499, allocations: 0 / 0.7691 GB, free: 19.56 MB / 0.5105 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)