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.0009793/0.0009792, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.008055/0.008055, allocations: 172.3 kB / 16.26 MB, free: 6.613 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.716/1.716, allocations: 205.4 MB / 222.4 MB, free: 5.793 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.719/1.719, allocations: 292.7 MB / 0.5502 GB, free: 14.47 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.000628/0.0006283, allocations: 17.38 kB / 0.6744 GB, free: 25.97 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2678, allocations: 116.3 MB / 0.788 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001822/0.2696, allocations: 1.239 MB / 0.7892 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0004075/0.2701, allocations: 121.6 kB / 0.7893 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.476e-05/0.2701, allocations: 0 / 0.7893 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.694e-05/0.2701, allocations: 0 / 0.7893 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.419e-05/0.2702, allocations: 3.938 kB / 0.7893 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002174/0.2704, allocations: 19.98 kB / 0.7893 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.433e-05/0.2705, allocations: 35.91 kB / 0.7894 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.945e-05/0.2706, allocations: 12 kB / 0.7894 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.807e-05/0.2707, allocations: 11.92 kB / 0.7894 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.245e-05/0.2707, allocations: 11.94 kB / 0.7894 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.2707, allocations: 3.938 kB / 0.7894 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.35e-05/0.2708, allocations: 7.984 kB / 0.7894 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.605e-05/0.2708, allocations: 11.98 kB / 0.7894 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.982e-05/0.2709, allocations: 33.62 kB / 0.7895 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001039/0.271, allocations: 27.91 kB / 0.7895 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.786e-06/0.271, allocations: 4 kB / 0.7895 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.525e-06/0.271, allocations: 0 / 0.7895 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.271, allocations: 4 kB / 0.7895 GB, free: 9.918 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.0004364/0.2715, allocations: 343.7 kB / 0.7898 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.2715, allocations: 12.03 kB / 0.7898 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.83e-05/0.2716, allocations: 34.75 kB / 0.7899 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.31e-05/0.2716, allocations: 0.9375 kB / 0.7899 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.2717, allocations: 172.2 kB / 0.79 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.2717, allocations: 384 / 0.79 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.2718, allocations: 4.375 kB / 0.79 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001987/0.272, allocations: 66.22 kB / 0.7901 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.272, allocations: 3.938 kB / 0.7901 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.272, allocations: 0 / 0.7901 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.272, allocations: 4 kB / 0.7901 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.2722, allocations: 51.95 kB / 0.7902 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003553/0.2726, allocations: 264.9 kB / 0.7904 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003313/0.2729, allocations: 74.41 kB / 0.7905 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.273, allocations: 24.91 kB / 0.7905 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001263/0.2732, allocations: 89.09 kB / 0.7906 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.2732, allocations: 30.56 kB / 0.7906 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.2732, allocations: 0 / 0.7906 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004086/0.2736, allocations: 113.6 kB / 0.7907 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.2737, allocations: 51.41 kB / 0.7908 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.019e-05/0.2738, allocations: 102 kB / 0.7909 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.2738, allocations: 25.7 kB / 0.7909 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.034e-05/0.2738, allocations: 96.03 kB / 0.791 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.583e-05/0.2739, allocations: 3.938 kB / 0.791 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/0.2739, allocations: 9.719 kB / 0.791 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.274, allocations: 318.8 kB / 0.7913 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.386e-05/0.2741, allocations: 23.97 kB / 0.7913 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.401e-05/0.2742, allocations: 24.17 kB / 0.7914 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.2744, allocations: 64.83 kB / 0.7914 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2744, allocations: 4 kB / 0.7914 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000231/0.2746, allocations: 85.5 kB / 0.7915 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.2747, allocations: 8 kB / 0.7915 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.2747, allocations: 4 kB / 0.7915 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.2747, allocations: 0 / 0.7915 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.801e-05/0.2748, allocations: 23.92 kB / 0.7915 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.2748, allocations: 4 kB / 0.7915 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.964e-05/0.2749, allocations: 7.984 kB / 0.7916 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-06/0.2749, allocations: 0 / 0.7916 GB, free: 7.562 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 7.712e-05/0.275, allocations: 114.4 kB / 0.7917 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.258e-05/0.275, allocations: 0 / 0.7917 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002758/0.2753, allocations: 101.1 kB / 0.7918 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.2753, allocations: 0 / 0.7918 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.2753, allocations: 0 / 0.7918 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2753, allocations: 4 kB / 0.7918 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001559/0.2755, allocations: 161.6 kB / 0.7919 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2755, allocations: 0 / 0.7919 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.954e-05/0.2755, allocations: 19.98 kB / 0.7919 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2756, allocations: 3.938 kB / 0.7919 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.2756, allocations: 0 / 0.7919 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2756, allocations: 0 / 0.7919 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2756, allocations: 0 / 0.7919 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002728/0.2759, allocations: 195.3 kB / 0.7921 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.384e-05/0.2759, allocations: 77.11 kB / 0.7922 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.2759, allocations: 0 / 0.7922 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.517e-05/0.276, allocations: 11.98 kB / 0.7922 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.93e-05/0.2761, allocations: 7.922 kB / 0.7922 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.541e-06/0.2761, allocations: 4 kB / 0.7922 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.904e-05/0.2761, allocations: 83.28 kB / 0.7923 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2761, allocations: 0 / 0.7923 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002241/0.2764, allocations: 8 kB / 0.7923 GB, free: 6.684 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.0005649/0.2769, allocations: 0.7234 MB / 0.793 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000231/0.2772, allocations: 55.92 kB / 0.7931 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2772, allocations: 4 kB / 0.7931 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.2773, allocations: 31.97 kB / 0.7931 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.2776, allocations: 4 kB / 0.7931 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004342/0.278, allocations: 150.3 kB / 0.7932 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.2782, allocations: 0.6809 MB / 0.7939 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.131e-05/0.2783, allocations: 7.938 kB / 0.7939 GB, free: 4.941 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.2783, allocations: 19.42 kB / 0.7939 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.2783, allocations: 0 / 0.7939 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01115/0.2895, allocations: 1.287 MB / 0.7952 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/0.2897, allocations: 194.1 kB / 0.7954 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.659/1.949, allocations: 0 / 0.7954 GB, free: 3.473 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)