Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.637/1.637, allocations: 289.9 MB / 297.4 MB, free: 6.305 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.001162/0.001162, allocations: 176.9 kB / 366.7 MB, free: 1.617 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.067/2.067, allocations: 205.2 MB / 0.626 GB, free: 7.129 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001013/0.001012, allocations: 87.22 kB / 0.74 GB, free: 39.51 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.806e-05/4.833e-05, allocations: 8 kB / 0.8598 GB, free: 12.91 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8792/0.8793, allocations: 116.3 MB / 0.9734 GB, free: 76.27 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2129/1.092, allocations: 137.5 MB / 1.108 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/1.093, allocations: 79.03 kB / 1.108 GB, free: 12.54 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.001174/1.094, allocations: 0.5264 MB / 1.108 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.204e-06/1.094, allocations: 1.375 kB / 1.108 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.851e-06/1.094, allocations: 0 / 1.108 GB, free: 12.02 MB / 0.7136 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.0002646/1.094, allocations: 317.1 kB / 1.109 GB, free: 11.67 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/1.094, allocations: 8.594 kB / 1.109 GB, free: 11.66 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.972e-05/1.094, allocations: 0 / 1.109 GB, free: 11.66 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/1.094, allocations: 167.6 kB / 1.109 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/1.094, allocations: 4.5 kB / 1.109 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/1.094, allocations: 0.5312 kB / 1.109 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.481e-05/1.094, allocations: 8 kB / 1.109 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.183e-05/1.095, allocations: 31.23 kB / 1.109 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.383e-06/1.095, allocations: 0 / 1.109 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/1.095, allocations: 0 / 1.109 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/1.095, allocations: 4.594 kB / 1.109 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/1.095, allocations: 130.2 kB / 1.109 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.955e-05/1.095, allocations: 27.91 kB / 1.109 GB, free: 11.21 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.893e-05/1.095, allocations: 8.922 kB / 1.109 GB, free: 11.2 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001427/1.095, allocations: 77.89 kB / 1.109 GB, free: 11.11 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/1.095, allocations: 35.25 kB / 1.109 GB, free: 11.07 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=2): time 1.153e-06/1.095, allocations: 0 / 1.109 GB, free: 11.07 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2): time 0.000157/1.095, allocations: 42.31 kB / 1.109 GB, free: 11.02 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/1.095, allocations: 52.06 kB / 1.109 GB, free: 10.96 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.838e-05/1.095, allocations: 85.59 kB / 1.109 GB, free: 10.87 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/1.095, allocations: 29.7 kB / 1.109 GB, free: 10.83 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.905e-05/1.095, allocations: 80.73 kB / 1.109 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.21e-05/1.095, allocations: 4.438 kB / 1.109 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-06/1.095, allocations: 0.5 kB / 1.109 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001088/1.095, allocations: 311.4 kB / 1.11 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.227e-06/1.095, allocations: 0.5938 kB / 1.11 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.26e-06/1.096, allocations: 4.875 kB / 1.11 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.892e-05/1.096, allocations: 11.98 kB / 1.11 GB, free: 10.42 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/1.096, allocations: 1.469 kB / 1.11 GB, free: 10.42 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.342e-05/1.096, allocations: 35.2 kB / 1.11 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/1.096, allocations: 8.734 kB / 1.11 GB, free: 10.37 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/1.096, allocations: 2.031 kB / 1.11 GB, free: 10.37 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/1.096, allocations: 0 / 1.11 GB, free: 10.37 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.815e-05/1.096, allocations: 11.92 kB / 1.11 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/1.096, allocations: 0 / 1.11 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.499e-05/1.096, allocations: 3.938 kB / 1.11 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-06/1.096, allocations: 2.906 kB / 1.11 GB, free: 10.36 MB / 0.7136 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 6.389e-05/1.096, allocations: 105 kB / 1.11 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 5.958e-05/1.096, allocations: 37.7 kB / 1.11 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.779e-06/1.096, allocations: 7.938 kB / 1.11 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/1.096, allocations: 41.38 kB / 1.11 GB, free: 10.14 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/1.096, allocations: 5.281 kB / 1.11 GB, free: 10.14 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/1.096, allocations: 0 / 1.11 GB, free: 10.14 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/1.096, allocations: 0 / 1.11 GB, free: 10.14 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.45e-05/1.096, allocations: 126.2 kB / 1.11 GB, free: 9.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/1.096, allocations: 3.094 kB / 1.11 GB, free: 9.98 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.291e-05/1.096, allocations: 6.312 kB / 1.11 GB, free: 9.977 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/1.096, allocations: 0 / 1.11 GB, free: 9.977 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/1.096, allocations: 5.516 kB / 1.11 GB, free: 9.973 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/1.096, allocations: 0 / 1.11 GB, free: 9.973 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.096, allocations: 4 kB / 1.11 GB, free: 9.969 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.25e-05/1.096, allocations: 62.31 kB / 1.11 GB, free: 9.891 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.719e-05/1.096, allocations: 79.55 kB / 1.11 GB, free: 9.797 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/1.096, allocations: 0 / 1.11 GB, free: 9.797 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.179e-05/1.096, allocations: 3.953 kB / 1.11 GB, free: 9.793 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.134e-05/1.096, allocations: 3.984 kB / 1.11 GB, free: 9.789 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-06/1.096, allocations: 8 kB / 1.11 GB, free: 9.781 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.196e-05/1.097, allocations: 75.28 kB / 1.11 GB, free: 9.707 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.5e-07/1.097, allocations: 4.875 kB / 1.11 GB, free: 9.703 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000183/1.097, allocations: 4.625 kB / 1.11 GB, free: 9.699 MB / 0.7136 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.0004268/1.097, allocations: 0.6116 MB / 1.111 GB, free: 9.066 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 6.833e-05/1.097, allocations: 8 kB / 1.111 GB, free: 9.059 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/1.097, allocations: 0 / 1.111 GB, free: 9.059 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.73e-05/1.097, allocations: 11.92 kB / 1.111 GB, free: 9.047 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.808e-05/1.097, allocations: 5.359 kB / 1.111 GB, free: 9.043 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002552/1.098, allocations: 83.55 kB / 1.111 GB, free: 8.93 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/1.098, allocations: 0.6768 MB / 1.112 GB, free: 8.227 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.577e-05/1.098, allocations: 3.906 kB / 1.112 GB, free: 8.223 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.882e-05/1.098, allocations: 7.438 kB / 1.112 GB, free: 8.215 MB / 0.7136 GB Notification: Performance of SimCode: time 2.4e-07/1.098, allocations: 0 / 1.112 GB, free: 8.215 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02631/1.124, allocations: 0.5697 MB / 1.112 GB, free: 7.68 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/1.124, allocations: 142.8 kB / 1.112 GB, free: 7.488 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.398/2.523, allocations: 0 / 1.112 GB, free: 7.488 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)