Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.249/2.249, allocations: 251 MB / 265.9 MB, free: 11.7 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001536/0.001536, allocations: 179.5 kB / 325.5 MB, free: 2.918 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.367/2.367, allocations: 205.4 MB / 0.5764 GB, free: 21.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001179/0.001179, allocations: 102.1 kB / 0.6809 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006946/0.0006946, allocations: 17.16 kB / 0.795 GB, free: 136 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2382, allocations: 106.3 MB / 0.8988 GB, free: 66 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2262/0.4644, allocations: 131.8 MB / 1.027 GB, free: 14.04 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004499/0.465, allocations: 67.97 kB / 1.028 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00637/0.4714, allocations: 0.933 MB / 1.028 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.667e-06/0.4714, allocations: 4 kB / 1.028 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.081e-05/0.4715, allocations: 0 / 1.028 GB, free: 13.04 MB / 0.6823 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.0009371/0.4724, allocations: 355.2 kB / 1.029 GB, free: 12.64 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 8.001e-05/0.4725, allocations: 8.031 kB / 1.029 GB, free: 12.63 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.264e-05/0.4726, allocations: 34.56 kB / 1.029 GB, free: 12.59 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.118e-05/0.4727, allocations: 4 kB / 1.029 GB, free: 12.59 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000246/0.473, allocations: 174.9 kB / 1.029 GB, free: 12.38 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.144e-05/0.473, allocations: 4 kB / 1.029 GB, free: 12.37 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.9e-05/0.4731, allocations: 4 kB / 1.029 GB, free: 12.37 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004455/0.4735, allocations: 65.67 kB / 1.029 GB, free: 12.3 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.4736, allocations: 0 / 1.029 GB, free: 12.3 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.4736, allocations: 0 / 1.029 GB, free: 12.3 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.4736, allocations: 0 / 1.029 GB, free: 12.3 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005863/0.4742, allocations: 55.95 kB / 1.029 GB, free: 12.24 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007848/0.4751, allocations: 276.9 kB / 1.029 GB, free: 11.92 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008099/0.4759, allocations: 70.47 kB / 1.029 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002342/0.4762, allocations: 81.17 kB / 1.03 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/0.4762, allocations: 30.56 kB / 1.03 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 4.919e-06/0.4762, allocations: 0 / 1.03 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0009891/0.4773, allocations: 117.8 kB / 1.03 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.416e-05/0.4773, allocations: 55.36 kB / 1.03 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.4775, allocations: 92.98 kB / 1.03 GB, free: 11.42 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.4775, allocations: 25.7 kB / 1.03 GB, free: 11.39 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.972e-05/0.4776, allocations: 96.03 kB / 1.03 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.766e-05/0.4777, allocations: 4 kB / 1.03 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.371e-05/0.4777, allocations: 3.938 kB / 1.03 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002075/0.4779, allocations: 314.8 kB / 1.03 GB, free: 10.97 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002639/0.4782, allocations: 19.98 kB / 1.03 GB, free: 10.95 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.4785, allocations: 27.97 kB / 1.03 GB, free: 10.92 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002351/0.4787, allocations: 27.98 kB / 1.03 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.4788, allocations: 0 / 1.03 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004349/0.4792, allocations: 85.55 kB / 1.03 GB, free: 10.8 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.4793, allocations: 8 kB / 1.03 GB, free: 10.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.4793, allocations: 3.938 kB / 1.03 GB, free: 10.79 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.4793, allocations: 4 kB / 1.03 GB, free: 10.79 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.4795, allocations: 19.92 kB / 1.03 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.4795, allocations: 0 / 1.03 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.4796, allocations: 11.95 kB / 1.03 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.4796, allocations: 0 / 1.03 GB, free: 10.76 MB / 0.6823 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,fac.u) * 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 0.0001131/0.4798, allocations: 118.9 kB / 1.031 GB, free: 10.63 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.172e-05/0.4798, allocations: 0 / 1.031 GB, free: 10.63 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004634/0.4803, allocations: 93.14 kB / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.4803, allocations: 0 / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.4803, allocations: 4 kB / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.4803, allocations: 0 / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002364/0.4806, allocations: 169.6 kB / 1.031 GB, free: 10.31 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.4806, allocations: 0 / 1.031 GB, free: 10.31 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.4808, allocations: 15.92 kB / 1.031 GB, free: 10.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.361e-06/0.4808, allocations: 0 / 1.031 GB, free: 10.3 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.4808, allocations: 4 kB / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.4808, allocations: 0 / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.4808, allocations: 0 / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004644/0.4813, allocations: 187.4 kB / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.93e-05/0.4814, allocations: 85.09 kB / 1.031 GB, free: 9.992 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.4814, allocations: 4 kB / 1.031 GB, free: 9.988 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.4816, allocations: 11.94 kB / 1.031 GB, free: 9.977 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.8e-05/0.4816, allocations: 7.984 kB / 1.031 GB, free: 9.969 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.4817, allocations: 0 / 1.031 GB, free: 9.969 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.279e-05/0.4817, allocations: 87.69 kB / 1.031 GB, free: 9.883 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.9e-07/0.4817, allocations: 0 / 1.031 GB, free: 9.883 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000329/0.4821, allocations: 15.94 kB / 1.031 GB, free: 9.867 MB / 0.6823 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,fac.u) * 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.0008619/0.483, allocations: 0.7242 MB / 1.032 GB, free: 9.117 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003931/0.4834, allocations: 59.98 kB / 1.032 GB, free: 9.059 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.4834, allocations: 0 / 1.032 GB, free: 9.059 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001886/0.4836, allocations: 35.91 kB / 1.032 GB, free: 9.023 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002386/0.4838, allocations: 1.875 kB / 1.032 GB, free: 9.023 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006302/0.4845, allocations: 158.3 kB / 1.032 GB, free: 8.824 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.4848, allocations: 0.6809 MB / 1.033 GB, free: 8.117 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 5.625e-05/0.4849, allocations: 7.984 kB / 1.033 GB, free: 8.109 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.594e-05/0.4849, allocations: 11.44 kB / 1.033 GB, free: 8.098 MB / 0.6823 GB Notification: Performance of SimCode: time 1.072e-06/0.4849, allocations: 3.938 kB / 1.033 GB, free: 8.094 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02456/0.5095, allocations: 1.262 MB / 1.034 GB, free: 6.941 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003033/0.5099, allocations: 177.8 kB / 1.034 GB, free: 6.695 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.372/2.882, allocations: 0 / 1.034 GB, free: 6.695 MB / 0.6823 GB