Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Functions_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.285/2.285, allocations: 248.7 MB / 256.2 MB, free: 7.074 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00148/0.00148, allocations: 182.1 kB / 315.4 MB, free: 4.012 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.011/2.011, allocations: 205.3 MB / 0.5662 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001026/0.001026, allocations: 90.19 kB / 0.6704 GB, free: 5.812 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.794e-05/2.795e-05, allocations: 8 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2067, allocations: 106.3 MB / 0.8841 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9145/1.121, allocations: 131 MB / 1.012 GB, free: 8 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004045/1.122, allocations: 73.7 kB / 1.012 GB, free: 7.957 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00205/1.124, allocations: 0.5292 MB / 1.013 GB, free: 7.473 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.475e-06/1.124, allocations: 2.625 kB / 1.013 GB, free: 7.473 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.632e-06/1.124, allocations: 0 / 1.013 GB, free: 7.473 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003712/1.124, allocations: 318.5 kB / 1.013 GB, free: 7.117 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/1.124, allocations: 8.031 kB / 1.013 GB, free: 7.109 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.506e-05/1.124, allocations: 0 / 1.013 GB, free: 7.109 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/1.125, allocations: 166.8 kB / 1.013 GB, free: 6.91 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/1.125, allocations: 0 / 1.013 GB, free: 6.91 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.533e-05/1.125, allocations: 8 kB / 1.013 GB, free: 6.902 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.818e-05/1.125, allocations: 0 / 1.013 GB, free: 6.902 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.981e-05/1.125, allocations: 33.69 kB / 1.013 GB, free: 6.863 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/1.125, allocations: 3.938 kB / 1.013 GB, free: 6.863 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/1.125, allocations: 0 / 1.013 GB, free: 6.863 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/1.125, allocations: 0 / 1.013 GB, free: 6.863 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002112/1.125, allocations: 138.1 kB / 1.013 GB, free: 6.691 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.277e-05/1.125, allocations: 21.48 kB / 1.013 GB, free: 6.664 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.419e-05/1.125, allocations: 12.84 kB / 1.013 GB, free: 6.648 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002122/1.126, allocations: 81.17 kB / 1.013 GB, free: 6.551 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/1.126, allocations: 34 kB / 1.013 GB, free: 6.512 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 3.056e-06/1.126, allocations: 0 / 1.013 GB, free: 6.512 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.000261/1.126, allocations: 38.44 kB / 1.013 GB, free: 6.469 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/1.126, allocations: 51.41 kB / 1.013 GB, free: 6.406 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.231e-05/1.126, allocations: 85 kB / 1.014 GB, free: 6.316 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/1.126, allocations: 29.73 kB / 1.014 GB, free: 6.281 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.799e-05/1.126, allocations: 84.08 kB / 1.014 GB, free: 6.195 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/1.126, allocations: 7.25 kB / 1.014 GB, free: 6.191 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.679e-06/1.126, allocations: 0 / 1.014 GB, free: 6.191 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001756/1.126, allocations: 310.8 kB / 1.014 GB, free: 5.879 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.694e-05/1.126, allocations: 3.938 kB / 1.014 GB, free: 5.875 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.955e-05/1.126, allocations: 4 kB / 1.014 GB, free: 5.871 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.283e-05/1.127, allocations: 0 / 1.014 GB, free: 5.871 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/1.127, allocations: 0 / 1.014 GB, free: 5.871 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001519/1.127, allocations: 49.14 kB / 1.014 GB, free: 5.82 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/1.127, allocations: 8 kB / 1.014 GB, free: 5.812 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/1.127, allocations: 0 / 1.014 GB, free: 5.812 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/1.127, allocations: 0 / 1.014 GB, free: 5.812 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.44e-05/1.127, allocations: 4 kB / 1.014 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/1.127, allocations: 0 / 1.014 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.438e-05/1.127, allocations: 3.906 kB / 1.014 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/1.127, allocations: 0 / 1.014 GB, free: 5.805 MB / 0.6355 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,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001038/1.127, allocations: 101 kB / 1.014 GB, free: 5.699 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001358/1.127, allocations: 49.61 kB / 1.014 GB, free: 5.645 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.592e-05/1.127, allocations: 0 / 1.014 GB, free: 5.645 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001829/1.128, allocations: 48.77 kB / 1.014 GB, free: 5.586 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/1.128, allocations: 3.938 kB / 1.014 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/1.128, allocations: 0 / 1.014 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/1.128, allocations: 4 kB / 1.014 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/1.128, allocations: 126.2 kB / 1.014 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/1.128, allocations: 3.953 kB / 1.014 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.683e-05/1.128, allocations: 4 kB / 1.014 GB, free: 5.41 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/1.128, allocations: 4.062 kB / 1.014 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/1.128, allocations: 3.938 kB / 1.014 GB, free: 5.402 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/1.128, allocations: 0 / 1.014 GB, free: 5.402 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/1.128, allocations: 0 / 1.014 GB, free: 5.402 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001724/1.128, allocations: 63.88 kB / 1.014 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.816e-05/1.128, allocations: 85.06 kB / 1.015 GB, free: 5.227 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/1.128, allocations: 0 / 1.015 GB, free: 5.227 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.617e-05/1.128, allocations: 0.875 kB / 1.015 GB, free: 5.227 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/1.128, allocations: 4.031 kB / 1.015 GB, free: 5.223 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/1.128, allocations: 0 / 1.015 GB, free: 5.223 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.133e-05/1.128, allocations: 79.28 kB / 1.015 GB, free: 5.145 MB / 0.6355 GB Notification: Performance of sort global known variables: time 9.32e-07/1.128, allocations: 0 / 1.015 GB, free: 5.145 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0004242/1.129, allocations: 7.984 kB / 1.015 GB, free: 5.137 MB / 0.6355 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,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0007128/1.13, allocations: 0.6143 MB / 1.015 GB, free: 4.5 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001099/1.13, allocations: 7.688 kB / 1.015 GB, free: 4.496 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.13, allocations: 0 / 1.015 GB, free: 4.496 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.185e-05/1.13, allocations: 4 kB / 1.015 GB, free: 4.492 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001606/1.13, allocations: 0 / 1.015 GB, free: 4.492 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004666/1.131, allocations: 93.45 kB / 1.015 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/1.131, allocations: 0.6806 MB / 1.016 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.044e-05/1.131, allocations: 5.562 kB / 1.016 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.887e-05/1.131, allocations: 14.75 kB / 1.016 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of SimCode: time 1.523e-06/1.131, allocations: 0 / 1.016 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03542/1.167, allocations: 0.5677 MB / 1.017 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003879/1.167, allocations: 149.4 kB / 1.017 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.326/3.493, allocations: 1.094 kB / 1.017 GB, free: 2.887 MB / 0.6355 GB