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.001325/0.001325, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001302/0.001302, allocations: 192.9 kB / 16.25 MB, free: 6.629 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.255/1.255, allocations: 205.1 MB / 222.1 MB, free: 4.664 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.468/1.468, allocations: 292.3 MB / 0.5486 GB, free: 13.64 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.001377/0.001377, allocations: 68.09 kB / 0.6711 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1653, allocations: 114.5 MB / 0.783 GB, free: 13.85 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002219/0.1675, allocations: 1.586 MB / 0.7845 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002744/0.1678, allocations: 121.5 kB / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.427e-05/0.1678, allocations: 0 / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.882e-05/0.1679, allocations: 3.984 kB / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.298e-05/0.1679, allocations: 4 kB / 0.7846 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001657/0.1681, allocations: 23.91 kB / 0.7847 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.696e-05/0.1681, allocations: 27.98 kB / 0.7847 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.447e-05/0.1682, allocations: 7.938 kB / 0.7847 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 3.182e-05/0.1683, allocations: 11.98 kB / 0.7847 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 3.902e-05/0.1683, allocations: 15.92 kB / 0.7847 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.17e-05/0.1683, allocations: 7.938 kB / 0.7847 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.559e-05/0.1684, allocations: 12 kB / 0.7847 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.1e-05/0.1684, allocations: 15.98 kB / 0.7848 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.152e-05/0.1684, allocations: 11.92 kB / 0.7848 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.03e-05/0.1685, allocations: 31.91 kB / 0.7848 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.1685, allocations: 0 / 0.7848 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.122e-06/0.1685, allocations: 0 / 0.7848 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.1685, allocations: 0 / 0.7848 GB, free: 11.95 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.0003758/0.1689, allocations: 347.7 kB / 0.7851 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.1689, allocations: 8.031 kB / 0.7851 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.011e-05/0.169, allocations: 30.75 kB / 0.7852 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.055e-05/0.169, allocations: 8.938 kB / 0.7852 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.975e-05/0.1691, allocations: 168.3 kB / 0.7853 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.1691, allocations: 8.375 kB / 0.7853 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.084e-06/0.1691, allocations: 384 / 0.7853 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001516/0.1693, allocations: 58.22 kB / 0.7854 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.1693, allocations: 3.938 kB / 0.7854 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.1693, allocations: 0 / 0.7854 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.206e-06/0.1693, allocations: 3.938 kB / 0.7854 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001705/0.1695, allocations: 47.95 kB / 0.7854 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000279/0.1698, allocations: 260.9 kB / 0.7857 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002748/0.1701, allocations: 58.53 kB / 0.7858 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.764e-05/0.1702, allocations: 32.89 kB / 0.7858 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.442e-05/0.1703, allocations: 81.05 kB / 0.7859 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.844e-05/0.1703, allocations: 34.56 kB / 0.7859 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.1703, allocations: 0 / 0.7859 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.000326/0.1706, allocations: 93.62 kB / 0.786 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/0.1707, allocations: 51.41 kB / 0.786 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.361e-05/0.1707, allocations: 101.9 kB / 0.7861 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.1707, allocations: 25.7 kB / 0.7862 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.087e-05/0.1708, allocations: 95.97 kB / 0.7862 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.242e-05/0.1708, allocations: 7.844 kB / 0.7863 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.1708, allocations: 17.72 kB / 0.7863 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.206e-05/0.1709, allocations: 310.8 kB / 0.7866 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.212e-05/0.171, allocations: 27.91 kB / 0.7866 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.282e-05/0.1711, allocations: 19.98 kB / 0.7866 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.1713, allocations: 53.22 kB / 0.7867 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1713, allocations: 4 kB / 0.7867 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001935/0.1715, allocations: 69.7 kB / 0.7867 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/0.1715, allocations: 4 kB / 0.7867 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.1715, allocations: 7.969 kB / 0.7867 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.1715, allocations: 4 kB / 0.7868 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.242e-05/0.1716, allocations: 8 kB / 0.7868 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.1716, allocations: 3.984 kB / 0.7868 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.321e-05/0.1716, allocations: 4 kB / 0.7868 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.1717, allocations: 7.938 kB / 0.7868 GB, free: 9.668 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 5.845e-05/0.1717, allocations: 113.8 kB / 0.7869 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.149e-05/0.1717, allocations: 0 / 0.7869 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002305/0.172, allocations: 89.12 kB / 0.787 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.172, allocations: 0 / 0.787 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.172, allocations: 0 / 0.787 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.172, allocations: 0 / 0.787 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001382/0.1721, allocations: 165.6 kB / 0.7871 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1722, allocations: 3.984 kB / 0.7871 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.776e-05/0.1722, allocations: 11.94 kB / 0.7871 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.1722, allocations: 0 / 0.7871 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.1722, allocations: 3.984 kB / 0.7871 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.1723, allocations: 0 / 0.7871 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1723, allocations: 7.938 kB / 0.7872 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002209/0.1725, allocations: 171.4 kB / 0.7873 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 2.634e-05/0.1725, allocations: 77.11 kB / 0.7874 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.1725, allocations: 3.984 kB / 0.7874 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.611e-05/0.1726, allocations: 8 kB / 0.7874 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.1727, allocations: 11.98 kB / 0.7874 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-06/0.1727, allocations: 0 / 0.7874 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.586e-05/0.1727, allocations: 83.28 kB / 0.7875 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1727, allocations: 0 / 0.7875 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002047/0.1729, allocations: 8 kB / 0.7875 GB, free: 8.82 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.0004634/0.1734, allocations: 0.7124 MB / 0.7882 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001934/0.1736, allocations: 43.95 kB / 0.7882 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1736, allocations: 3.938 kB / 0.7882 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.74e-05/0.1737, allocations: 23.97 kB / 0.7883 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002184/0.1739, allocations: 11.06 kB / 0.7883 GB, free: 8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003573/0.1743, allocations: 159 kB / 0.7884 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002058/0.1745, allocations: 0.6807 MB / 0.7891 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.789e-05/0.1745, allocations: 4 kB / 0.7891 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.138e-05/0.1746, allocations: 15.44 kB / 0.7891 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.1746, allocations: 0 / 0.7891 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8841/1.059, allocations: 1.402 MB / 0.7905 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002059/1.059, allocations: 205.8 kB / 0.7907 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.072/3.131, allocations: 0 / 0.7907 GB, free: 5.496 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)