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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007995/0.0007995, allocations: 99 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008393/0.0008393, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.19/1.19, allocations: 223.2 MB / 239.9 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9121/0.9121, allocations: 135.2 MB / 426.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003174/0.0003175, allocations: 8 kB / 0.5069 GB, free: 5.121 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1559/0.1562, allocations: 82.31 MB / 0.5873 GB, free: 2.992 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.001823/0.1581, allocations: 1.442 MB / 0.5887 GB, free: 1.535 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.1595, allocations: 0.997 MB / 0.5897 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.651e-05/0.1595, allocations: 3.938 kB / 0.5897 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002397/0.1598, allocations: 43.88 kB / 0.5897 GB, free: 496 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00017/0.16, allocations: 59.8 kB / 0.5898 GB, free: 436 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005142/0.1605, allocations: 194.2 kB / 0.5899 GB, free: 248 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001459/0.1607, allocations: 87.81 kB / 0.59 GB, free: 160 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.375e-05/0.1607, allocations: 13.11 kB / 0.59 GB, free: 148 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.747e-05/0.1608, allocations: 59.75 kB / 0.5901 GB, free: 88 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.881e-05/0.1609, allocations: 51.77 kB / 0.5901 GB, free: 36 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.161, allocations: 4 kB / 0.5901 GB, free: 32 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.1611, allocations: 51.89 kB / 0.5902 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.923e-05/0.1612, allocations: 31.91 kB / 0.5902 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.471e-05/0.1612, allocations: 49.58 kB / 0.5903 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000187/0.1614, allocations: 148 kB / 0.5904 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.1614, allocations: 0 / 0.5904 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.853e-06/0.1614, allocations: 3.938 kB / 0.5904 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.917e-06/0.1614, allocations: 0 / 0.5904 GB, free: 15.75 MB / 0.4981 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.0005422/0.162, allocations: 472.2 kB / 0.5909 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.162, allocations: 12.03 kB / 0.5909 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.772e-05/0.1621, allocations: 34.56 kB / 0.5909 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.78e-05/0.1621, allocations: 15.81 kB / 0.5909 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.1624, allocations: 247.7 kB / 0.5912 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.1624, allocations: 4 kB / 0.5912 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.1624, allocations: 4 kB / 0.5912 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001797/0.1626, allocations: 88.23 kB / 0.5913 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.1626, allocations: 7.938 kB / 0.5913 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.1627, allocations: 8 kB / 0.5913 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.1627, allocations: 3.984 kB / 0.5913 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.827e-05/0.1628, allocations: 31.98 kB / 0.5913 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004708/0.1633, allocations: 356.6 kB / 0.5916 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002114/0.1635, allocations: 90.7 kB / 0.5917 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.1635, allocations: 0 / 0.5917 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.1637, allocations: 75.52 kB / 0.5918 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.563e-06/0.1637, allocations: 0 / 0.5918 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.000369/0.1641, allocations: 230.7 kB / 0.592 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.1642, allocations: 102.8 kB / 0.5921 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002632/0.1644, allocations: 266.9 kB / 0.5924 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.1645, allocations: 33.7 kB / 0.5924 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.165e-05/0.1646, allocations: 124 kB / 0.5925 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.1646, allocations: 15.81 kB / 0.5925 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/0.1646, allocations: 0 / 0.5925 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.1647, allocations: 330.8 kB / 0.5929 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.894e-05/0.1648, allocations: 23.98 kB / 0.5929 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.311e-05/0.1649, allocations: 64.28 kB / 0.5929 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.347e-05/0.165, allocations: 44.16 kB / 0.593 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.165, allocations: 4 kB / 0.593 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002108/0.1652, allocations: 109.4 kB / 0.5931 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.1652, allocations: 4 kB / 0.5931 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1652, allocations: 4 kB / 0.5931 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.1653, allocations: 3.984 kB / 0.5931 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.976e-05/0.1654, allocations: 11.94 kB / 0.5931 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.1654, allocations: 8.031 kB / 0.5931 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.923e-05/0.1654, allocations: 11.89 kB / 0.5931 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.1655, allocations: 7.984 kB / 0.5931 GB, free: 12.66 MB / 0.4981 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.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,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.0001233/0.1656, allocations: 138.5 kB / 0.5933 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.588e-05/0.1656, allocations: 15.81 kB / 0.5933 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.229e-05/0.1657, allocations: 17.41 kB / 0.5933 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.1657, allocations: 3.984 kB / 0.5933 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1657, allocations: 0 / 0.5933 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.1657, allocations: 4 kB / 0.5933 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.1659, allocations: 233.4 kB / 0.5935 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1659, allocations: 0 / 0.5935 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.031e-05/0.166, allocations: 4 kB / 0.5935 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.166, allocations: 0 / 0.5935 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.166, allocations: 0 / 0.5935 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.166, allocations: 7.938 kB / 0.5935 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.166, allocations: 3.984 kB / 0.5936 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002298/0.1662, allocations: 140.9 kB / 0.5937 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.219e-05/0.1663, allocations: 96.91 kB / 0.5938 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.293e-05/0.1663, allocations: 8 kB / 0.5938 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.465e-05/0.1664, allocations: 4 kB / 0.5938 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.1665, allocations: 7.984 kB / 0.5938 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.1665, allocations: 4 kB / 0.5938 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001732/0.1667, allocations: 192.6 kB / 0.594 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2e-07/0.1667, allocations: 3.938 kB / 0.594 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002596/0.1669, allocations: 35.98 kB / 0.594 GB, free: 11.66 MB / 0.4981 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.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.001311/0.1683, allocations: 0.998 MB / 0.595 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002159/0.1685, allocations: 71.95 kB / 0.5951 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1685, allocations: 3.938 kB / 0.5951 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.666e-05/0.1686, allocations: 36.05 kB / 0.5951 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.1688, allocations: 38.66 kB / 0.5951 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001889/0.1707, allocations: 1.095 MB / 0.5962 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.1711, allocations: 0.7285 MB / 0.5969 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001415/0.1713, allocations: 29.03 kB / 0.5969 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.1714, allocations: 51.36 kB / 0.597 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of SimCode: time 5.61e-07/0.1715, allocations: 0 / 0.597 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0211/0.1926, allocations: 4.109 MB / 0.601 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002695/0.1929, allocations: 205.2 kB / 0.6012 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.67/2.863, allocations: 0 / 0.6012 GB, free: 4.484 MB / 0.4981 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) Environment - environmentSimulation: