Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_8_Buildings_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.001245/0.001245, allocations: 105.4 kB / 15.7 MB, free: 28 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.001271/0.001271, allocations: 195.3 kB / 16.64 MB, free: 6.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.349/1.349, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.66/1.66, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 78.38 kB / 0.6718 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2613, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001762/0.2631, allocations: 0.5897 MB / 0.7842 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002639/0.2634, allocations: 63.77 kB / 0.7843 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.707e-05/0.2634, allocations: 0 / 0.7843 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.843e-05/0.2634, allocations: 0 / 0.7843 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.999e-06/0.2635, allocations: 0 / 0.7843 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002858/0.2637, allocations: 15.92 kB / 0.7843 GB, free: 12.61 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.253e-05/0.2638, allocations: 27.98 kB / 0.7843 GB, free: 12.58 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.016e-05/0.2639, allocations: 4 kB / 0.7843 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 3.024e-05/0.2639, allocations: 19.91 kB / 0.7843 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 2.6e-05/0.264, allocations: 12 kB / 0.7844 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.079e-05/0.264, allocations: 0 / 0.7844 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.587e-05/0.264, allocations: 19.98 kB / 0.7844 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.003e-05/0.2641, allocations: 15.97 kB / 0.7844 GB, free: 12.51 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.302e-05/0.2641, allocations: 15.94 kB / 0.7844 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.77e-05/0.2642, allocations: 31.89 kB / 0.7844 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2642, allocations: 0 / 0.7844 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.104e-06/0.2642, allocations: 0 / 0.7844 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.937e-06/0.2643, allocations: 0 / 0.7844 GB, free: 12.46 MB / 0.6075 GB 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.0003428/0.2646, allocations: 347.6 kB / 0.7848 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.2647, allocations: 12.03 kB / 0.7848 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.468e-05/0.2647, allocations: 38.75 kB / 0.7848 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.771e-05/0.2647, allocations: 4.938 kB / 0.7848 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.2648, allocations: 164.3 kB / 0.785 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.494e-06/0.2648, allocations: 384 / 0.785 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.2649, allocations: 8.375 kB / 0.785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001305/0.265, allocations: 62.22 kB / 0.785 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.265, allocations: 3.938 kB / 0.785 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.265, allocations: 4 kB / 0.785 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.265, allocations: 0 / 0.785 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001427/0.2652, allocations: 119.7 kB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001549/0.2654, allocations: 165.7 kB / 0.7853 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001208/0.2655, allocations: 74.48 kB / 0.7854 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.252e-05/0.2655, allocations: 29.17 kB / 0.7854 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00033/0.2659, allocations: 409.4 kB / 0.7858 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.2659, allocations: 38.56 kB / 0.7858 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.052e-06/0.2659, allocations: 0 / 0.7858 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0002276/0.2661, allocations: 121.4 kB / 0.786 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.717e-05/0.2662, allocations: 51.41 kB / 0.786 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.871e-05/0.2662, allocations: 97.84 kB / 0.7861 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.2662, allocations: 29.7 kB / 0.7861 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 1.991e-05/0.2663, allocations: 80.14 kB / 0.7862 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.003e-05/0.2663, allocations: 23.66 kB / 0.7862 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.79e-05/0.2663, allocations: 29.7 kB / 0.7863 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.545e-05/0.2664, allocations: 314.8 kB / 0.7866 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.74e-05/0.2665, allocations: 27.92 kB / 0.7866 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.425e-05/0.2665, allocations: 19.98 kB / 0.7866 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.834e-05/0.2666, allocations: 60.83 kB / 0.7867 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2666, allocations: 0 / 0.7867 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001226/0.2668, allocations: 93.55 kB / 0.7868 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.2668, allocations: 7.938 kB / 0.7868 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.2668, allocations: 0 / 0.7868 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2668, allocations: 0 / 0.7868 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.2669, allocations: 19.98 kB / 0.7868 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.608e-06/0.2669, allocations: 0 / 0.7868 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.378e-05/0.267, allocations: 19.91 kB / 0.7868 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.267, allocations: 0 / 0.7868 GB, free: 9.707 MB / 0.6075 GB 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.0001362/0.2671, allocations: 125.8 kB / 0.7869 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.333e-05/0.2671, allocations: 7.938 kB / 0.7869 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002038/0.2673, allocations: 122.2 kB / 0.787 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.2673, allocations: 3.984 kB / 0.787 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.2674, allocations: 4 kB / 0.7871 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2674, allocations: 4 kB / 0.7871 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001392/0.2675, allocations: 169.7 kB / 0.7872 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2675, allocations: 0 / 0.7872 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.506e-05/0.2676, allocations: 23.92 kB / 0.7872 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.2676, allocations: 3.938 kB / 0.7872 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.2676, allocations: 4 kB / 0.7872 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2676, allocations: 4 kB / 0.7873 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2676, allocations: 3.938 kB / 0.7873 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001433/0.2678, allocations: 129 kB / 0.7874 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.216e-05/0.2678, allocations: 84.98 kB / 0.7875 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.167e-05/0.2678, allocations: 4 kB / 0.7875 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.861e-05/0.2679, allocations: 7.984 kB / 0.7875 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.106e-05/0.2679, allocations: 4 kB / 0.7875 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.2679, allocations: 4 kB / 0.7875 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 2.775e-05/0.2679, allocations: 79.27 kB / 0.7876 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.2679, allocations: 0 / 0.7876 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001915/0.2681, allocations: 16 kB / 0.7876 GB, free: 8.812 MB / 0.6075 GB 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.0004871/0.2686, allocations: 0.6709 MB / 0.7882 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001388/0.2688, allocations: 55.91 kB / 0.7883 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.2688, allocations: 4 kB / 0.7883 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.316e-05/0.2688, allocations: 39.91 kB / 0.7883 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.269, allocations: 8.938 kB / 0.7883 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003865/0.2694, allocations: 186.5 kB / 0.7885 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.2696, allocations: 0.6875 MB / 0.7892 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.542e-05/0.2697, allocations: 39.7 kB / 0.7892 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.429e-05/0.2698, allocations: 19.44 kB / 0.7892 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.2698, allocations: 0 / 0.7892 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.2872, allocations: 1.542 MB / 0.7907 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.359/7.646, allocations: 15.25 kB / 0.7908 GB, free: 5.551 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 13.9 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)