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.001145/0.001145, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001289/0.001289, allocations: 193.3 kB / 16.14 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9208/0.9208, allocations: 135.1 MB / 425.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 63.69 kB / 0.5048 GB, free: 5.695 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.16, allocations: 80.93 MB / 0.5838 GB, free: 4.934 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.00346/0.1635, allocations: 1.813 MB / 0.5856 GB, free: 3.098 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00177/0.1653, allocations: 1.084 MB / 0.5866 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.1654, allocations: 3.938 kB / 0.5867 GB, free: 2 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003045/0.1658, allocations: 59.8 kB / 0.5867 GB, free: 1.941 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002105/0.166, allocations: 63.81 kB / 0.5868 GB, free: 1.879 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006242/0.1666, allocations: 202.9 kB / 0.587 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001889/0.1668, allocations: 131.6 kB / 0.5871 GB, free: 1.555 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.167, allocations: 29.09 kB / 0.5871 GB, free: 1.527 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.1671, allocations: 55.7 kB / 0.5872 GB, free: 1.473 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001057/0.1672, allocations: 67.69 kB / 0.5872 GB, free: 1.406 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.205e-05/0.1672, allocations: 4 kB / 0.5872 GB, free: 1.402 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001549/0.1674, allocations: 55.97 kB / 0.5873 GB, free: 1.348 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.018e-05/0.1675, allocations: 39.89 kB / 0.5873 GB, free: 1.309 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.713e-05/0.1675, allocations: 55.55 kB / 0.5874 GB, free: 1.254 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002669/0.1678, allocations: 195.7 kB / 0.5876 GB, free: 1.062 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1678, allocations: 4 kB / 0.5876 GB, free: 1.059 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.1678, allocations: 4 kB / 0.5876 GB, free: 1.055 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.1678, allocations: 0 / 0.5876 GB, free: 1.055 MB / 494.1 MB 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.0006657/0.1685, allocations: 484.3 kB / 0.588 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.1686, allocations: 12.03 kB / 0.588 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.12e-05/0.1686, allocations: 34.75 kB / 0.5881 GB, free: 484 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.684e-05/0.1687, allocations: 20.75 kB / 0.5881 GB, free: 464 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002938/0.169, allocations: 252.9 kB / 0.5883 GB, free: 172 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.169, allocations: 384 / 0.5883 GB, free: 172 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.169, allocations: 7.938 kB / 0.5884 GB, free: 164 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002207/0.1692, allocations: 92.23 kB / 0.5884 GB, free: 56 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.437e-06/0.1693, allocations: 3.938 kB / 0.5884 GB, free: 52 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.1693, allocations: 0 / 0.5884 GB, free: 52 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.1693, allocations: 11.88 kB / 0.5885 GB, free: 40 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001118/0.1694, allocations: 35.97 kB / 0.5885 GB, free: 4 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005551/0.17, allocations: 360.6 kB / 0.5888 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002536/0.1703, allocations: 90.7 kB / 0.5889 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.013e-05/0.1704, allocations: 36.84 kB / 0.589 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.1704, allocations: 0 / 0.589 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002243/0.1706, allocations: 75.38 kB / 0.589 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.552e-06/0.1706, allocations: 0 / 0.589 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0003824/0.171, allocations: 149.4 kB / 0.5892 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.827e-05/0.1711, allocations: 102.8 kB / 0.5893 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002636/0.1714, allocations: 262.9 kB / 0.5895 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.1714, allocations: 33.7 kB / 0.5895 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.918e-05/0.1715, allocations: 124 kB / 0.5897 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.651e-05/0.1715, allocations: 15.8 kB / 0.5897 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.1716, allocations: 29.7 kB / 0.5897 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1717, allocations: 326.8 kB / 0.59 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.804e-05/0.1718, allocations: 27.98 kB / 0.59 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.1719, allocations: 68.27 kB / 0.5901 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.1721, allocations: 73.64 kB / 0.5902 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.1721, allocations: 4 kB / 0.5902 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002333/0.1723, allocations: 109.7 kB / 0.5903 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.1723, allocations: 10.03 kB / 0.5903 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1724, allocations: 0 / 0.5903 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.1724, allocations: 0 / 0.5903 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.1725, allocations: 24.02 kB / 0.5903 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.1725, allocations: 0 / 0.5903 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.21e-05/0.1726, allocations: 19.77 kB / 0.5903 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.1726, allocations: 4 kB / 0.5903 GB, free: 13.93 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 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.1727, allocations: 138.5 kB / 0.5905 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.635e-05/0.1728, allocations: 19.8 kB / 0.5905 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.1728, allocations: 17.41 kB / 0.5905 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.1728, allocations: 0 / 0.5905 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1728, allocations: 3.938 kB / 0.5905 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.1729, allocations: 15.92 kB / 0.5905 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.1731, allocations: 217.6 kB / 0.5907 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1731, allocations: 4.125 kB / 0.5907 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.175e-05/0.1731, allocations: 4 kB / 0.5908 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.1731, allocations: 3.938 kB / 0.5908 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.1731, allocations: 4 kB / 0.5908 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1732, allocations: 0 / 0.5908 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1732, allocations: 0 / 0.5908 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002538/0.1734, allocations: 144.8 kB / 0.5909 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.531e-05/0.1735, allocations: 96.91 kB / 0.591 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.945e-05/0.1735, allocations: 4 kB / 0.591 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.434e-05/0.1736, allocations: 4 kB / 0.591 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.724e-05/0.1737, allocations: 11.92 kB / 0.591 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.1737, allocations: 4 kB / 0.591 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002404/0.174, allocations: 192.6 kB / 0.5912 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.81e-07/0.174, allocations: 4 kB / 0.5912 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002737/0.1742, allocations: 28 kB / 0.5912 GB, free: 12.93 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001541/0.1758, allocations: 1.007 MB / 0.5922 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002267/0.176, allocations: 71.91 kB / 0.5923 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.1761, allocations: 4 kB / 0.5923 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.489e-05/0.1762, allocations: 40.03 kB / 0.5923 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.1765, allocations: 39.69 kB / 0.5924 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002281/0.1787, allocations: 1.954 MB / 0.5943 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.1791, allocations: 0.7204 MB / 0.595 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.588e-05/0.1792, allocations: 33.36 kB / 0.595 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.414e-05/0.1793, allocations: 47.42 kB / 0.595 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of SimCode: time 6.82e-07/0.1793, allocations: 0 / 0.595 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01529/0.1946, allocations: 4.38 MB / 0.5993 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.1948, allocations: 234.8 kB / 0.5995 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.848/2.043, allocations: 0 / 0.5995 GB, free: 4.543 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/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)