Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.461/1.461, allocations: 249.3 MB / 261.8 MB, free: 5.906 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.001025/0.001025, allocations: 176.8 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.573/1.573, allocations: 205.2 MB / 0.572 GB, free: 10.68 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.0008886/0.0008887, allocations: 91.33 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.439e-05/3.458e-05, allocations: 4 kB / 0.788 GB, free: 97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.246, allocations: 106.3 MB / 0.8919 GB, free: 6.562 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8025/1.049, allocations: 130.9 MB / 1.02 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/1.049, allocations: 82.16 kB / 1.02 GB, free: 3.734 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001252/1.05, allocations: 0.5157 MB / 1.02 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.356e-06/1.05, allocations: 0 / 1.02 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.121e-06/1.05, allocations: 6.625 kB / 1.02 GB, free: 3.246 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.000242/1.051, allocations: 315.2 kB / 1.021 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/1.051, allocations: 8.031 kB / 1.021 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.797e-05/1.051, allocations: 30.56 kB / 1.021 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.353e-05/1.051, allocations: 4 kB / 1.021 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.564e-05/1.051, allocations: 167 kB / 1.021 GB, free: 2.648 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/1.051, allocations: 0 / 1.021 GB, free: 2.648 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/1.051, allocations: 0 / 1.021 GB, free: 2.648 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/1.051, allocations: 37.69 kB / 1.021 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/1.051, allocations: 0 / 1.021 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/1.051, allocations: 3.812 kB / 1.021 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/1.051, allocations: 0 / 1.021 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.411e-05/1.051, allocations: 4 kB / 1.021 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001761/1.051, allocations: 153.6 kB / 1.021 GB, free: 2.402 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.363e-05/1.051, allocations: 29.56 kB / 1.021 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.674e-05/1.051, allocations: 8.797 kB / 1.021 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000143/1.051, allocations: 85.17 kB / 1.021 GB, free: 2.254 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/1.051, allocations: 33.81 kB / 1.021 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/1.051, allocations: 4 kB / 1.021 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001237/1.052, allocations: 33.69 kB / 1.021 GB, free: 2.172 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/1.052, allocations: 51.41 kB / 1.021 GB, free: 2.109 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.206e-05/1.052, allocations: 89 kB / 1.021 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/1.052, allocations: 29.14 kB / 1.021 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.243e-05/1.052, allocations: 84.17 kB / 1.021 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/1.052, allocations: 3.984 kB / 1.021 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-06/1.052, allocations: 3.938 kB / 1.021 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001208/1.052, allocations: 310.8 kB / 1.022 GB, free: 1.578 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.154e-05/1.052, allocations: 4 kB / 1.022 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.072e-06/1.052, allocations: 0 / 1.022 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.441e-05/1.052, allocations: 7.438 kB / 1.022 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/1.052, allocations: 3.953 kB / 1.022 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.314e-05/1.052, allocations: 45.66 kB / 1.022 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/1.052, allocations: 4 kB / 1.022 GB, free: 1.512 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/1.052, allocations: 0 / 1.022 GB, free: 1.512 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/1.052, allocations: 0 / 1.022 GB, free: 1.512 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.019e-05/1.052, allocations: 7.984 kB / 1.022 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/1.052, allocations: 0 / 1.022 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.243e-05/1.052, allocations: 0 / 1.022 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.787e-06/1.052, allocations: 7.984 kB / 1.022 GB, free: 1.496 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 5.629e-05/1.052, allocations: 108.4 kB / 1.022 GB, free: 1.387 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.274e-06/1.052, allocations: 3.953 kB / 1.022 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/1.052, allocations: 48.19 kB / 1.022 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/1.052, allocations: 3.984 kB / 1.022 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/1.052, allocations: 3.938 kB / 1.022 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/1.052, allocations: 0 / 1.022 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.904e-05/1.053, allocations: 145.7 kB / 1.022 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/1.053, allocations: 2.312 kB / 1.022 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.388e-05/1.053, allocations: 7.953 kB / 1.022 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/1.053, allocations: 0 / 1.022 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/1.053, allocations: 3.984 kB / 1.022 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/1.053, allocations: 32 / 1.022 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/1.053, allocations: 4 kB / 1.022 GB, free: 1.117 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.151e-05/1.053, allocations: 60.58 kB / 1.022 GB, free: 1.043 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.304e-05/1.053, allocations: 85.09 kB / 1.022 GB, free: 0.9414 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/1.053, allocations: 3.953 kB / 1.022 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.929e-06/1.053, allocations: 0 / 1.022 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.715e-05/1.053, allocations: 3.812 kB / 1.022 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/1.053, allocations: 7.938 kB / 1.022 GB, free: 0.9297 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.687e-05/1.053, allocations: 82.03 kB / 1.022 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.2e-07/1.053, allocations: 0 / 1.022 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001871/1.053, allocations: 8 kB / 1.022 GB, free: 0.8438 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.0004201/1.053, allocations: 0.6016 MB / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 6.933e-05/1.054, allocations: 19.45 kB / 1.023 GB, free: 208 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/1.054, allocations: 0 / 1.023 GB, free: 208 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.645e-05/1.054, allocations: 4 kB / 1.023 GB, free: 204 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.558e-05/1.054, allocations: 3.953 kB / 1.023 GB, free: 200 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002868/1.054, allocations: 90.7 kB / 1.023 GB, free: 76 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002383/1.054, allocations: 0.677 MB / 1.024 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 1.614e-05/1.054, allocations: 0 / 1.024 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.081e-05/1.054, allocations: 11.44 kB / 1.024 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of SimCode: time 3.31e-07/1.054, allocations: 4.125 kB / 1.024 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01202/1.066, allocations: 0.8626 MB / 1.025 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/1.067, allocations: 173.8 kB / 1.025 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.55/2.616, allocations: 0 / 1.025 GB, free: 14.38 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)