Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: translateModel(BuildingSystems.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 108 kB / 16.27 MB, free: 6.004 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.001295/0.001295, allocations: 187.4 kB / 17.2 MB, free: 5.617 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.21/1.21, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00206/0.00206, allocations: 294 kB / 291.3 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8719/0.8719, allocations: 169.3 MB / 0.4988 GB, free: 4.527 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 95.27 kB / 0.5959 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1513, allocations: 86.98 MB / 0.6808 GB, free: 8.199 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002598/0.1539, allocations: 1.53 MB / 0.6823 GB, free: 6.652 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003454/0.1543, allocations: 128.4 kB / 0.6825 GB, free: 6.523 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.461e-05/0.1544, allocations: 0 / 0.6825 GB, free: 6.523 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.978e-05/0.1544, allocations: 7.922 kB / 0.6825 GB, free: 6.516 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.763e-05/0.1545, allocations: 3.938 kB / 0.6825 GB, free: 6.512 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000255/0.1547, allocations: 31.97 kB / 0.6825 GB, free: 6.48 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.532e-05/0.1548, allocations: 39.91 kB / 0.6825 GB, free: 6.441 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.576e-05/0.1549, allocations: 12 kB / 0.6825 GB, free: 6.43 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.061e-05/0.1549, allocations: 15.92 kB / 0.6826 GB, free: 6.414 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.162e-05/0.155, allocations: 23.91 kB / 0.6826 GB, free: 6.391 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.155, allocations: 0 / 0.6826 GB, free: 6.391 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.77e-05/0.1551, allocations: 19.98 kB / 0.6826 GB, free: 6.371 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.59e-05/0.1551, allocations: 4 kB / 0.6826 GB, free: 6.367 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.184e-05/0.1551, allocations: 19.86 kB / 0.6826 GB, free: 6.348 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.1553, allocations: 52.16 kB / 0.6827 GB, free: 6.297 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1553, allocations: 0 / 0.6827 GB, free: 6.297 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1553, allocations: 0 / 0.6827 GB, free: 6.297 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.1553, allocations: 0 / 0.6827 GB, free: 6.297 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.0004275/0.1557, allocations: 351.4 kB / 0.683 GB, free: 5.902 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.1557, allocations: 11.97 kB / 0.683 GB, free: 5.891 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.1558, allocations: 4.938 kB / 0.683 GB, free: 5.887 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.1559, allocations: 164.3 kB / 0.6832 GB, free: 5.688 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.1559, allocations: 8.375 kB / 0.6832 GB, free: 5.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.188e-06/0.1559, allocations: 4.375 kB / 0.6832 GB, free: 5.676 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/0.1561, allocations: 62.22 kB / 0.6833 GB, free: 5.609 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-06/0.1561, allocations: 192 / 0.6833 GB, free: 5.609 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.1562, allocations: 11.88 kB / 0.6833 GB, free: 5.598 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1562, allocations: 0 / 0.6833 GB, free: 5.598 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.1564, allocations: 43.95 kB / 0.6833 GB, free: 5.555 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003484/0.1567, allocations: 284.7 kB / 0.6836 GB, free: 5.227 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.157, allocations: 58.53 kB / 0.6836 GB, free: 5.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.44e-05/0.1571, allocations: 24.91 kB / 0.6837 GB, free: 5.133 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002594/0.1574, allocations: 401.5 kB / 0.684 GB, free: 4.648 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.1574, allocations: 46.42 kB / 0.6841 GB, free: 4.594 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.1574, allocations: 0 / 0.6841 GB, free: 4.594 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003633/0.1578, allocations: 101.5 kB / 0.6842 GB, free: 4.488 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/0.1578, allocations: 51.41 kB / 0.6842 GB, free: 4.426 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.537e-05/0.1579, allocations: 105.8 kB / 0.6843 GB, free: 4.312 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.1579, allocations: 25.7 kB / 0.6844 GB, free: 4.281 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.816e-05/0.158, allocations: 92.14 kB / 0.6844 GB, free: 4.188 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.373e-05/0.158, allocations: 3.906 kB / 0.6844 GB, free: 4.184 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.884e-05/0.158, allocations: 17.72 kB / 0.6845 GB, free: 4.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.597e-05/0.1582, allocations: 322.8 kB / 0.6848 GB, free: 3.836 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.218e-05/0.1582, allocations: 19.98 kB / 0.6848 GB, free: 3.816 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.097e-05/0.1583, allocations: 23.97 kB / 0.6848 GB, free: 3.793 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.1585, allocations: 48.77 kB / 0.6849 GB, free: 3.742 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1585, allocations: 0 / 0.6849 GB, free: 3.742 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002169/0.1587, allocations: 77.64 kB / 0.6849 GB, free: 3.66 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.1588, allocations: 4 kB / 0.6849 GB, free: 3.656 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1588, allocations: 4 kB / 0.6849 GB, free: 3.652 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.1588, allocations: 0 / 0.6849 GB, free: 3.652 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.975e-05/0.1589, allocations: 11.98 kB / 0.685 GB, free: 3.641 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.1589, allocations: 0 / 0.685 GB, free: 3.641 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.025e-05/0.1589, allocations: 11.91 kB / 0.685 GB, free: 3.629 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.159, allocations: 7.984 kB / 0.685 GB, free: 3.621 MB / 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 6.668e-05/0.159, allocations: 113.8 kB / 0.6851 GB, free: 3.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.78e-05/0.1591, allocations: 0 / 0.6851 GB, free: 3.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000254/0.1593, allocations: 89.48 kB / 0.6852 GB, free: 3.402 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.1593, allocations: 0 / 0.6852 GB, free: 3.402 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1593, allocations: 0 / 0.6852 GB, free: 3.402 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.1594, allocations: 4 kB / 0.6852 GB, free: 3.398 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.1595, allocations: 169.5 kB / 0.6853 GB, free: 3.184 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1595, allocations: 0 / 0.6853 GB, free: 3.184 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.733e-05/0.1596, allocations: 11.98 kB / 0.6853 GB, free: 3.172 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1596, allocations: 0 / 0.6853 GB, free: 3.172 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.1596, allocations: 4 kB / 0.6853 GB, free: 3.168 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.1596, allocations: 0 / 0.6853 GB, free: 3.168 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1596, allocations: 3.938 kB / 0.6854 GB, free: 3.164 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.1599, allocations: 187.2 kB / 0.6855 GB, free: 2.965 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.149e-05/0.1599, allocations: 81.53 kB / 0.6856 GB, free: 2.867 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.16, allocations: 0 / 0.6856 GB, free: 2.867 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.616e-05/0.16, allocations: 7.984 kB / 0.6856 GB, free: 2.859 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.1601, allocations: 8 kB / 0.6856 GB, free: 2.852 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.1601, allocations: 3.984 kB / 0.6856 GB, free: 2.848 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.927e-05/0.1601, allocations: 83.28 kB / 0.6857 GB, free: 2.766 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1602, allocations: 8 kB / 0.6857 GB, free: 2.758 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.1604, allocations: 8 kB / 0.6857 GB, free: 2.75 MB / 494.1 MB 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.0001226/0.1605, allocations: 107.2 kB / 0.6858 GB, free: 2.637 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002269/0.1607, allocations: 47.89 kB / 0.6859 GB, free: 2.59 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1608, allocations: 0 / 0.6859 GB, free: 2.59 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.947e-05/0.1609, allocations: 23.98 kB / 0.6859 GB, free: 2.566 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002389/0.1611, allocations: 10.12 kB / 0.6859 GB, free: 2.559 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002859/0.1614, allocations: 155.3 kB / 0.686 GB, free: 2.375 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/0.1616, allocations: 0.6768 MB / 0.6867 GB, free: 1.672 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.001e-05/0.1617, allocations: 11.44 kB / 0.6867 GB, free: 1.66 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1617, allocations: 0 / 0.6867 GB, free: 1.66 MB / 494.1 MB Notification: Performance of Templates: time 0.001953/0.1636, allocations: 0.8072 MB / 0.6875 GB, free: 0.8555 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)