Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.685/1.685, allocations: 288.2 MB / 303.2 MB, free: 8.105 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 183.7 kB / 371.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.607/1.607, allocations: 205.4 MB / 0.6305 GB, free: 10.03 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000984/0.000984, allocations: 98.8 kB / 0.7439 GB, free: 5.957 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000407/0.000407, allocations: 15.91 kB / 0.8668 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.279, allocations: 115.3 MB / 0.9795 GB, free: 27.61 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002068/0.2811, allocations: 1.213 MB / 0.9807 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0003698/0.2815, allocations: 120.5 kB / 0.9808 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.534e-05/0.2816, allocations: 4 kB / 0.9808 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.617e-05/0.2816, allocations: 0 / 0.9808 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.439e-05/0.2817, allocations: 0 / 0.9808 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.2819, allocations: 19.91 kB / 0.9808 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.057e-05/0.282, allocations: 27.91 kB / 0.9808 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.2821, allocations: 8 kB / 0.9808 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 4.739e-05/0.2822, allocations: 11.98 kB / 0.9808 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.717e-05/0.2822, allocations: 11.92 kB / 0.9809 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.2823, allocations: 0 / 0.9809 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.036e-05/0.2823, allocations: 8 kB / 0.9809 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.084e-05/0.2824, allocations: 4 kB / 0.9809 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.422e-05/0.2824, allocations: 25.7 kB / 0.9809 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.748e-05/0.2825, allocations: 23.94 kB / 0.9809 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2825, allocations: 4 kB / 0.9809 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.004e-06/0.2825, allocations: 0 / 0.9809 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.2825, allocations: 0 / 0.9809 GB, free: 26.11 MB / 0.6198 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.0005401/0.2831, allocations: 347.5 kB / 0.9812 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.2832, allocations: 16.02 kB / 0.9813 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.183e-05/0.2832, allocations: 30.56 kB / 0.9813 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.448e-05/0.2832, allocations: 3.938 kB / 0.9813 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.2834, allocations: 175 kB / 0.9815 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.2834, allocations: 0 / 0.9815 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.2834, allocations: 4 kB / 0.9815 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.2837, allocations: 61.67 kB / 0.9815 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.2837, allocations: 0 / 0.9815 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.2837, allocations: 0 / 0.9815 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.2838, allocations: 4 kB / 0.9815 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002801/0.284, allocations: 51.95 kB / 0.9816 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004146/0.2845, allocations: 272.8 kB / 0.9818 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004347/0.2849, allocations: 66.48 kB / 0.9819 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001349/0.2851, allocations: 85.25 kB / 0.982 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.932e-05/0.2851, allocations: 30.56 kB / 0.982 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.463e-06/0.2851, allocations: 0 / 0.982 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0005491/0.2857, allocations: 117.7 kB / 0.9821 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.2857, allocations: 51.41 kB / 0.9822 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.608e-05/0.2858, allocations: 101.9 kB / 0.9823 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.2858, allocations: 25.7 kB / 0.9823 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.455e-05/0.2859, allocations: 84.12 kB / 0.9824 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.963e-05/0.2859, allocations: 11.84 kB / 0.9824 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-06/0.2859, allocations: 4 kB / 0.9824 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.67e-05/0.286, allocations: 318.8 kB / 0.9827 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.2861, allocations: 23.98 kB / 0.9827 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.2863, allocations: 23.97 kB / 0.9827 GB, free: 24 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.2864, allocations: 27.98 kB / 0.9828 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2864, allocations: 0 / 0.9828 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003201/0.2868, allocations: 85.59 kB / 0.9828 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.2868, allocations: 7.984 kB / 0.9829 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.2868, allocations: 4 kB / 0.9829 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.2868, allocations: 0 / 0.9829 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.287, allocations: 19.98 kB / 0.9829 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.287, allocations: 0 / 0.9829 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.798e-05/0.2871, allocations: 7.906 kB / 0.9829 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.2871, allocations: 4 kB / 0.9829 GB, free: 23.84 MB / 0.6198 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 (fac.y,rea2Int.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.418e-05/0.2872, allocations: 122.6 kB / 0.983 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.04e-05/0.2873, allocations: 7.938 kB / 0.983 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003526/0.2876, allocations: 89.08 kB / 0.9831 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.2877, allocations: 4 kB / 0.9831 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.2877, allocations: 0 / 0.9831 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.2877, allocations: 4 kB / 0.9831 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001965/0.2879, allocations: 165.6 kB / 0.9833 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2879, allocations: 0 / 0.9833 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.288, allocations: 19.98 kB / 0.9833 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.288, allocations: 0 / 0.9833 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.2881, allocations: 0 / 0.9833 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.2881, allocations: 0 / 0.9833 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2881, allocations: 0 / 0.9833 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003306/0.2884, allocations: 184.5 kB / 0.9835 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/0.2885, allocations: 85 kB / 0.9835 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.2885, allocations: 0 / 0.9835 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.2886, allocations: 8 kB / 0.9835 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.137e-05/0.2887, allocations: 15.92 kB / 0.9836 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.2887, allocations: 7.938 kB / 0.9836 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.608e-05/0.2888, allocations: 75.7 kB / 0.9836 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2888, allocations: 4 kB / 0.9836 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003988/0.2892, allocations: 8 kB / 0.9837 GB, free: 22.96 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005892/0.2898, allocations: 0.7243 MB / 0.9844 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003241/0.2901, allocations: 59.88 kB / 0.9844 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2901, allocations: 4 kB / 0.9844 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001433/0.2903, allocations: 23.98 kB / 0.9844 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.2906, allocations: 8 kB / 0.9845 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005481/0.2912, allocations: 158.2 kB / 0.9846 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001358/0.2913, allocations: 0.6848 MB / 0.9853 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.646e-05/0.2914, allocations: 0 / 0.9853 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.721e-05/0.2914, allocations: 19.42 kB / 0.9853 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of SimCode: time 4.21e-07/0.2914, allocations: 0 / 0.9853 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01434/0.3058, allocations: 1.291 MB / 0.9866 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001954/0.306, allocations: 186.7 kB / 0.9867 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.547/1.853, allocations: 0 / 0.9867 GB, free: 19.79 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)