Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IBPSA_latest_IBPSA_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.00114/0.00114, allocations: 102.8 kB / 16.27 MB, free: 5.973 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.001149/0.00115, allocations: 188.6 kB / 17.19 MB, free: 5.602 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.284/1.284, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7273/0.7273, allocations: 122.8 MB / 413.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.91 kB / 0.4912 GB, free: 7.336 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3361, allocations: 77.92 MB / 0.5673 GB, free: 32.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.FallingFactorial): time 0.002568/0.3387, allocations: 1.522 MB / 0.5688 GB, free: 31.65 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003568/0.3391, allocations: 134.3 kB / 0.5689 GB, free: 31.56 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.903e-05/0.3391, allocations: 0 / 0.5689 GB, free: 31.56 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.89e-05/0.3392, allocations: 6.016 kB / 0.5689 GB, free: 31.56 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.365e-05/0.3392, allocations: 3.938 kB / 0.5689 GB, free: 31.55 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002597/0.3395, allocations: 35.89 kB / 0.5689 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.796e-05/0.3395, allocations: 40.44 kB / 0.569 GB, free: 31.52 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.55e-05/0.3396, allocations: 12.5 kB / 0.569 GB, free: 31.51 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.881e-05/0.3397, allocations: 11.84 kB / 0.569 GB, free: 31.51 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.989e-05/0.3397, allocations: 21.72 kB / 0.569 GB, free: 31.5 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.3397, allocations: 3.969 kB / 0.569 GB, free: 31.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.725e-05/0.3398, allocations: 17.61 kB / 0.569 GB, free: 31.49 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.634e-05/0.3398, allocations: 12.41 kB / 0.569 GB, free: 31.48 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.597e-05/0.3399, allocations: 18.12 kB / 0.5691 GB, free: 31.47 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.34, allocations: 44.36 kB / 0.5691 GB, free: 31.45 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.34, allocations: 1.094 kB / 0.5691 GB, free: 31.45 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.34, allocations: 1.656 kB / 0.5691 GB, free: 31.45 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.34, allocations: 0 / 0.5691 GB, free: 31.45 MB / 446.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.0003636/0.3404, allocations: 347 kB / 0.5694 GB, free: 31.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.3404, allocations: 11.22 kB / 0.5695 GB, free: 31.09 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.561e-05/0.3405, allocations: 41.27 kB / 0.5695 GB, free: 31.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.516e-05/0.3405, allocations: 6.125 kB / 0.5695 GB, free: 31.04 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.689e-05/0.3406, allocations: 169 kB / 0.5697 GB, free: 30.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.3406, allocations: 1.953 kB / 0.5697 GB, free: 30.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.3406, allocations: 8.438 kB / 0.5697 GB, free: 30.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/0.3408, allocations: 61.81 kB / 0.5697 GB, free: 30.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.3408, allocations: 3.938 kB / 0.5697 GB, free: 30.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.3408, allocations: 9.734 kB / 0.5697 GB, free: 30.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.3408, allocations: 1.531 kB / 0.5697 GB, free: 30.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.341, allocations: 45.39 kB / 0.5698 GB, free: 30.78 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003032/0.3413, allocations: 282.7 kB / 0.5701 GB, free: 30.49 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003105/0.3416, allocations: 58.22 kB / 0.5701 GB, free: 30.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.272e-05/0.3418, allocations: 27.38 kB / 0.5701 GB, free: 30.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001756/0.3419, allocations: 408.5 kB / 0.5705 GB, free: 29.97 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.164e-05/0.342, allocations: 31.36 kB / 0.5706 GB, free: 29.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.342, allocations: 1.094 kB / 0.5706 GB, free: 29.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003589/0.3423, allocations: 97.98 kB / 0.5707 GB, free: 29.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.988e-05/0.3424, allocations: 52.44 kB / 0.5707 GB, free: 29.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.67e-05/0.3424, allocations: 107 kB / 0.5708 GB, free: 29.72 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.037e-06/0.3424, allocations: 26.83 kB / 0.5708 GB, free: 29.69 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.58e-05/0.3425, allocations: 90.95 kB / 0.5709 GB, free: 29.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.211e-05/0.3425, allocations: 3.766 kB / 0.5709 GB, free: 29.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.3425, allocations: 18.78 kB / 0.5709 GB, free: 29.58 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.238e-05/0.3426, allocations: 318.9 kB / 0.5712 GB, free: 29.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.881e-05/0.3427, allocations: 19.66 kB / 0.5713 GB, free: 29.26 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.278e-05/0.3427, allocations: 26.77 kB / 0.5713 GB, free: 29.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.3429, allocations: 42.22 kB / 0.5713 GB, free: 29.24 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3429, allocations: 0.7188 kB / 0.5713 GB, free: 29.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000206/0.3431, allocations: 84.08 kB / 0.5714 GB, free: 29.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.3432, allocations: 4.562 kB / 0.5714 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.3432, allocations: 1.188 kB / 0.5714 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.3432, allocations: 0.9688 kB / 0.5714 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.874e-05/0.3433, allocations: 10.72 kB / 0.5714 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.3433, allocations: 6.781 kB / 0.5714 GB, free: 29.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.022e-05/0.3433, allocations: 10.98 kB / 0.5714 GB, free: 29.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.3433, allocations: 1.375 kB / 0.5714 GB, free: 29.19 MB / 446.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 4.7e-05/0.3434, allocations: 116.9 kB / 0.5716 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.3434, allocations: 5.625 kB / 0.5716 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002388/0.3437, allocations: 88.16 kB / 0.5716 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3437, allocations: 1.594 kB / 0.5716 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3437, allocations: 0 / 0.5716 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.3437, allocations: 1.406 kB / 0.5716 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.3438, allocations: 170.2 kB / 0.5718 GB, free: 28.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3438, allocations: 0 / 0.5718 GB, free: 28.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.292e-05/0.3439, allocations: 11.92 kB / 0.5718 GB, free: 28.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3439, allocations: 1.344 kB / 0.5718 GB, free: 28.81 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.3439, allocations: 1.25 kB / 0.5718 GB, free: 28.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3439, allocations: 1.812 kB / 0.5718 GB, free: 28.81 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3439, allocations: 2.562 kB / 0.5718 GB, free: 28.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002226/0.3442, allocations: 179.1 kB / 0.572 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.911e-05/0.3442, allocations: 78.83 kB / 0.5721 GB, free: 28.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.3442, allocations: 1.766 kB / 0.5721 GB, free: 28.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.354e-05/0.3443, allocations: 5.266 kB / 0.5721 GB, free: 28.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.773e-05/0.3444, allocations: 14.56 kB / 0.5721 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.3444, allocations: 3.656 kB / 0.5721 GB, free: 28.56 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.723e-05/0.3444, allocations: 87.2 kB / 0.5722 GB, free: 28.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3444, allocations: 1.062 kB / 0.5722 GB, free: 28.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.3446, allocations: 16.31 kB / 0.5722 GB, free: 28.48 MB / 446.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.000401/0.345, allocations: 0.7042 MB / 0.5729 GB, free: 27.81 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002271/0.3453, allocations: 55.19 kB / 0.5729 GB, free: 27.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3453, allocations: 0.5 kB / 0.5729 GB, free: 27.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.97e-05/0.3454, allocations: 26.98 kB / 0.573 GB, free: 27.79 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.3457, allocations: 6.016 kB / 0.573 GB, free: 27.79 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.3468, allocations: 1.288 MB / 0.5742 GB, free: 26.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001059/0.347, allocations: 0.679 MB / 0.5749 GB, free: 25.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.124e-05/0.347, allocations: 4.281 kB / 0.5749 GB, free: 25.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.836e-05/0.347, allocations: 20.31 kB / 0.5749 GB, free: 25.89 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3471, allocations: 0 / 0.5749 GB, free: 25.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01798/0.365, allocations: 1.657 MB / 0.5765 GB, free: 25.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.107/7.473, allocations: 17.2 kB / 0.5765 GB, free: 25.55 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 IBPSA_latest_IBPSA_Utilities_Math_Examples_FallingFactorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)