Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_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.001156/0.001156, allocations: 108 kB / 15.61 MB, free: 152 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.001092/0.001092, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.287/1.287, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002052/0.002052, allocations: 287 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9264/0.9264, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 99.98 kB / 0.5954 GB, free: 27.75 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1335, allocations: 86.98 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001683/0.1352, allocations: 0.5689 MB / 0.6808 GB, free: 36 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002502/0.1355, allocations: 63.7 kB / 0.6809 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.738e-05/0.1355, allocations: 0 / 0.6809 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.378e-05/0.1356, allocations: 4 kB / 0.6809 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.144e-06/0.1356, allocations: 0.75 kB / 0.6809 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002478/0.1358, allocations: 23.86 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.256e-05/0.1359, allocations: 33.62 kB / 0.681 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.907e-05/0.136, allocations: 4 kB / 0.681 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.133e-05/0.136, allocations: 7.984 kB / 0.681 GB, free: 15.9 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.682e-05/0.136, allocations: 11.98 kB / 0.681 GB, free: 15.89 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.245e-05/0.136, allocations: 4 kB / 0.681 GB, free: 15.89 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.562e-05/0.1361, allocations: 18.98 kB / 0.681 GB, free: 15.87 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.576e-05/0.1362, allocations: 11.98 kB / 0.681 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.336e-05/0.1362, allocations: 11.88 kB / 0.681 GB, free: 15.85 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.341e-05/0.1363, allocations: 35.89 kB / 0.6811 GB, free: 15.81 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.1363, allocations: 0 / 0.6811 GB, free: 15.81 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1363, allocations: 4 kB / 0.6811 GB, free: 15.81 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.1363, allocations: 0 / 0.6811 GB, free: 15.81 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002932/0.1366, allocations: 340.6 kB / 0.6814 GB, free: 15.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.1366, allocations: 8.031 kB / 0.6814 GB, free: 15.42 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.399e-05/0.1367, allocations: 36.47 kB / 0.6814 GB, free: 15.38 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.845e-05/0.1367, allocations: 4.844 kB / 0.6814 GB, free: 15.37 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.048e-05/0.1368, allocations: 164.4 kB / 0.6816 GB, free: 15.17 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.1368, allocations: 8.359 kB / 0.6816 GB, free: 15.16 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.1368, allocations: 5.031 kB / 0.6816 GB, free: 15.16 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000126/0.137, allocations: 62.8 kB / 0.6817 GB, free: 15.09 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.137, allocations: 7.922 kB / 0.6817 GB, free: 15.09 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.137, allocations: 4.875 kB / 0.6817 GB, free: 15.08 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.137, allocations: 4 kB / 0.6817 GB, free: 15.08 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.1371, allocations: 100.4 kB / 0.6818 GB, free: 14.98 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001514/0.1373, allocations: 174.6 kB / 0.682 GB, free: 14.76 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001187/0.1374, allocations: 75.53 kB / 0.682 GB, free: 14.68 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.332e-05/0.1375, allocations: 32.84 kB / 0.6821 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000293/0.1378, allocations: 405.5 kB / 0.6824 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.1378, allocations: 34.56 kB / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.1378, allocations: 4 kB / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002312/0.1381, allocations: 110.2 kB / 0.6826 GB, free: 14 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.172e-05/0.1381, allocations: 59.34 kB / 0.6826 GB, free: 13.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.659e-05/0.1381, allocations: 97.77 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.1382, allocations: 25.7 kB / 0.6828 GB, free: 13.79 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.443e-05/0.1382, allocations: 84.08 kB / 0.6828 GB, free: 13.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.1382, allocations: 23.66 kB / 0.6829 GB, free: 13.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.862e-05/0.1383, allocations: 37.7 kB / 0.6829 GB, free: 13.64 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.173e-05/0.1384, allocations: 322.8 kB / 0.6832 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.878e-05/0.1384, allocations: 23.92 kB / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.315e-05/0.1384, allocations: 24.03 kB / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.685e-05/0.1385, allocations: 52.84 kB / 0.6833 GB, free: 13.21 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1385, allocations: 0 / 0.6833 GB, free: 13.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001304/0.1387, allocations: 93.59 kB / 0.6834 GB, free: 13.11 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.1387, allocations: 11.94 kB / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1387, allocations: 4 kB / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.1387, allocations: 0 / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.515e-05/0.1388, allocations: 19.94 kB / 0.6834 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.1388, allocations: 0 / 0.6834 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.154e-05/0.1389, allocations: 7.922 kB / 0.6834 GB, free: 13.07 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.1389, allocations: 4 kB / 0.6834 GB, free: 13.07 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: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.000115/0.139, allocations: 119.2 kB / 0.6836 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.721e-05/0.139, allocations: 15.83 kB / 0.6836 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001948/0.1392, allocations: 129.5 kB / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1392, allocations: 0 / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1392, allocations: 0 / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1393, allocations: 0 / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.1394, allocations: 181.5 kB / 0.6839 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1394, allocations: 0 / 0.6839 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.455e-05/0.1394, allocations: 16 kB / 0.6839 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.1395, allocations: 3.938 kB / 0.6839 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.1395, allocations: 3.984 kB / 0.6839 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1395, allocations: 4 kB / 0.6839 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1395, allocations: 0 / 0.6839 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001349/0.1396, allocations: 117 kB / 0.684 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.533e-05/0.1397, allocations: 92.88 kB / 0.6841 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.1397, allocations: 4 kB / 0.6841 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.644e-05/0.1397, allocations: 4 kB / 0.6841 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.763e-05/0.1397, allocations: 11.92 kB / 0.6841 GB, free: 12.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.1398, allocations: 12 kB / 0.6841 GB, free: 12.27 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.008e-05/0.1398, allocations: 79.28 kB / 0.6842 GB, free: 12.19 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1398, allocations: 0 / 0.6842 GB, free: 12.19 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001917/0.14, allocations: 8 kB / 0.6842 GB, free: 12.18 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0004134/0.1404, allocations: 0.6676 MB / 0.6849 GB, free: 11.48 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001448/0.1406, allocations: 83.94 kB / 0.6849 GB, free: 11.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1406, allocations: 3.938 kB / 0.6849 GB, free: 11.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.695e-05/0.1406, allocations: 35.92 kB / 0.685 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.1408, allocations: 4.75 kB / 0.685 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003513/0.1411, allocations: 170.7 kB / 0.6851 GB, free: 11.15 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001969/0.1413, allocations: 0.6846 MB / 0.6858 GB, free: 10.44 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.958e-05/0.1414, allocations: 35.94 kB / 0.6858 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.118e-05/0.1414, allocations: 15.44 kB / 0.6859 GB, free: 10.39 MB / 494.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1414, allocations: 0 / 0.6859 GB, free: 10.39 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01657/0.158, allocations: 1.549 MB / 0.6874 GB, free: 8.961 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.753/6.911, allocations: 18.19 kB / 0.6874 GB, free: 8.949 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 13.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00556 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)