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.409/1.409, allocations: 251.9 MB / 266.8 MB, free: 11.04 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.001166/0.001166, allocations: 187.8 kB / 326.5 MB, free: 2.254 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.221/2.221, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.0009458/0.0009458, allocations: 84.61 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003568, allocations: 17.48 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2381, allocations: 106.3 MB / 0.9002 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1806/0.4188, allocations: 131 MB / 1.028 GB, free: 12.63 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.4191, allocations: 75.95 kB / 1.028 GB, free: 12.56 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001148/0.4203, allocations: 0.524 MB / 1.029 GB, free: 12.03 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.354e-06/0.4203, allocations: 0 / 1.029 GB, free: 12.03 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.471e-06/0.4203, allocations: 0 / 1.029 GB, free: 12.03 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002778/0.4206, allocations: 323.4 kB / 1.029 GB, free: 11.67 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.4207, allocations: 8.031 kB / 1.029 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.548e-05/0.4207, allocations: 30.56 kB / 1.029 GB, free: 11.62 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.664e-05/0.4207, allocations: 7.906 kB / 1.029 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.4209, allocations: 167 kB / 1.029 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.4209, allocations: 0 / 1.029 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.614e-06/0.4209, allocations: 0 / 1.029 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/0.421, allocations: 37.69 kB / 1.029 GB, free: 11.37 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.421, allocations: 3.938 kB / 1.029 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.421, allocations: 4 kB / 1.029 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.4211, allocations: 0 / 1.029 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.922e-05/0.4211, allocations: 7.938 kB / 1.029 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001924/0.4213, allocations: 153.6 kB / 1.029 GB, free: 11.15 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 5.588e-05/0.4214, allocations: 22.61 kB / 1.029 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001549/0.4215, allocations: 77.11 kB / 1.029 GB, free: 11.03 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.4216, allocations: 34.62 kB / 1.03 GB, free: 10.98 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 1.874e-06/0.4216, allocations: 4 kB / 1.03 GB, free: 10.98 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0001726/0.4218, allocations: 45.62 kB / 1.03 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.4218, allocations: 51.41 kB / 1.03 GB, free: 10.87 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.647e-05/0.4219, allocations: 85 kB / 1.03 GB, free: 10.78 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.4219, allocations: 25.7 kB / 1.03 GB, free: 10.75 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.24e-05/0.422, allocations: 84.14 kB / 1.03 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.422, allocations: 4 kB / 1.03 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-06/0.422, allocations: 0 / 1.03 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.4222, allocations: 315 kB / 1.03 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.474e-05/0.4222, allocations: 3.984 kB / 1.03 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.918e-06/0.4222, allocations: 4 kB / 1.03 GB, free: 10.33 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.184e-05/0.4222, allocations: 0 / 1.03 GB, free: 10.33 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4222, allocations: 0 / 1.03 GB, free: 10.33 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.45e-05/0.4223, allocations: 45.59 kB / 1.03 GB, free: 10.28 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.4223, allocations: 8 kB / 1.03 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.4224, allocations: 0 / 1.03 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.4224, allocations: 0 / 1.03 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.927e-05/0.4225, allocations: 12.08 kB / 1.03 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.4225, allocations: 3.938 kB / 1.03 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.699e-05/0.4225, allocations: 0 / 1.03 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-06/0.4225, allocations: 0 / 1.03 GB, free: 10.26 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,n) * Number of discrete states: 0 () * Number of clocked 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 9.763e-05/0.4226, allocations: 109.8 kB / 1.03 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.214e-05/0.4226, allocations: 11.86 kB / 1.03 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.4228, allocations: 40.75 kB / 1.03 GB, free: 10.08 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.4228, allocations: 4 kB / 1.03 GB, free: 10.08 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.4228, allocations: 4.031 kB / 1.03 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.4228, allocations: 0 / 1.03 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.4229, allocations: 149.7 kB / 1.03 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4229, allocations: 0 / 1.03 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.67e-05/0.423, allocations: 4 kB / 1.03 GB, free: 9.875 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.423, allocations: 7.953 kB / 1.03 GB, free: 9.867 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.423, allocations: 0 / 1.03 GB, free: 9.867 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.423, allocations: 4 kB / 1.03 GB, free: 9.863 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.423, allocations: 0 / 1.03 GB, free: 9.863 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.4231, allocations: 69.11 kB / 1.031 GB, free: 9.777 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.064e-05/0.4232, allocations: 77.11 kB / 1.031 GB, free: 9.684 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.4232, allocations: 3.953 kB / 1.031 GB, free: 9.68 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.465e-05/0.4232, allocations: 3.938 kB / 1.031 GB, free: 9.676 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.638e-05/0.4233, allocations: 4 kB / 1.031 GB, free: 9.672 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.4233, allocations: 3.938 kB / 1.031 GB, free: 9.668 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.854e-05/0.4233, allocations: 79.27 kB / 1.031 GB, free: 9.59 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4234, allocations: 0 / 1.031 GB, free: 9.59 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002972/0.4237, allocations: 8.031 kB / 1.031 GB, free: 9.582 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,n) * Number of discrete states: 0 () * Number of clocked 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.0005509/0.4242, allocations: 0.6056 MB / 1.031 GB, free: 8.949 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 8.276e-05/0.4243, allocations: 8 kB / 1.031 GB, free: 8.941 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4243, allocations: 0 / 1.031 GB, free: 8.941 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 2.404e-05/0.4244, allocations: 16.03 kB / 1.031 GB, free: 8.926 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.4245, allocations: 7.938 kB / 1.031 GB, free: 8.918 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004586/0.425, allocations: 112.6 kB / 1.031 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.4254, allocations: 0.677 MB / 1.032 GB, free: 8.062 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 1.766e-05/0.4254, allocations: 0 / 1.032 GB, free: 8.062 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.1e-05/0.4255, allocations: 7.438 kB / 1.032 GB, free: 8.055 MB / 0.6823 GB Notification: Performance of SimCode: time 2.9e-07/0.4255, allocations: 0 / 1.032 GB, free: 8.055 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01422/0.4397, allocations: 0.8652 MB / 1.033 GB, free: 7.336 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002775/0.44, allocations: 193.6 kB / 1.033 GB, free: 7.098 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.414/1.854, allocations: 4 kB / 1.033 GB, free: 7.094 MB / 0.6823 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)