Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 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.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_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.001118/0.001118, allocations: 105.4 kB / 15.7 MB, free: 24 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.001419/0.001419, allocations: 196.9 kB / 16.64 MB, free: 6.453 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.443/1.443, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.695/1.695, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.001432/0.001432, allocations: 72.75 kB / 0.6718 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2355, allocations: 114.6 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002604/0.2382, allocations: 1.504 MB / 0.7851 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003642/0.2386, allocations: 120.5 kB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.407e-05/0.2386, allocations: 4 kB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.855e-05/0.2387, allocations: 0 / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.991e-05/0.2387, allocations: 7.938 kB / 0.7852 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002236/0.239, allocations: 31.84 kB / 0.7853 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.301e-05/0.239, allocations: 23.98 kB / 0.7853 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.2391, allocations: 15.92 kB / 0.7853 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.302e-05/0.2392, allocations: 8 kB / 0.7853 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.252e-05/0.2393, allocations: 19.92 kB / 0.7853 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.2393, allocations: 0 / 0.7853 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.815e-05/0.2393, allocations: 15.98 kB / 0.7854 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.602e-05/0.2394, allocations: 7.984 kB / 0.7854 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.906e-05/0.2394, allocations: 15.92 kB / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.2395, allocations: 27.91 kB / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.2395, allocations: 0 / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2395, allocations: 3.938 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.926e-06/0.2395, allocations: 4 kB / 0.7854 GB, free: 11.43 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004264/0.24, allocations: 339.7 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.24, allocations: 16.02 kB / 0.7857 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.929e-05/0.2401, allocations: 38.75 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.238e-05/0.2401, allocations: 0.9375 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.2402, allocations: 172.3 kB / 0.7859 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.2402, allocations: 384 / 0.7859 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.2402, allocations: 4.375 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001852/0.2404, allocations: 66.14 kB / 0.786 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.2405, allocations: 7.875 kB / 0.786 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.2405, allocations: 4 kB / 0.786 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.2405, allocations: 0 / 0.786 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001845/0.2407, allocations: 39.95 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003489/0.241, allocations: 264.9 kB / 0.7863 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003079/0.2413, allocations: 58.47 kB / 0.7864 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.2415, allocations: 28.91 kB / 0.7864 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000109/0.2416, allocations: 85.09 kB / 0.7865 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.2416, allocations: 30.56 kB / 0.7865 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.2416, allocations: 0 / 0.7865 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003712/0.242, allocations: 89.62 kB / 0.7866 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.242, allocations: 55.41 kB / 0.7867 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.057e-05/0.2421, allocations: 105.8 kB / 0.7868 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.2421, allocations: 25.7 kB / 0.7868 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.875e-05/0.2422, allocations: 92.03 kB / 0.7869 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.2422, allocations: 11.84 kB / 0.7869 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.167e-05/0.2422, allocations: 9.719 kB / 0.7869 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.447e-05/0.2423, allocations: 318.8 kB / 0.7872 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.084e-05/0.2424, allocations: 19.97 kB / 0.7872 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.829e-05/0.2425, allocations: 19.98 kB / 0.7872 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.2427, allocations: 52.75 kB / 0.7873 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2427, allocations: 0 / 0.7873 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002013/0.2429, allocations: 73.59 kB / 0.7873 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.2429, allocations: 8 kB / 0.7874 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.2429, allocations: 0 / 0.7874 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.243, allocations: 4 kB / 0.7874 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.764e-05/0.243, allocations: 15.92 kB / 0.7874 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.243, allocations: 0 / 0.7874 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.556e-05/0.2431, allocations: 7.984 kB / 0.7874 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.2431, allocations: 4 kB / 0.7874 GB, free: 9.148 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: 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 8.065e-05/0.2432, allocations: 117.8 kB / 0.7875 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.2432, allocations: 0 / 0.7875 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002492/0.2435, allocations: 81.66 kB / 0.7876 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2435, allocations: 48 / 0.7876 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.2435, allocations: 7.984 kB / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.2435, allocations: 3.984 kB / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.2437, allocations: 157.6 kB / 0.7877 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.2437, allocations: 0 / 0.7877 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.465e-05/0.2438, allocations: 15.92 kB / 0.7878 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2438, allocations: 0 / 0.7878 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.2438, allocations: 8 kB / 0.7878 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.155e-06/0.2438, allocations: 7.984 kB / 0.7878 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.2438, allocations: 3.938 kB / 0.7878 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002473/0.244, allocations: 171.4 kB / 0.7879 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 2.878e-05/0.2441, allocations: 77.11 kB / 0.788 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.2441, allocations: 0 / 0.788 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.21e-05/0.2442, allocations: 7.984 kB / 0.788 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.041e-05/0.2442, allocations: 15.98 kB / 0.788 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.2443, allocations: 0 / 0.788 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.835e-05/0.2443, allocations: 79.28 kB / 0.7881 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2443, allocations: 0 / 0.7881 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002185/0.2445, allocations: 8 kB / 0.7881 GB, free: 8.297 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: 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.0005566/0.2451, allocations: 0.7155 MB / 0.7888 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002229/0.2453, allocations: 43.95 kB / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.2453, allocations: 0 / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.2455, allocations: 31.84 kB / 0.7889 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.2457, allocations: 4 kB / 0.7889 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000434/0.2462, allocations: 155 kB / 0.789 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.2464, allocations: 0.6807 MB / 0.7897 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.874e-05/0.2464, allocations: 0 / 0.7897 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.566e-05/0.2465, allocations: 11.44 kB / 0.7897 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2465, allocations: 0 / 0.7897 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01691/0.2634, allocations: 1.565 MB / 0.7912 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.305/7.569, allocations: 11.22 kB / 0.7913 GB, free: 5.051 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)