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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_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.00836/0.008368, allocations: 96.67 kB / 15.73 MB, free: 6.484 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.00223/0.00223, allocations: 191.9 kB / 16.67 MB, free: 6.391 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002484/0.002484, allocations: 287 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.021/1.021, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002694/0.002694, allocations: 87.86 kB / 0.681 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.1727, allocations: 86.97 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002672/0.1754, allocations: 1.538 MB / 0.7674 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003772/0.1758, allocations: 128.4 kB / 0.7675 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.537e-05/0.1758, allocations: 0 / 0.7675 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.16e-05/0.1759, allocations: 3.938 kB / 0.7675 GB, free: 7.266 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.83e-05/0.1759, allocations: 7.938 kB / 0.7675 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.1762, allocations: 35.95 kB / 0.7676 GB, free: 7.223 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.025e-05/0.1763, allocations: 31.91 kB / 0.7676 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.606e-05/0.1764, allocations: 12 kB / 0.7676 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.306e-05/0.1764, allocations: 15.92 kB / 0.7676 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.93e-05/0.1765, allocations: 23.92 kB / 0.7677 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.1765, allocations: 3.984 kB / 0.7677 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.716e-05/0.1766, allocations: 23.98 kB / 0.7677 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.389e-05/0.1766, allocations: 4 kB / 0.7677 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.156e-05/0.1766, allocations: 23.86 kB / 0.7677 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.1768, allocations: 48.03 kB / 0.7678 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.1768, allocations: 0 / 0.7678 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.303e-06/0.1768, allocations: 0 / 0.7678 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.1768, allocations: 3.938 kB / 0.7678 GB, free: 7.035 MB / 0.5606 GB 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.0005175/0.1773, allocations: 355.4 kB / 0.7681 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.1774, allocations: 8.031 kB / 0.7681 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.842e-05/0.1774, allocations: 34.75 kB / 0.7681 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.423e-05/0.1774, allocations: 4.891 kB / 0.7681 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.1776, allocations: 180.3 kB / 0.7683 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.1776, allocations: 384 / 0.7683 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.605e-05/0.1776, allocations: 4.375 kB / 0.7683 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002143/0.1779, allocations: 70.16 kB / 0.7684 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.1779, allocations: 3.938 kB / 0.7684 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.1779, allocations: 0 / 0.7684 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.1779, allocations: 0 / 0.7684 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001887/0.1781, allocations: 47.95 kB / 0.7684 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004021/0.1785, allocations: 280.8 kB / 0.7687 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000326/0.1788, allocations: 62.42 kB / 0.7688 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.808e-05/0.1789, allocations: 28.89 kB / 0.7688 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003342/0.1793, allocations: 397.6 kB / 0.7692 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.1793, allocations: 38.56 kB / 0.7692 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1793, allocations: 0 / 0.7692 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003802/0.1797, allocations: 93.62 kB / 0.7693 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.1798, allocations: 51.41 kB / 0.7694 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.999e-05/0.1799, allocations: 117.7 kB / 0.7695 GB, free: 5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.1799, allocations: 29.7 kB / 0.7695 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.741e-05/0.18, allocations: 84.14 kB / 0.7696 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.384e-05/0.18, allocations: 3.953 kB / 0.7696 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.18, allocations: 21.7 kB / 0.7696 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1802, allocations: 318.8 kB / 0.7699 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.217e-05/0.1803, allocations: 19.97 kB / 0.7699 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.291e-05/0.1804, allocations: 19.98 kB / 0.7699 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/0.1805, allocations: 53.09 kB / 0.77 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1806, allocations: 0 / 0.77 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000214/0.1808, allocations: 77.64 kB / 0.7701 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.1808, allocations: 4 kB / 0.7701 GB, free: 4.348 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-06/0.1808, allocations: 3.938 kB / 0.7701 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.1808, allocations: 0 / 0.7701 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.106e-05/0.1809, allocations: 11.98 kB / 0.7701 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.1809, allocations: 4 kB / 0.7701 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.125e-05/0.181, allocations: 15.88 kB / 0.7701 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.181, allocations: 0 / 0.7701 GB, free: 4.312 MB / 0.5606 GB 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.581e-05/0.1811, allocations: 114.4 kB / 0.7702 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.293e-05/0.1811, allocations: 0 / 0.7702 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000266/0.1814, allocations: 85.55 kB / 0.7703 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1814, allocations: 7.938 kB / 0.7703 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1814, allocations: 0 / 0.7703 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.1814, allocations: 0 / 0.7703 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002046/0.1816, allocations: 173.6 kB / 0.7705 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.1817, allocations: 0 / 0.7705 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.188e-05/0.1817, allocations: 11.94 kB / 0.7705 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1817, allocations: 7.922 kB / 0.7705 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.1818, allocations: 4 kB / 0.7705 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.1818, allocations: 4 kB / 0.7705 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1818, allocations: 0 / 0.7705 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002734/0.182, allocations: 175.4 kB / 0.7707 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.849e-05/0.1821, allocations: 81.09 kB / 0.7707 GB, free: 3.559 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.1821, allocations: 0 / 0.7707 GB, free: 3.559 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.129e-05/0.1822, allocations: 4 kB / 0.7707 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.477e-05/0.1823, allocations: 11.98 kB / 0.7708 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.1823, allocations: 0 / 0.7708 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.285e-05/0.1823, allocations: 95.27 kB / 0.7708 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1823, allocations: 0 / 0.7708 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002208/0.1826, allocations: 8 kB / 0.7708 GB, free: 3.441 MB / 0.5606 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.0006273/0.1832, allocations: 0.7162 MB / 0.7715 GB, free: 2.699 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002252/0.1834, allocations: 43.95 kB / 0.7716 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.1835, allocations: 4 kB / 0.7716 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.781e-05/0.1836, allocations: 23.92 kB / 0.7716 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.1839, allocations: 8.359 kB / 0.7716 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.1854, allocations: 1.288 MB / 0.7729 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.1857, allocations: 0.6808 MB / 0.7735 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.182e-05/0.1858, allocations: 8.484 kB / 0.7736 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.103e-05/0.1858, allocations: 15.42 kB / 0.7736 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.1858, allocations: 0 / 0.7736 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3392/0.5251, allocations: 1.703 MB / 0.7752 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.798/8.324, allocations: 3.188 kB / 0.7752 GB, free: 14.38 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)