Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.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.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_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.001093/0.001093, allocations: 103.9 kB / 16.27 MB, free: 6.047 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.001096/0.001096, allocations: 182.7 kB / 17.19 MB, free: 5.688 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.333/1.333, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7319/0.7319, allocations: 122.9 MB / 413.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 68.12 kB / 0.4912 GB, free: 7.355 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3181, allocations: 77.92 MB / 0.5673 GB, free: 32.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002773/0.3209, allocations: 1.505 MB / 0.5687 GB, free: 31.67 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003003/0.3213, allocations: 121.2 kB / 0.5689 GB, free: 31.59 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.24e-05/0.3213, allocations: 1.281 kB / 0.5689 GB, free: 31.59 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.908e-05/0.3213, allocations: 6.672 kB / 0.5689 GB, free: 31.59 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.533e-05/0.3214, allocations: 3.938 kB / 0.5689 GB, free: 31.58 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001999/0.3216, allocations: 23.3 kB / 0.5689 GB, free: 31.57 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.531e-05/0.3217, allocations: 31.94 kB / 0.5689 GB, free: 31.55 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.3218, allocations: 12.83 kB / 0.5689 GB, free: 31.55 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.375e-05/0.3218, allocations: 10.42 kB / 0.5689 GB, free: 31.55 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.604e-05/0.3219, allocations: 17.12 kB / 0.569 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.463e-05/0.3219, allocations: 2.688 kB / 0.569 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.239e-05/0.322, allocations: 12.47 kB / 0.569 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.508e-05/0.322, allocations: 6.562 kB / 0.569 GB, free: 31.53 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.861e-05/0.322, allocations: 14.58 kB / 0.569 GB, free: 31.52 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001072/0.3221, allocations: 34.23 kB / 0.569 GB, free: 31.51 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3221, allocations: 1.281 kB / 0.569 GB, free: 31.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3221, allocations: 0 / 0.569 GB, free: 31.51 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.3222, allocations: 0.9688 kB / 0.569 GB, free: 31.51 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004561/0.3226, allocations: 343.7 kB / 0.5694 GB, free: 31.15 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.3227, allocations: 12.06 kB / 0.5694 GB, free: 31.15 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.351e-05/0.3227, allocations: 40.41 kB / 0.5694 GB, free: 31.1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.778e-05/0.3227, allocations: 2.625 kB / 0.5694 GB, free: 31.1 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.668e-05/0.3228, allocations: 171.2 kB / 0.5696 GB, free: 30.9 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.3229, allocations: 2.234 kB / 0.5696 GB, free: 30.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.3229, allocations: 2.594 kB / 0.5696 GB, free: 30.9 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001913/0.3231, allocations: 64.52 kB / 0.5696 GB, free: 30.86 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.3231, allocations: 3.938 kB / 0.5696 GB, free: 30.85 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.3231, allocations: 0 / 0.5696 GB, free: 30.85 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.8e-06/0.3231, allocations: 2.469 kB / 0.5696 GB, free: 30.85 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.3233, allocations: 46.3 kB / 0.5697 GB, free: 30.84 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003284/0.3237, allocations: 269.7 kB / 0.5699 GB, free: 30.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003148/0.324, allocations: 54.61 kB / 0.57 GB, free: 30.53 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.662e-05/0.3241, allocations: 26.89 kB / 0.57 GB, free: 30.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.327e-05/0.3242, allocations: 83.44 kB / 0.5701 GB, free: 30.42 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.156e-05/0.3242, allocations: 36.03 kB / 0.5701 GB, free: 30.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.583e-06/0.3242, allocations: 5.203 kB / 0.5701 GB, free: 30.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003524/0.3246, allocations: 96.08 kB / 0.5702 GB, free: 30.33 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.219e-05/0.3246, allocations: 51.41 kB / 0.5703 GB, free: 30.27 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.514e-05/0.3247, allocations: 101.3 kB / 0.5704 GB, free: 30.17 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.3247, allocations: 26.77 kB / 0.5704 GB, free: 30.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.159e-05/0.3247, allocations: 85.7 kB / 0.5705 GB, free: 30.05 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.485e-05/0.3247, allocations: 13.78 kB / 0.5705 GB, free: 30.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-05/0.3248, allocations: 16.8 kB / 0.5705 GB, free: 30.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.703e-05/0.3248, allocations: 317.1 kB / 0.5708 GB, free: 29.71 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.98e-05/0.3249, allocations: 17.97 kB / 0.5708 GB, free: 29.71 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.96e-05/0.325, allocations: 20.62 kB / 0.5709 GB, free: 29.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.3251, allocations: 53.64 kB / 0.5709 GB, free: 29.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3251, allocations: 0.875 kB / 0.5709 GB, free: 29.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001965/0.3254, allocations: 70.31 kB / 0.571 GB, free: 29.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.3254, allocations: 6.281 kB / 0.571 GB, free: 29.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3254, allocations: 0.5312 kB / 0.571 GB, free: 29.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.3254, allocations: 2.469 kB / 0.571 GB, free: 29.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.717e-05/0.3255, allocations: 14.5 kB / 0.571 GB, free: 29.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.3255, allocations: 5.047 kB / 0.571 GB, free: 29.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.465e-05/0.3256, allocations: 6.953 kB / 0.571 GB, free: 29.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-06/0.3256, allocations: 2.875 kB / 0.571 GB, free: 29.64 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 (rea2Int.y,fac.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 4.528e-05/0.3256, allocations: 114.3 kB / 0.5711 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.387e-05/0.3256, allocations: 1.094 kB / 0.5711 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002328/0.3259, allocations: 87.02 kB / 0.5712 GB, free: 29.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3259, allocations: 1.781 kB / 0.5712 GB, free: 29.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3259, allocations: 0.5312 kB / 0.5712 GB, free: 29.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3259, allocations: 1.469 kB / 0.5712 GB, free: 29.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001183/0.326, allocations: 163.2 kB / 0.5714 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.326, allocations: 4.906 kB / 0.5714 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.323e-05/0.3261, allocations: 11.69 kB / 0.5714 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3261, allocations: 2.875 kB / 0.5714 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.3261, allocations: 0.6562 kB / 0.5714 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.3261, allocations: 5.062 kB / 0.5714 GB, free: 29.26 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3262, allocations: 0 / 0.5714 GB, free: 29.26 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002231/0.3264, allocations: 184 kB / 0.5716 GB, free: 29.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.699e-05/0.3264, allocations: 81.7 kB / 0.5716 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.3264, allocations: 6.375 kB / 0.5716 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.232e-05/0.3265, allocations: 7.984 kB / 0.5717 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.325e-05/0.3266, allocations: 8.734 kB / 0.5717 GB, free: 29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.3266, allocations: 2.766 kB / 0.5717 GB, free: 29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.929e-05/0.3266, allocations: 83.16 kB / 0.5717 GB, free: 28.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3266, allocations: 1.469 kB / 0.5717 GB, free: 28.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002179/0.3268, allocations: 7.688 kB / 0.5718 GB, free: 28.93 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.y,rea2Int.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.000409/0.3272, allocations: 0.7109 MB / 0.5724 GB, free: 28.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002221/0.3275, allocations: 46.42 kB / 0.5725 GB, free: 28.24 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3275, allocations: 2.062 kB / 0.5725 GB, free: 28.24 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.734e-05/0.3276, allocations: 26.23 kB / 0.5725 GB, free: 28.24 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.3279, allocations: 9.781 kB / 0.5725 GB, free: 28.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003674/0.3282, allocations: 142.1 kB / 0.5727 GB, free: 28.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.049e-05/0.3283, allocations: 0.6788 MB / 0.5733 GB, free: 27.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.947e-05/0.3284, allocations: 4.375 kB / 0.5733 GB, free: 27.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.319e-05/0.3284, allocations: 16.14 kB / 0.5733 GB, free: 27.38 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3284, allocations: 4.531 kB / 0.5734 GB, free: 27.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01584/0.3443, allocations: 1.54 MB / 0.5749 GB, free: 27.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.047/7.391, allocations: 8.047 kB / 0.5749 GB, free: 27.04 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)