Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.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.FallingFactorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial",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.00134/0.00134, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001497/0.001497, allocations: 196 kB / 16.14 MB, free: 6.695 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.31/1.31, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8907/0.8907, allocations: 135.1 MB / 425.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 64.25 kB / 0.5048 GB, free: 5.699 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.151, allocations: 80.92 MB / 0.5838 GB, free: 4.938 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.00245/0.1535, allocations: 1.588 MB / 0.5854 GB, free: 3.328 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003637/0.1538, allocations: 132.4 kB / 0.5855 GB, free: 3.195 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.509e-05/0.1539, allocations: 0 / 0.5855 GB, free: 3.195 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.38e-05/0.1539, allocations: 3.984 kB / 0.5855 GB, free: 3.191 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.307e-05/0.154, allocations: 7.922 kB / 0.5855 GB, free: 3.184 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002199/0.1542, allocations: 23.98 kB / 0.5855 GB, free: 3.16 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.752e-05/0.1543, allocations: 31.92 kB / 0.5855 GB, free: 3.129 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.99e-05/0.1543, allocations: 15.98 kB / 0.5856 GB, free: 3.113 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.812e-05/0.1544, allocations: 19.92 kB / 0.5856 GB, free: 3.094 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.518e-05/0.1544, allocations: 15.92 kB / 0.5856 GB, free: 3.078 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.1544, allocations: 0 / 0.5856 GB, free: 3.078 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.706e-05/0.1545, allocations: 19.98 kB / 0.5856 GB, free: 3.059 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.544e-05/0.1545, allocations: 7.984 kB / 0.5856 GB, free: 3.051 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.803e-05/0.1546, allocations: 15.88 kB / 0.5856 GB, free: 3.035 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.942e-05/0.1547, allocations: 43.88 kB / 0.5857 GB, free: 2.992 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1547, allocations: 4 kB / 0.5857 GB, free: 2.988 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1547, allocations: 0 / 0.5857 GB, free: 2.988 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.075e-06/0.1547, allocations: 0 / 0.5857 GB, free: 2.988 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004265/0.1551, allocations: 353.8 kB / 0.586 GB, free: 2.594 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.1552, allocations: 12.03 kB / 0.586 GB, free: 2.582 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.023e-05/0.1552, allocations: 34.69 kB / 0.5861 GB, free: 2.539 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.627e-05/0.1552, allocations: 4.844 kB / 0.5861 GB, free: 2.535 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.625e-05/0.1553, allocations: 172.3 kB / 0.5862 GB, free: 2.328 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.1554, allocations: 384 / 0.5862 GB, free: 2.328 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.133e-05/0.1554, allocations: 12.38 kB / 0.5862 GB, free: 2.316 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.1556, allocations: 58.23 kB / 0.5863 GB, free: 2.254 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.1556, allocations: 3.938 kB / 0.5863 GB, free: 2.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.1556, allocations: 0 / 0.5863 GB, free: 2.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.1556, allocations: 7.984 kB / 0.5863 GB, free: 2.242 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000194/0.1558, allocations: 43.95 kB / 0.5864 GB, free: 2.199 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000343/0.1562, allocations: 288.6 kB / 0.5866 GB, free: 1.867 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003169/0.1565, allocations: 58.53 kB / 0.5867 GB, free: 1.801 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.795e-05/0.1566, allocations: 20.91 kB / 0.5867 GB, free: 1.777 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000242/0.1568, allocations: 401.5 kB / 0.5871 GB, free: 1.293 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.1569, allocations: 38.55 kB / 0.5871 GB, free: 1.246 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.173e-06/0.1569, allocations: 0 / 0.5871 GB, free: 1.246 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000387/0.1573, allocations: 93.58 kB / 0.5872 GB, free: 1.148 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.1573, allocations: 55.41 kB / 0.5873 GB, free: 1.082 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.663e-05/0.1574, allocations: 105.8 kB / 0.5874 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/0.1574, allocations: 25.7 kB / 0.5874 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.496e-05/0.1575, allocations: 104 kB / 0.5875 GB, free: 0.832 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.289e-05/0.1575, allocations: 3.906 kB / 0.5875 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.532e-05/0.1575, allocations: 17.72 kB / 0.5875 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.845e-05/0.1576, allocations: 314.8 kB / 0.5878 GB, free: 500 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.1577, allocations: 23.97 kB / 0.5878 GB, free: 476 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.529e-05/0.1578, allocations: 19.98 kB / 0.5879 GB, free: 456 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.158, allocations: 49.08 kB / 0.5879 GB, free: 404 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.158, allocations: 0 / 0.5879 GB, free: 404 kB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002161/0.1582, allocations: 77.59 kB / 0.588 GB, free: 320 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.1583, allocations: 4 kB / 0.588 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.1583, allocations: 0 / 0.588 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.1583, allocations: 0 / 0.588 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.141e-05/0.1584, allocations: 11.98 kB / 0.588 GB, free: 304 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.1584, allocations: 0 / 0.588 GB, free: 304 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.837e-05/0.1585, allocations: 11.98 kB / 0.588 GB, free: 292 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.1585, allocations: 4 kB / 0.588 GB, free: 288 kB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (falFac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * 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 9.121e-05/0.1586, allocations: 113.8 kB / 0.5881 GB, free: 164 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.1586, allocations: 7.906 kB / 0.5881 GB, free: 156 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002768/0.1589, allocations: 81.48 kB / 0.5882 GB, free: 64 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.1589, allocations: 7.984 kB / 0.5882 GB, free: 56 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1589, allocations: 4 kB / 0.5882 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.1589, allocations: 4 kB / 0.5882 GB, free: 48 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001847/0.1591, allocations: 173.5 kB / 0.5884 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1591, allocations: 0 / 0.5884 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.866e-05/0.1592, allocations: 11.98 kB / 0.5884 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1592, allocations: 0 / 0.5884 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.1592, allocations: 0 / 0.5884 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1592, allocations: 320 / 0.5884 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1592, allocations: 0 / 0.5884 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.1595, allocations: 183.4 kB / 0.5886 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/0.1596, allocations: 81.11 kB / 0.5886 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.1596, allocations: 0 / 0.5886 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.945e-05/0.1597, allocations: 7.984 kB / 0.5887 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/0.1597, allocations: 0 / 0.5887 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.69e-06/0.1597, allocations: 7.938 kB / 0.5887 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.428e-05/0.1598, allocations: 91.25 kB / 0.5887 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1598, allocations: 4 kB / 0.5888 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002307/0.16, allocations: 15.84 kB / 0.5888 GB, free: 15.4 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: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.000556/0.1606, allocations: 0.7085 MB / 0.5895 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000223/0.1608, allocations: 52.08 kB / 0.5895 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.1608, allocations: 0 / 0.5895 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.817e-05/0.1609, allocations: 28.06 kB / 0.5895 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.1612, allocations: 5.078 kB / 0.5895 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.1626, allocations: 1.297 MB / 0.5908 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.1629, allocations: 0.6887 MB / 0.5915 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.228e-05/0.1629, allocations: 3.984 kB / 0.5915 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.698e-05/0.163, allocations: 11.53 kB / 0.5915 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.163, allocations: 3.938 kB / 0.5915 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.011/0.174, allocations: 1.476 MB / 0.5929 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/0.1742, allocations: 187.8 kB / 0.5931 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.713/1.887, allocations: 0 / 0.5931 GB, free: 10.86 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)