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.001207/0.001207, allocations: 113.5 kB / 16.41 MB, free: 6.5 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.001026/0.001026, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7688/0.7688, allocations: 122.9 MB / 414 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 68.19 kB / 0.568 GB, free: 29.05 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.1759, allocations: 77.92 MB / 0.6441 GB, free: 9.539 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.FallingFactorial): time 0.003044/0.179, allocations: 1.523 MB / 0.6456 GB, free: 8.008 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004493/0.1795, allocations: 140.3 kB / 0.6457 GB, free: 7.867 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.93e-05/0.1796, allocations: 0 / 0.6457 GB, free: 7.867 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.233e-05/0.1796, allocations: 0 / 0.6457 GB, free: 7.867 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.021e-05/0.1797, allocations: 7.938 kB / 0.6457 GB, free: 7.859 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003454/0.18, allocations: 31.89 kB / 0.6457 GB, free: 7.828 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.661e-05/0.1801, allocations: 31.92 kB / 0.6458 GB, free: 7.797 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.1803, allocations: 19.98 kB / 0.6458 GB, free: 7.777 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.359e-05/0.1803, allocations: 11.94 kB / 0.6458 GB, free: 7.766 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.863e-05/0.1803, allocations: 23.91 kB / 0.6458 GB, free: 7.742 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.1804, allocations: 0 / 0.6458 GB, free: 7.742 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.704e-05/0.1804, allocations: 19.98 kB / 0.6458 GB, free: 7.723 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.645e-05/0.1805, allocations: 7.984 kB / 0.6458 GB, free: 7.715 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.271e-05/0.1805, allocations: 19.88 kB / 0.6459 GB, free: 7.695 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.1807, allocations: 52.08 kB / 0.6459 GB, free: 7.645 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1807, allocations: 4 kB / 0.6459 GB, free: 7.641 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1807, allocations: 0 / 0.6459 GB, free: 7.641 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1807, allocations: 0 / 0.6459 GB, free: 7.641 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.0005109/0.1812, allocations: 351.4 kB / 0.6462 GB, free: 7.246 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.1813, allocations: 8.625 kB / 0.6463 GB, free: 7.238 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.973e-05/0.1813, allocations: 38.73 kB / 0.6463 GB, free: 7.191 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.154e-05/0.1813, allocations: 4.891 kB / 0.6463 GB, free: 7.188 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.1815, allocations: 172.3 kB / 0.6465 GB, free: 6.98 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.1815, allocations: 8.375 kB / 0.6465 GB, free: 6.973 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.1815, allocations: 4.375 kB / 0.6465 GB, free: 6.969 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.1818, allocations: 66.16 kB / 0.6465 GB, free: 6.898 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.1818, allocations: 7.922 kB / 0.6465 GB, free: 6.891 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.1818, allocations: 0 / 0.6465 GB, free: 6.891 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.1818, allocations: 0 / 0.6465 GB, free: 6.891 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.182, allocations: 43.95 kB / 0.6466 GB, free: 6.848 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005208/0.1825, allocations: 288.7 kB / 0.6469 GB, free: 6.516 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000351/0.1829, allocations: 58.53 kB / 0.6469 GB, free: 6.449 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.183, allocations: 24.91 kB / 0.6469 GB, free: 6.422 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003589/0.1834, allocations: 397.5 kB / 0.6473 GB, free: 5.941 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.1834, allocations: 46.5 kB / 0.6474 GB, free: 5.887 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 3.045e-06/0.1834, allocations: 0 / 0.6474 GB, free: 5.887 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004266/0.1839, allocations: 97.53 kB / 0.6475 GB, free: 5.785 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.1839, allocations: 55.39 kB / 0.6475 GB, free: 5.719 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.184, allocations: 109.8 kB / 0.6476 GB, free: 5.602 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.1841, allocations: 25.7 kB / 0.6476 GB, free: 5.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.46e-05/0.1841, allocations: 84.14 kB / 0.6477 GB, free: 5.484 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.1842, allocations: 11.95 kB / 0.6477 GB, free: 5.473 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.804e-05/0.1842, allocations: 13.72 kB / 0.6477 GB, free: 5.453 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1844, allocations: 322.8 kB / 0.648 GB, free: 5.129 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.1845, allocations: 15.98 kB / 0.6481 GB, free: 5.113 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.116e-05/0.1846, allocations: 23.97 kB / 0.6481 GB, free: 5.09 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001884/0.1848, allocations: 48.77 kB / 0.6481 GB, free: 5.039 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1848, allocations: 0 / 0.6481 GB, free: 5.039 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002634/0.1851, allocations: 77.64 kB / 0.6482 GB, free: 4.957 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.1851, allocations: 4 kB / 0.6482 GB, free: 4.953 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.1851, allocations: 0 / 0.6482 GB, free: 4.953 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.1851, allocations: 0 / 0.6482 GB, free: 4.953 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.858e-05/0.1852, allocations: 11.98 kB / 0.6482 GB, free: 4.941 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.1852, allocations: 0 / 0.6482 GB, free: 4.941 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.893e-05/0.1853, allocations: 11.95 kB / 0.6482 GB, free: 4.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-06/0.1853, allocations: 0 / 0.6482 GB, free: 4.93 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 0.0001357/0.1855, allocations: 125.7 kB / 0.6484 GB, free: 4.797 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.869e-05/0.1855, allocations: 0 / 0.6484 GB, free: 4.797 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003135/0.1858, allocations: 89.48 kB / 0.6484 GB, free: 4.695 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.1858, allocations: 384 / 0.6484 GB, free: 4.695 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1859, allocations: 0 / 0.6484 GB, free: 4.695 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.1859, allocations: 4 kB / 0.6484 GB, free: 4.691 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002282/0.1861, allocations: 165.6 kB / 0.6486 GB, free: 4.48 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1861, allocations: 0 / 0.6486 GB, free: 4.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.077e-05/0.1862, allocations: 15.97 kB / 0.6486 GB, free: 4.465 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1862, allocations: 0 / 0.6486 GB, free: 4.465 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.1862, allocations: 4 kB / 0.6486 GB, free: 4.461 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.1862, allocations: 3.938 kB / 0.6486 GB, free: 4.457 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1863, allocations: 3.938 kB / 0.6486 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003298/0.1866, allocations: 187.3 kB / 0.6488 GB, free: 4.254 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.176e-05/0.1867, allocations: 77.11 kB / 0.6489 GB, free: 4.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.1867, allocations: 0 / 0.6489 GB, free: 4.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.668e-05/0.1868, allocations: 7.984 kB / 0.6489 GB, free: 4.152 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.282e-05/0.1869, allocations: 8 kB / 0.6489 GB, free: 4.145 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-06/0.1869, allocations: 4 kB / 0.6489 GB, free: 4.141 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.319e-05/0.1869, allocations: 91.27 kB / 0.649 GB, free: 4.051 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.187, allocations: 0 / 0.649 GB, free: 4.051 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.1872, allocations: 12 kB / 0.649 GB, free: 4.039 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.0007115/0.1879, allocations: 0.7123 MB / 0.6497 GB, free: 3.301 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002635/0.1882, allocations: 47.95 kB / 0.6497 GB, free: 3.254 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1882, allocations: 0 / 0.6497 GB, free: 3.254 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.1883, allocations: 27.97 kB / 0.6498 GB, free: 3.227 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003195/0.1887, allocations: 0 / 0.6498 GB, free: 3.227 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.1902, allocations: 1.292 MB / 0.651 GB, free: 1.855 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.1905, allocations: 0.6846 MB / 0.6517 GB, free: 1.145 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.198e-05/0.1905, allocations: 0 / 0.6517 GB, free: 1.145 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.441e-05/0.1906, allocations: 15.44 kB / 0.6517 GB, free: 1.129 MB / 494.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1906, allocations: 0 / 0.6517 GB, free: 1.129 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01907/0.2096, allocations: 1.691 MB / 0.6534 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.344/7.554, allocations: 7.797 kB / 0.6534 GB, free: 15.51 MB / 0.4981 GB (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)