Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.495/2.495, allocations: 284.9 MB / 292.4 MB, free: 10.58 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.001431/0.001431, allocations: 176.8 kB / 360.6 MB, free: 7.312 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.57/2.57, allocations: 205.3 MB / 0.6191 GB, free: 12.23 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.001039/0.001038, allocations: 95.06 kB / 0.7321 GB, free: 44.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.27e-05/3.266e-05, allocations: 8 kB / 0.8509 GB, free: 3.352 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9038/0.9039, allocations: 115.3 MB / 0.9634 GB, free: 78.75 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2421/1.146, allocations: 136.4 MB / 1.097 GB, free: 4.07 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/1.146, allocations: 75.95 kB / 1.097 GB, free: 3.996 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.001486/1.148, allocations: 0.5157 MB / 1.097 GB, free: 3.488 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.413e-06/1.148, allocations: 0.5938 kB / 1.097 GB, free: 3.488 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.729e-06/1.148, allocations: 0 / 1.097 GB, free: 3.488 MB / 0.698 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.0002892/1.148, allocations: 319.7 kB / 1.097 GB, free: 3.137 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/1.148, allocations: 8.031 kB / 1.098 GB, free: 3.129 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.277e-05/1.148, allocations: 1.703 kB / 1.098 GB, free: 3.129 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/1.148, allocations: 163.7 kB / 1.098 GB, free: 2.93 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/1.148, allocations: 0 / 1.098 GB, free: 2.93 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/1.149, allocations: 2.359 kB / 1.098 GB, free: 2.93 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.336e-05/1.149, allocations: 7.938 kB / 1.098 GB, free: 2.922 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.748e-05/1.149, allocations: 33.69 kB / 1.098 GB, free: 2.883 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/1.149, allocations: 5.141 kB / 1.098 GB, free: 2.883 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/1.149, allocations: 0.5938 kB / 1.098 GB, free: 2.883 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/1.149, allocations: 0 / 1.098 GB, free: 2.883 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001531/1.149, allocations: 134.8 kB / 1.098 GB, free: 2.715 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.413e-05/1.149, allocations: 21.75 kB / 1.098 GB, free: 2.688 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.355e-05/1.149, allocations: 9.344 kB / 1.098 GB, free: 2.676 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001643/1.149, allocations: 81.67 kB / 1.098 GB, free: 2.578 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/1.149, allocations: 31.19 kB / 1.098 GB, free: 2.539 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 1.634e-06/1.149, allocations: 3.75 kB / 1.098 GB, free: 2.539 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0001663/1.149, allocations: 45.62 kB / 1.098 GB, free: 2.488 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/1.149, allocations: 54.88 kB / 1.098 GB, free: 2.426 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.533e-05/1.149, allocations: 85 kB / 1.098 GB, free: 2.336 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/1.15, allocations: 25.7 kB / 1.098 GB, free: 2.305 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.708e-05/1.15, allocations: 80.14 kB / 1.098 GB, free: 2.223 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/1.15, allocations: 7.906 kB / 1.098 GB, free: 2.215 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-06/1.15, allocations: 0 / 1.098 GB, free: 2.215 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001262/1.15, allocations: 314.8 kB / 1.099 GB, free: 1.898 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.177e-05/1.15, allocations: 0.5312 kB / 1.099 GB, free: 1.898 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.648e-05/1.15, allocations: 4.594 kB / 1.099 GB, free: 1.895 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.881e-05/1.15, allocations: 1.5 kB / 1.099 GB, free: 1.895 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/1.15, allocations: 0 / 1.099 GB, free: 1.895 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.991e-05/1.15, allocations: 43.77 kB / 1.099 GB, free: 1.848 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/1.15, allocations: 13.31 kB / 1.099 GB, free: 1.836 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/1.15, allocations: 0 / 1.099 GB, free: 1.836 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/1.15, allocations: 0.6562 kB / 1.099 GB, free: 1.836 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.925e-05/1.15, allocations: 0.6875 kB / 1.099 GB, free: 1.836 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/1.15, allocations: 6.344 kB / 1.099 GB, free: 1.832 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.113e-05/1.15, allocations: 4.438 kB / 1.099 GB, free: 1.828 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/1.15, allocations: 0.75 kB / 1.099 GB, free: 1.828 MB / 0.698 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 8.667e-05/1.15, allocations: 113.4 kB / 1.099 GB, free: 1.711 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.387e-05/1.15, allocations: 38.25 kB / 1.099 GB, free: 1.668 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.414e-06/1.15, allocations: 0 / 1.099 GB, free: 1.668 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001342/1.151, allocations: 50.19 kB / 1.099 GB, free: 1.613 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/1.151, allocations: 0.5312 kB / 1.099 GB, free: 1.613 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/1.151, allocations: 0.7188 kB / 1.099 GB, free: 1.613 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/1.151, allocations: 0 / 1.099 GB, free: 1.613 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/1.151, allocations: 134.9 kB / 1.099 GB, free: 1.445 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/1.151, allocations: 0 / 1.099 GB, free: 1.445 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.79e-05/1.151, allocations: 6.812 kB / 1.099 GB, free: 1.441 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/1.151, allocations: 5.359 kB / 1.099 GB, free: 1.438 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/1.151, allocations: 0.7812 kB / 1.099 GB, free: 1.438 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/1.151, allocations: 0 / 1.099 GB, free: 1.438 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.151, allocations: 0.6875 kB / 1.099 GB, free: 1.438 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001181/1.151, allocations: 64.09 kB / 1.099 GB, free: 1.359 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.636e-05/1.151, allocations: 81.11 kB / 1.099 GB, free: 1.262 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/1.151, allocations: 4.453 kB / 1.099 GB, free: 1.258 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.587e-05/1.151, allocations: 0.5938 kB / 1.099 GB, free: 1.258 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.106e-05/1.151, allocations: 0.875 kB / 1.099 GB, free: 1.258 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-06/1.151, allocations: 3.938 kB / 1.099 GB, free: 1.254 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.691e-05/1.151, allocations: 76.38 kB / 1.099 GB, free: 1.18 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.01e-07/1.151, allocations: 4 kB / 1.099 GB, free: 1.176 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002655/1.151, allocations: 10.61 kB / 1.099 GB, free: 1.168 MB / 0.698 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.0005642/1.152, allocations: 0.603 MB / 1.1 GB, free: 0.543 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 7.551e-05/1.152, allocations: 11.94 kB / 1.1 GB, free: 0.5312 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/1.152, allocations: 2.594 kB / 1.1 GB, free: 0.5312 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 2.3e-05/1.152, allocations: 7.938 kB / 1.1 GB, free: 0.5234 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001198/1.152, allocations: 8.109 kB / 1.1 GB, free: 0.5195 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003247/1.153, allocations: 83.03 kB / 1.1 GB, free: 412 kB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/1.153, allocations: 0.6768 MB / 1.101 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.224e-05/1.153, allocations: 3.906 kB / 1.101 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.53e-05/1.153, allocations: 11.44 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of SimCode: time 7.82e-07/1.153, allocations: 384 / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03745/1.19, allocations: 0.5685 MB / 1.101 GB, free: 15.15 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003359/1.191, allocations: 144 kB / 1.101 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.431/3.622, allocations: 0 / 1.101 GB, free: 14.96 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)