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.001028/0.001028, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 190.7 kB / 16.66 MB, free: 6.582 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.309/1.309, 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.002117/0.002117, allocations: 274.9 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9287/0.9287, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001985, allocations: 91.92 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1568, allocations: 86.97 MB / 0.7659 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002807/0.1596, allocations: 1.526 MB / 0.7674 GB, free: 7.375 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0004046/0.16, allocations: 136.4 kB / 0.7675 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.285e-05/0.1601, allocations: 0 / 0.7675 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.764e-05/0.1602, allocations: 7.938 kB / 0.7675 GB, free: 7.23 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.099e-05/0.1602, allocations: 7.938 kB / 0.7675 GB, free: 7.223 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003245/0.1605, allocations: 31.91 kB / 0.7676 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.893e-05/0.1606, allocations: 31.91 kB / 0.7676 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.1607, allocations: 15.98 kB / 0.7676 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.576e-05/0.1608, allocations: 11.94 kB / 0.7676 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.188e-05/0.1608, allocations: 23.92 kB / 0.7676 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.387e-05/0.1609, allocations: 0 / 0.7676 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 8.323e-05/0.161, allocations: 27.98 kB / 0.7677 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.883e-05/0.161, allocations: 11.97 kB / 0.7677 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.381e-05/0.161, allocations: 15.88 kB / 0.7677 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.1612, allocations: 44.09 kB / 0.7677 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1612, allocations: 4 kB / 0.7677 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.653e-06/0.1612, allocations: 0 / 0.7677 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.169e-06/0.1612, allocations: 0 / 0.7677 GB, free: 7.008 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.0004574/0.1617, allocations: 351.4 kB / 0.7681 GB, free: 6.613 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1617, allocations: 8.031 kB / 0.7681 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.69e-05/0.1618, allocations: 46.67 kB / 0.7681 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.87e-05/0.1618, allocations: 8.891 kB / 0.7681 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.1619, allocations: 172.3 kB / 0.7683 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.1619, allocations: 384 / 0.7683 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.162, allocations: 4.375 kB / 0.7683 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002056/0.1622, allocations: 66.22 kB / 0.7684 GB, free: 6.262 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1622, allocations: 3.938 kB / 0.7684 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.1622, allocations: 0 / 0.7684 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.1622, allocations: 0 / 0.7684 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001942/0.1624, allocations: 47.95 kB / 0.7684 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003995/0.1628, allocations: 284.7 kB / 0.7687 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003326/0.1632, allocations: 58.53 kB / 0.7688 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.996e-05/0.1633, allocations: 32.84 kB / 0.7688 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002941/0.1636, allocations: 397.5 kB / 0.7692 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.1636, allocations: 34.56 kB / 0.7692 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.1636, allocations: 0 / 0.7692 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.00045/0.1641, allocations: 97.56 kB / 0.7693 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.1641, allocations: 51.41 kB / 0.7693 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.261e-05/0.1642, allocations: 117.8 kB / 0.7694 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.1643, allocations: 29.7 kB / 0.7695 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.993e-05/0.1643, allocations: 80.14 kB / 0.7696 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.1643, allocations: 8.031 kB / 0.7696 GB, free: 4.844 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.015e-05/0.1644, allocations: 13.72 kB / 0.7696 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.1645, allocations: 326.8 kB / 0.7699 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.924e-05/0.1646, allocations: 11.98 kB / 0.7699 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.566e-05/0.1647, allocations: 28.16 kB / 0.7699 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000186/0.1649, allocations: 48.91 kB / 0.77 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1649, allocations: 0 / 0.77 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002186/0.1651, allocations: 81.58 kB / 0.77 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.1652, allocations: 4 kB / 0.7701 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1652, allocations: 0 / 0.7701 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.1652, allocations: 4 kB / 0.7701 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.107e-05/0.1653, allocations: 11.98 kB / 0.7701 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.1653, allocations: 0 / 0.7701 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.148e-05/0.1653, allocations: 11.89 kB / 0.7701 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/0.1654, allocations: 0 / 0.7701 GB, free: 4.289 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 8.732e-05/0.1655, allocations: 118.4 kB / 0.7702 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.686e-05/0.1655, allocations: 4 kB / 0.7702 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002566/0.1657, allocations: 89.48 kB / 0.7703 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.1658, allocations: 0 / 0.7703 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1658, allocations: 0 / 0.7703 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1658, allocations: 0 / 0.7703 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.166, allocations: 177.5 kB / 0.7705 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.166, allocations: 0 / 0.7705 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.427e-05/0.166, allocations: 11.98 kB / 0.7705 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.1661, allocations: 0 / 0.7705 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-06/0.1661, allocations: 7.938 kB / 0.7705 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1661, allocations: 0 / 0.7705 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1661, allocations: 4 kB / 0.7705 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002656/0.1663, allocations: 179.3 kB / 0.7706 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.589e-05/0.1664, allocations: 77.11 kB / 0.7707 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.1664, allocations: 0 / 0.7707 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.724e-05/0.1665, allocations: 11.98 kB / 0.7707 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.1666, allocations: 8 kB / 0.7707 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-06/0.1666, allocations: 7.984 kB / 0.7707 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.958e-05/0.1666, allocations: 87.28 kB / 0.7708 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1666, allocations: 0 / 0.7708 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002393/0.1669, allocations: 8 kB / 0.7708 GB, free: 3.41 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.0005826/0.1675, allocations: 0.7163 MB / 0.7715 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002298/0.1677, allocations: 48.08 kB / 0.7716 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1677, allocations: 0 / 0.7716 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.978e-05/0.1678, allocations: 28.05 kB / 0.7716 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.1681, allocations: 4.547 kB / 0.7716 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.1696, allocations: 1.288 MB / 0.7729 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.1699, allocations: 0.6807 MB / 0.7735 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.732e-05/0.1699, allocations: 11.92 kB / 0.7735 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.207e-05/0.1699, allocations: 11.44 kB / 0.7736 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of SimCode: time 3.41e-07/0.17, allocations: 4.094 kB / 0.7736 GB, free: 500 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3221/0.492, allocations: 1.697 MB / 0.7752 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.341/7.833, allocations: 2.062 kB / 0.7752 GB, free: 14.39 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)