Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",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.001191/0.001191, allocations: 102.5 kB / 16.27 MB, free: 5.957 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.001424/0.001424, allocations: 186.8 kB / 17.19 MB, free: 5.594 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.301/1.301, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7354/0.7354, allocations: 122.9 MB / 413.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 63.91 kB / 0.4912 GB, free: 7.336 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3235, allocations: 77.92 MB / 0.5673 GB, free: 32.68 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001693/0.3252, allocations: 0.5791 MB / 0.5679 GB, free: 32.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002233/0.3254, allocations: 44.41 kB / 0.5679 GB, free: 32.3 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.395e-05/0.3255, allocations: 0.5625 kB / 0.5679 GB, free: 32.3 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.398e-05/0.3255, allocations: 0 / 0.5679 GB, free: 32.3 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.491e-06/0.3255, allocations: 5.938 kB / 0.5679 GB, free: 32.29 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001951/0.3257, allocations: 14.12 kB / 0.5679 GB, free: 32.29 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.888e-05/0.3258, allocations: 11 kB / 0.5679 GB, free: 32.28 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.105e-05/0.3258, allocations: 2.188 kB / 0.5679 GB, free: 32.28 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.306e-05/0.3258, allocations: 2.25 kB / 0.5679 GB, free: 32.28 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.085e-05/0.3259, allocations: 6.344 kB / 0.5679 GB, free: 32.27 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.004e-05/0.3259, allocations: 0 / 0.5679 GB, free: 32.27 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.253e-05/0.3259, allocations: 7.562 kB / 0.5679 GB, free: 32.27 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.008e-05/0.326, allocations: 4.969 kB / 0.5679 GB, free: 32.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.761e-05/0.326, allocations: 5.297 kB / 0.568 GB, free: 32.27 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.182e-05/0.326, allocations: 9.828 kB / 0.568 GB, free: 32.26 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3261, allocations: 2.312 kB / 0.568 GB, free: 32.26 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3261, allocations: 0 / 0.568 GB, free: 32.26 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.3261, allocations: 0 / 0.568 GB, free: 32.26 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002243/0.3263, allocations: 314.8 kB / 0.5683 GB, free: 31.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.3263, allocations: 9.562 kB / 0.5683 GB, free: 31.91 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.414e-05/0.3264, allocations: 36.69 kB / 0.5683 GB, free: 31.87 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.038e-05/0.3264, allocations: 0.9375 kB / 0.5683 GB, free: 31.87 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.232e-05/0.3264, allocations: 166.3 kB / 0.5685 GB, free: 31.67 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.395e-06/0.3265, allocations: 1.031 kB / 0.5685 GB, free: 31.67 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.621e-06/0.3265, allocations: 1.531 kB / 0.5685 GB, free: 31.67 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.721e-05/0.3266, allocations: 32.06 kB / 0.5685 GB, free: 31.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.3266, allocations: 3.938 kB / 0.5685 GB, free: 31.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.891e-06/0.3266, allocations: 1.75 kB / 0.5685 GB, free: 31.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3266, allocations: 0.5625 kB / 0.5685 GB, free: 31.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.784e-05/0.3266, allocations: 4.047 kB / 0.5685 GB, free: 31.64 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.799e-05/0.3267, allocations: 155.1 kB / 0.5687 GB, free: 31.44 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.719e-05/0.3268, allocations: 30 kB / 0.5687 GB, free: 31.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.521e-05/0.3268, allocations: 8.891 kB / 0.5687 GB, free: 31.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001287/0.3269, allocations: 81.36 kB / 0.5688 GB, free: 31.31 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.711e-05/0.3269, allocations: 34.62 kB / 0.5688 GB, free: 31.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3269, allocations: 0 / 0.5688 GB, free: 31.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001204/0.3271, allocations: 44.8 kB / 0.5688 GB, free: 31.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.33e-05/0.3271, allocations: 57.28 kB / 0.5689 GB, free: 31.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.006e-05/0.3271, allocations: 90.89 kB / 0.569 GB, free: 31.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.191e-06/0.3271, allocations: 25.7 kB / 0.569 GB, free: 31.04 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.187e-06/0.3271, allocations: 81.38 kB / 0.5691 GB, free: 30.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.3272, allocations: 5.625 kB / 0.5691 GB, free: 30.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.64e-05/0.3272, allocations: 17.58 kB / 0.5691 GB, free: 30.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.314e-05/0.3272, allocations: 313.5 kB / 0.5694 GB, free: 30.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.431e-05/0.3273, allocations: 4.25 kB / 0.5694 GB, free: 30.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.876e-06/0.3273, allocations: 2.031 kB / 0.5694 GB, free: 30.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.231e-05/0.3273, allocations: 15.56 kB / 0.5694 GB, free: 30.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3273, allocations: 0 / 0.5694 GB, free: 30.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.828e-05/0.3274, allocations: 40.64 kB / 0.5695 GB, free: 30.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.3274, allocations: 7.031 kB / 0.5695 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3274, allocations: 6.016 kB / 0.5695 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.3274, allocations: 3.938 kB / 0.5695 GB, free: 30.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.732e-05/0.3275, allocations: 5.922 kB / 0.5695 GB, free: 30.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.3275, allocations: 0 / 0.5695 GB, free: 30.56 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.353e-05/0.3275, allocations: 2.906 kB / 0.5695 GB, free: 30.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-06/0.3275, allocations: 6.375 kB / 0.5695 GB, free: 30.56 MB / 446.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: 2 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 3.695e-05/0.3276, allocations: 108.2 kB / 0.5696 GB, free: 30.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.304e-06/0.3276, allocations: 6.25 kB / 0.5696 GB, free: 30.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.386e-05/0.3276, allocations: 46.94 kB / 0.5697 GB, free: 30.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3277, allocations: 5.703 kB / 0.5697 GB, free: 30.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3277, allocations: 0.7969 kB / 0.5697 GB, free: 30.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.3277, allocations: 2.219 kB / 0.5697 GB, free: 30.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.945e-05/0.3277, allocations: 144.8 kB / 0.5698 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3277, allocations: 3.328 kB / 0.5698 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.259e-05/0.3278, allocations: 7.297 kB / 0.5698 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3278, allocations: 0 / 0.5698 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.321e-06/0.3278, allocations: 10.19 kB / 0.5698 GB, free: 30.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3278, allocations: 0.6562 kB / 0.5698 GB, free: 30.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3278, allocations: 0 / 0.5698 GB, free: 30.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.685e-05/0.3278, allocations: 62.3 kB / 0.5699 GB, free: 30.13 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.526e-05/0.3279, allocations: 79.7 kB / 0.57 GB, free: 30.04 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.093e-05/0.3279, allocations: 4.453 kB / 0.57 GB, free: 30.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.173e-05/0.3279, allocations: 6.625 kB / 0.57 GB, free: 30.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.226e-05/0.3279, allocations: 2.609 kB / 0.57 GB, free: 30.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.3279, allocations: 1.156 kB / 0.57 GB, free: 30.03 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.257e-05/0.328, allocations: 78.12 kB / 0.57 GB, free: 29.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.328, allocations: 0 / 0.57 GB, free: 29.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001963/0.3282, allocations: 4.781 kB / 0.5701 GB, free: 29.96 MB / 446.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: 2 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.000239/0.3284, allocations: 0.6105 MB / 0.5706 GB, free: 29.35 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 7.044e-05/0.3285, allocations: 11.39 kB / 0.5707 GB, free: 29.35 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.3285, allocations: 1.656 kB / 0.5707 GB, free: 29.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.548e-05/0.3285, allocations: 9.312 kB / 0.5707 GB, free: 29.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001227/0.3286, allocations: 2.141 kB / 0.5707 GB, free: 29.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002523/0.3289, allocations: 110.4 kB / 0.5708 GB, free: 29.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.665e-05/0.329, allocations: 0.674 MB / 0.5714 GB, free: 28.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.198e-05/0.329, allocations: 2.625 kB / 0.5714 GB, free: 28.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.689e-05/0.329, allocations: 12.95 kB / 0.5714 GB, free: 28.5 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.329, allocations: 0 / 0.5714 GB, free: 28.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01508/0.3441, allocations: 1.038 MB / 0.5725 GB, free: 28.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.043/7.388, allocations: 10.95 kB / 0.5725 GB, free: 28.18 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)