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.005042/0.005042, allocations: 98.38 kB / 15.73 MB, free: 6.008 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.001301/0.001301, allocations: 191 kB / 16.67 MB, free: 5.934 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002518/0.002518, allocations: 288.8 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.032/1.032, allocations: 169.2 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002743/0.002743, allocations: 99.84 kB / 0.681 GB, free: 7.418 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4934/0.4962, allocations: 86.97 MB / 0.7659 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001953/0.4982, allocations: 0.5822 MB / 0.7665 GB, free: 3.289 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003119/0.4985, allocations: 59.77 kB / 0.7666 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.157e-05/0.4986, allocations: 0 / 0.7666 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.826e-05/0.4986, allocations: 0 / 0.7666 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.542e-06/0.4987, allocations: 0 / 0.7666 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.499, allocations: 19.92 kB / 0.7666 GB, free: 3.211 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.922e-05/0.4991, allocations: 35.95 kB / 0.7666 GB, free: 3.176 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.393e-05/0.4991, allocations: 0 / 0.7666 GB, free: 3.176 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.242e-05/0.4992, allocations: 12 kB / 0.7666 GB, free: 3.164 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.855e-05/0.4992, allocations: 15.92 kB / 0.7667 GB, free: 3.148 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.182e-05/0.4992, allocations: 0 / 0.7667 GB, free: 3.148 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.607e-05/0.4993, allocations: 19.97 kB / 0.7667 GB, free: 3.129 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3e-05/0.4993, allocations: 15.94 kB / 0.7667 GB, free: 3.113 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.404e-05/0.4994, allocations: 7.938 kB / 0.7667 GB, free: 3.105 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.4995, allocations: 35.69 kB / 0.7667 GB, free: 3.074 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.4995, allocations: 0 / 0.7667 GB, free: 3.074 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4995, allocations: 0 / 0.7667 GB, free: 3.074 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.4995, allocations: 0 / 0.7667 GB, free: 3.074 MB / 0.5294 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.0004011/0.4999, allocations: 344.7 kB / 0.7671 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.5, allocations: 12.03 kB / 0.7671 GB, free: 2.68 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.53e-05/0.5, allocations: 30.75 kB / 0.7671 GB, free: 2.641 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.824e-05/0.5001, allocations: 4.938 kB / 0.7671 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.5002, allocations: 176.2 kB / 0.7673 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.5002, allocations: 8.312 kB / 0.7673 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.5002, allocations: 384 / 0.7673 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001446/0.5004, allocations: 66.17 kB / 0.7673 GB, free: 2.348 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.5004, allocations: 3.938 kB / 0.7673 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.5004, allocations: 4 kB / 0.7674 GB, free: 2.34 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.5004, allocations: 4 kB / 0.7674 GB, free: 2.336 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001586/0.5006, allocations: 107.8 kB / 0.7675 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001892/0.5008, allocations: 169.6 kB / 0.7676 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001191/0.5009, allocations: 70.53 kB / 0.7677 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.342e-05/0.5009, allocations: 32.84 kB / 0.7677 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003752/0.5013, allocations: 405.5 kB / 0.7681 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.5014, allocations: 30.89 kB / 0.7681 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.5014, allocations: 4 kB / 0.7681 GB, free: 1.371 MB / 0.5294 GB Notification: Performance of matching and sorting (n=11): time 0.0002536/0.5016, allocations: 121.5 kB / 0.7683 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.436e-05/0.5017, allocations: 51.41 kB / 0.7683 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.225e-05/0.5017, allocations: 97.86 kB / 0.7684 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.5017, allocations: 25.7 kB / 0.7684 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.28e-05/0.5018, allocations: 80.14 kB / 0.7685 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.393e-05/0.5018, allocations: 23.8 kB / 0.7685 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.783e-05/0.5019, allocations: 33.7 kB / 0.7686 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.502, allocations: 322.8 kB / 0.7689 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.984e-05/0.5021, allocations: 19.98 kB / 0.7689 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.693e-05/0.5021, allocations: 23.92 kB / 0.7689 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.569e-05/0.5022, allocations: 52.84 kB / 0.769 GB, free: 492 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.5022, allocations: 0 / 0.769 GB, free: 492 kB / 0.5294 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001495/0.5024, allocations: 102.2 kB / 0.769 GB, free: 384 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.5024, allocations: 10.44 kB / 0.7691 GB, free: 376 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.5024, allocations: 3.938 kB / 0.7691 GB, free: 372 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.5024, allocations: 4 kB / 0.7691 GB, free: 368 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.5026, allocations: 23.92 kB / 0.7691 GB, free: 344 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.5026, allocations: 8 kB / 0.7691 GB, free: 336 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.752e-05/0.5026, allocations: 0 / 0.7691 GB, free: 336 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-06/0.5026, allocations: 4 kB / 0.7691 GB, free: 332 kB / 0.5294 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.000178/0.5028, allocations: 125.8 kB / 0.7692 GB, free: 196 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.021e-05/0.5029, allocations: 7.891 kB / 0.7692 GB, free: 188 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002328/0.5031, allocations: 129.6 kB / 0.7694 GB, free: 48 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.5031, allocations: 4 kB / 0.7694 GB, free: 44 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.5031, allocations: 4 kB / 0.7694 GB, free: 40 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.5031, allocations: 0 / 0.7694 GB, free: 40 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/0.5033, allocations: 177.6 kB / 0.7695 GB, free: 15.82 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.5033, allocations: 0 / 0.7695 GB, free: 15.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.065e-05/0.5034, allocations: 16 kB / 0.7695 GB, free: 15.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.5034, allocations: 7.922 kB / 0.7696 GB, free: 15.79 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.5034, allocations: 4 kB / 0.7696 GB, free: 15.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.5034, allocations: 3.938 kB / 0.7696 GB, free: 15.79 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5035, allocations: 0 / 0.7696 GB, free: 15.79 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001703/0.5036, allocations: 121 kB / 0.7697 GB, free: 15.65 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.606e-05/0.5037, allocations: 92.94 kB / 0.7698 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.5037, allocations: 4 kB / 0.7698 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.495e-05/0.5037, allocations: 0 / 0.7698 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.953e-05/0.5038, allocations: 7.984 kB / 0.7698 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.5038, allocations: 8 kB / 0.7698 GB, free: 15.52 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.41e-05/0.5038, allocations: 75.28 kB / 0.7699 GB, free: 15.45 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5038, allocations: 0 / 0.7699 GB, free: 15.45 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000189/0.504, allocations: 12 kB / 0.7699 GB, free: 15.43 MB / 0.545 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.0005653/0.5046, allocations: 0.6779 MB / 0.7705 GB, free: 14.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001487/0.5048, allocations: 67.89 kB / 0.7706 GB, free: 14.66 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.5048, allocations: 0 / 0.7706 GB, free: 14.66 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 5.591e-05/0.5048, allocations: 35.92 kB / 0.7706 GB, free: 14.63 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001351/0.505, allocations: 8.938 kB / 0.7706 GB, free: 14.62 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003777/0.5054, allocations: 174.6 kB / 0.7708 GB, free: 14.41 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.5057, allocations: 0.6845 MB / 0.7715 GB, free: 13.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.671e-05/0.5058, allocations: 35.94 kB / 0.7715 GB, free: 13.66 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.402e-05/0.5058, allocations: 15.44 kB / 0.7715 GB, free: 13.65 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.5058, allocations: 0 / 0.7715 GB, free: 13.65 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02344/0.5292, allocations: 1.585 MB / 0.7731 GB, free: 12.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.721/8.251, allocations: 5.812 kB / 0.7731 GB, free: 12.2 MB / 0.545 GB (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)