Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.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.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_7_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 7.0.3-maint.7.0.x/package.mo): time 1.494/1.494, allocations: 249.3 MB / 261.8 MB, free: 5.871 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.001094/0.001094, allocations: 186.5 kB / 321.3 MB, free: 14.65 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.571/1.571, allocations: 205.2 MB / 0.572 GB, free: 10.69 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.0009181/0.0009182, allocations: 92.3 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.652e-05/3.673e-05, allocations: 4 kB / 0.788 GB, free: 97.02 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2303, allocations: 106.3 MB / 0.8919 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7233/0.9537, allocations: 131.9 MB / 1.021 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002919/0.954, allocations: 68.47 kB / 1.021 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003211/0.9573, allocations: 0.931 MB / 1.022 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.013e-06/0.9573, allocations: 7.938 kB / 1.022 GB, free: 1.988 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.673e-06/0.9573, allocations: 4 kB / 1.022 GB, free: 1.984 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005097/0.9578, allocations: 346.9 kB / 1.022 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.728e-05/0.9579, allocations: 8.031 kB / 1.022 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.517e-05/0.958, allocations: 30.56 kB / 1.022 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.158e-05/0.958, allocations: 4 kB / 1.022 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.9582, allocations: 171 kB / 1.022 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.9582, allocations: 4 kB / 1.022 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.9582, allocations: 7.875 kB / 1.022 GB, free: 1.34 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.9583, allocations: 42.19 kB / 1.022 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.9583, allocations: 0 / 1.022 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.729e-06/0.9583, allocations: 0 / 1.022 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.9584, allocations: 0 / 1.022 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.904e-05/0.9584, allocations: 23.12 kB / 1.022 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004536/0.9589, allocations: 291.1 kB / 1.023 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.9592, allocations: 45.81 kB / 1.023 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.532e-05/0.9592, allocations: 11.58 kB / 1.023 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001218/0.9593, allocations: 89.06 kB / 1.023 GB, free: 0.8008 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.9594, allocations: 34.5 kB / 1.023 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.302e-06/0.9594, allocations: 4 kB / 1.023 GB, free: 0.7539 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001614/0.9595, allocations: 45.38 kB / 1.023 GB, free: 0.707 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/0.9596, allocations: 51.41 kB / 1.023 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.766e-05/0.9597, allocations: 99.45 kB / 1.023 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.9597, allocations: 25.7 kB / 1.023 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.065e-05/0.9598, allocations: 84.02 kB / 1.023 GB, free: 440 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.9598, allocations: 3.906 kB / 1.023 GB, free: 436 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-06/0.9598, allocations: 0 / 1.023 GB, free: 436 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001608/0.96, allocations: 326.3 kB / 1.023 GB, free: 104 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.285e-05/0.96, allocations: 4 kB / 1.023 GB, free: 100 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.821e-05/0.9601, allocations: 7.562 kB / 1.023 GB, free: 96 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.94e-05/0.9601, allocations: 7.812 kB / 1.023 GB, free: 92 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.9601, allocations: 0 / 1.023 GB, free: 92 kB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001103/0.9602, allocations: 64.97 kB / 1.023 GB, free: 28 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.9603, allocations: 5.875 kB / 1.023 GB, free: 24 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.9603, allocations: 0 / 1.023 GB, free: 24 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.9603, allocations: 0 / 1.023 GB, free: 24 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.864e-05/0.9604, allocations: 19.98 kB / 1.023 GB, free: 4 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.9604, allocations: 0 / 1.023 GB, free: 4 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.394e-05/0.9605, allocations: 8.031 kB / 1.023 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.9605, allocations: 10.77 kB / 1.023 GB, free: 15.98 MB / 0.6511 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 () * 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 8.854e-05/0.9606, allocations: 101 kB / 1.024 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.9607, allocations: 0 / 1.024 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001748/0.9608, allocations: 70.31 kB / 1.024 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.9609, allocations: 4 kB / 1.024 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.9609, allocations: 0 / 1.024 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.9609, allocations: 0 / 1.024 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002101/0.9611, allocations: 168.3 kB / 1.024 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.9611, allocations: 0 / 1.024 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.55e-05/0.9612, allocations: 11.98 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.9612, allocations: 432 / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.9612, allocations: 0 / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.9612, allocations: 4 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.9612, allocations: 0 / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.9614, allocations: 158.2 kB / 1.024 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.327e-05/0.9614, allocations: 85.09 kB / 1.024 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.9615, allocations: 0 / 1.024 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.075e-05/0.9616, allocations: 4 kB / 1.024 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.681e-05/0.9616, allocations: 11.55 kB / 1.024 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.9616, allocations: 0 / 1.024 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 3.236e-05/0.9617, allocations: 83.28 kB / 1.024 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9617, allocations: 0 / 1.024 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002278/0.9619, allocations: 31.55 kB / 1.024 GB, free: 15.2 MB / 0.6511 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 () * 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.0004672/0.9624, allocations: 0.6831 MB / 1.025 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 9.074e-05/0.9625, allocations: 23.3 kB / 1.025 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.9625, allocations: 8 kB / 1.025 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.257e-05/0.9625, allocations: 11.69 kB / 1.025 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001649/0.9627, allocations: 0 / 1.025 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003776/0.9631, allocations: 106.1 kB / 1.025 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.9634, allocations: 0.6809 MB / 1.026 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.562e-05/0.9634, allocations: 8 kB / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.045e-05/0.9635, allocations: 14.62 kB / 1.026 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of SimCode: time 1.714e-06/0.9635, allocations: 0 / 1.026 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01354/0.977, allocations: 1.282 MB / 1.027 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.9773, allocations: 160.8 kB / 1.027 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.493/2.47, allocations: 0 / 1.027 GB, free: 12.2 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)