Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.722/1.722, allocations: 288.2 MB / 303.2 MB, free: 8.129 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.001296/0.001295, allocations: 184.2 kB / 371.8 MB, free: 10.13 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.006/2.006, allocations: 205.4 MB / 0.6305 GB, free: 9.984 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008995/0.0008996, allocations: 94.88 kB / 0.7439 GB, free: 5.918 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004447/0.0004447, allocations: 16.94 kB / 0.8669 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2853, allocations: 115.3 MB / 0.9795 GB, free: 27.64 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8132/1.099, allocations: 138.3 MB / 1.114 GB, free: 16.45 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/1.099, allocations: 72.75 kB / 1.115 GB, free: 16.45 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003123/1.102, allocations: 0.933 MB / 1.115 GB, free: 32.11 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.013e-06/1.102, allocations: 0 / 1.115 GB, free: 32.11 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.083e-06/1.102, allocations: 3.844 kB / 1.115 GB, free: 32.11 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004017/1.102, allocations: 346.1 kB / 1.116 GB, free: 31.75 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/1.102, allocations: 15.58 kB / 1.116 GB, free: 31.75 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.492e-05/1.103, allocations: 38.44 kB / 1.116 GB, free: 31.7 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.697e-05/1.103, allocations: 7.891 kB / 1.116 GB, free: 31.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/1.103, allocations: 172.4 kB / 1.116 GB, free: 31.5 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/1.103, allocations: 0 / 1.116 GB, free: 31.5 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/1.103, allocations: 3.938 kB / 1.116 GB, free: 31.49 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001891/1.103, allocations: 63.56 kB / 1.116 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/1.103, allocations: 2.906 kB / 1.116 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/1.103, allocations: 5.312 kB / 1.116 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/1.103, allocations: 0 / 1.116 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/1.103, allocations: 48.53 kB / 1.116 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004445/1.104, allocations: 282.2 kB / 1.116 GB, free: 31.19 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003379/1.104, allocations: 66.31 kB / 1.116 GB, free: 31.16 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001226/1.104, allocations: 79.77 kB / 1.117 GB, free: 31.07 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/1.104, allocations: 35.94 kB / 1.117 GB, free: 31.02 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/1.104, allocations: 0 / 1.117 GB, free: 31.02 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0004058/1.105, allocations: 114.3 kB / 1.117 GB, free: 30.98 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/1.105, allocations: 63.12 kB / 1.117 GB, free: 30.91 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.132e-05/1.105, allocations: 95.7 kB / 1.117 GB, free: 30.82 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/1.105, allocations: 25.7 kB / 1.117 GB, free: 30.79 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.053e-05/1.105, allocations: 83.81 kB / 1.117 GB, free: 30.71 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/1.105, allocations: 11.11 kB / 1.117 GB, free: 30.71 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/1.105, allocations: 0 / 1.117 GB, free: 30.71 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001238/1.105, allocations: 318.7 kB / 1.117 GB, free: 30.39 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.213e-05/1.105, allocations: 29.42 kB / 1.117 GB, free: 30.39 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.63e-05/1.105, allocations: 18.73 kB / 1.117 GB, free: 30.39 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.027e-05/1.105, allocations: 27.97 kB / 1.117 GB, free: 30.39 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/1.105, allocations: 4 kB / 1.117 GB, free: 30.38 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002064/1.105, allocations: 83.31 kB / 1.117 GB, free: 30.35 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/1.105, allocations: 3.844 kB / 1.117 GB, free: 30.35 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/1.105, allocations: 0 / 1.117 GB, free: 30.35 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/1.105, allocations: 0 / 1.117 GB, free: 30.35 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.063e-05/1.106, allocations: 22.94 kB / 1.117 GB, free: 30.34 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/1.106, allocations: 0 / 1.117 GB, free: 30.34 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.844e-05/1.106, allocations: 7 kB / 1.117 GB, free: 30.34 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/1.106, allocations: 4.422 kB / 1.117 GB, free: 30.34 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.y,fac.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.617e-05/1.106, allocations: 118.6 kB / 1.118 GB, free: 30.23 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.527e-05/1.106, allocations: 7.75 kB / 1.118 GB, free: 30.22 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002812/1.106, allocations: 102 kB / 1.118 GB, free: 30.18 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/1.106, allocations: 0 / 1.118 GB, free: 30.18 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/1.106, allocations: 0 / 1.118 GB, free: 30.18 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/1.106, allocations: 3.938 kB / 1.118 GB, free: 30.18 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/1.106, allocations: 163.6 kB / 1.118 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/1.106, allocations: 3.938 kB / 1.118 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.983e-05/1.106, allocations: 24.16 kB / 1.118 GB, free: 29.97 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/1.106, allocations: 0 / 1.118 GB, free: 29.97 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.308e-06/1.106, allocations: 0 / 1.118 GB, free: 29.97 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/1.106, allocations: 0 / 1.118 GB, free: 29.97 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/1.106, allocations: 0 / 1.118 GB, free: 29.97 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002729/1.107, allocations: 186.5 kB / 1.118 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.296e-05/1.107, allocations: 77.11 kB / 1.118 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.536e-05/1.107, allocations: 0 / 1.118 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.605e-05/1.107, allocations: 10.64 kB / 1.118 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.036e-05/1.107, allocations: 6.062 kB / 1.118 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-06/1.107, allocations: 3.906 kB / 1.118 GB, free: 29.74 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.697e-05/1.107, allocations: 88.42 kB / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/1.107, allocations: 0 / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002266/1.107, allocations: 11.62 kB / 1.118 GB, free: 29.66 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.y,fac.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0007098/1.108, allocations: 0.7332 MB / 1.119 GB, free: 28.98 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002479/1.108, allocations: 55.3 kB / 1.119 GB, free: 28.98 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/1.108, allocations: 4 kB / 1.119 GB, free: 28.98 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001003/1.108, allocations: 31.44 kB / 1.119 GB, free: 28.98 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002336/1.109, allocations: 0.6562 kB / 1.119 GB, free: 28.98 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005185/1.109, allocations: 151.6 kB / 1.119 GB, free: 28.83 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/1.109, allocations: 0.6854 MB / 1.12 GB, free: 28.13 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.119e-05/1.109, allocations: 0 / 1.12 GB, free: 28.13 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.28e-05/1.11, allocations: 17.41 kB / 1.12 GB, free: 28.12 MB / 0.698 GB Notification: Performance of SimCode: time 4.01e-07/1.11, allocations: 0 / 1.12 GB, free: 28.12 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01242/1.122, allocations: 1.29 MB / 1.121 GB, free: 27.94 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001818/1.122, allocations: 183.9 kB / 1.121 GB, free: 27.71 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.529/2.652, allocations: 0 / 1.121 GB, free: 27.71 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)