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.001071/0.001071, allocations: 173.2 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.8153/0.8153, allocations: 133.6 MB / 141.6 MB, free: 2.902 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.417/1.417, allocations: 221.5 MB / 395.4 MB, free: 10.82 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.0008593/0.0008592, allocations: 102.6 kB / 478.2 MB, free: 1.324 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.964e-05/2.954e-05, allocations: 4 kB / 0.5535 GB, free: 8.973 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4422/0.4422, allocations: 82.31 MB / 0.6339 GB, free: 40.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1553/0.5975, allocations: 115 MB / 0.7463 GB, free: 7.746 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.5978, allocations: 79.95 kB / 0.7463 GB, free: 7.668 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01557/0.6134, allocations: 5.502 MB / 0.7517 GB, free: 2.164 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.312e-06/0.6134, allocations: 0 / 0.7517 GB, free: 2.164 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.457e-05/0.6135, allocations: 4 kB / 0.7517 GB, free: 2.16 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.0007174/0.6142, allocations: 471.7 kB / 0.7522 GB, free: 1.648 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.6142, allocations: 8.031 kB / 0.7522 GB, free: 1.641 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.298e-05/0.6143, allocations: 15.81 kB / 0.7522 GB, free: 1.625 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004865/0.6148, allocations: 263.5 kB / 0.7524 GB, free: 1.324 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.6149, allocations: 8 kB / 0.7524 GB, free: 1.316 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.191e-05/0.6149, allocations: 0 / 0.7524 GB, free: 1.316 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001213/0.615, allocations: 35.92 kB / 0.7525 GB, free: 1.281 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.6152, allocations: 84.25 kB / 0.7526 GB, free: 1.184 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.6152, allocations: 0 / 0.7526 GB, free: 1.184 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.6152, allocations: 0 / 0.7526 GB, free: 1.184 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/0.6153, allocations: 7.984 kB / 0.7526 GB, free: 1.176 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006135/0.6159, allocations: 353.1 kB / 0.7529 GB, free: 0.793 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.6161, allocations: 82.67 kB / 0.753 GB, free: 0.7031 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.999e-05/0.6161, allocations: 24.92 kB / 0.753 GB, free: 0.6758 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.6161, allocations: 4 kB / 0.753 GB, free: 0.6719 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/0.6163, allocations: 87.39 kB / 0.7531 GB, free: 0.5742 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=8): time 1.403e-06/0.6163, allocations: 0 / 0.7531 GB, free: 0.5742 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8): time 0.0003113/0.6166, allocations: 101.5 kB / 0.7532 GB, free: 480 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.307e-05/0.6167, allocations: 106.8 kB / 0.7533 GB, free: 348 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.617, allocations: 237.9 kB / 0.7535 GB, free: 100 kB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.617, allocations: 29.69 kB / 0.7535 GB, free: 64 kB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.6172, allocations: 124 kB / 0.7537 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/0.6172, allocations: 15.81 kB / 0.7537 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-06/0.6172, allocations: 0 / 0.7537 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.6174, allocations: 326.8 kB / 0.754 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.347e-05/0.6174, allocations: 27.98 kB / 0.754 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.108e-05/0.6175, allocations: 68.28 kB / 0.7541 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.249e-05/0.6176, allocations: 31.92 kB / 0.7541 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.6176, allocations: 0 / 0.7541 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001984/0.6178, allocations: 113.5 kB / 0.7542 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.6178, allocations: 4 kB / 0.7542 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.6178, allocations: 0 / 0.7542 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.6179, allocations: 0 / 0.7542 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.618, allocations: 23.97 kB / 0.7542 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.618, allocations: 0 / 0.7542 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.51e-05/0.6181, allocations: 15.86 kB / 0.7543 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.6181, allocations: 7.953 kB / 0.7543 GB, free: 15.29 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.0001038/0.6182, allocations: 106.4 kB / 0.7544 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001852/0.6184, allocations: 105.5 kB / 0.7545 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.925e-05/0.6184, allocations: 19.8 kB / 0.7545 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002592/0.6187, allocations: 123.3 kB / 0.7546 GB, free: 14.93 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.6187, allocations: 8 kB / 0.7546 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.6187, allocations: 7.953 kB / 0.7546 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.6187, allocations: 3.984 kB / 0.7546 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002001/0.6189, allocations: 202.1 kB / 0.7548 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.619, allocations: 0 / 0.7548 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.942e-05/0.619, allocations: 11.98 kB / 0.7548 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.619, allocations: 0 / 0.7548 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.619, allocations: 0 / 0.7548 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.619, allocations: 7.938 kB / 0.7548 GB, free: 14.65 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.6191, allocations: 0 / 0.7548 GB, free: 14.65 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002283/0.6193, allocations: 149 kB / 0.755 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.675e-05/0.6194, allocations: 100.9 kB / 0.7551 GB, free: 14.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.057e-05/0.6194, allocations: 48 / 0.7551 GB, free: 14.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.35e-05/0.6195, allocations: 7.984 kB / 0.7551 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.332e-05/0.6195, allocations: 11.98 kB / 0.7551 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.6196, allocations: 4 kB / 0.7551 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001821/0.6197, allocations: 183 kB / 0.7553 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6198, allocations: 0 / 0.7553 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002857/0.62, allocations: 55.86 kB / 0.7553 GB, free: 14.11 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.001309/0.6214, allocations: 0.9461 MB / 0.7563 GB, free: 13.22 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000185/0.6216, allocations: 71.97 kB / 0.7563 GB, free: 13.15 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6216, allocations: 0 / 0.7563 GB, free: 13.15 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 6.466e-05/0.6216, allocations: 35.94 kB / 0.7564 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.6219, allocations: 31.03 kB / 0.7564 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006482/0.6226, allocations: 286.6 kB / 0.7567 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.623, allocations: 0.7319 MB / 0.7574 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.117e-05/0.6231, allocations: 21.2 kB / 0.7574 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.945e-05/0.6231, allocations: 51.42 kB / 0.7574 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of SimCode: time 3.056e-06/0.6232, allocations: 0 / 0.7574 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02514/0.6483, allocations: 3.807 MB / 0.7612 GB, free: 8.168 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/0.6486, allocations: 151.7 kB / 0.7613 GB, free: 7.98 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/2.293, allocations: 4.031 kB / 0.7613 GB, free: 7.977 MB / 0.5417 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)