Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.79/1.79, allocations: 289.7 MB / 302.2 MB, free: 2.16 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.001104/0.001104, allocations: 180.8 kB / 371.6 MB, free: 3.359 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.852/1.852, allocations: 205.1 MB / 0.6309 GB, free: 11.78 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.0009919/0.0009919, allocations: 90.91 kB / 0.745 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.892e-05/4.896e-05, allocations: 4 kB / 0.8663 GB, free: 15 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2937, allocations: 116.3 MB / 0.9799 GB, free: 10.53 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.836/1.13, allocations: 139.1 MB / 1.116 GB, free: 44.56 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/1.13, allocations: 70.61 kB / 1.116 GB, free: 44.53 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.002555/1.133, allocations: 0.9249 MB / 1.117 GB, free: 43.88 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.644e-06/1.133, allocations: 3.281 kB / 1.117 GB, free: 43.88 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.083e-06/1.133, allocations: 0.7188 kB / 1.117 GB, free: 43.88 MB / 0.7448 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.0003221/1.133, allocations: 344.4 kB / 1.117 GB, free: 43.52 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 6.424e-05/1.133, allocations: 8.906 kB / 1.117 GB, free: 43.51 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.252e-05/1.133, allocations: 34.12 kB / 1.117 GB, free: 43.47 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/1.133, allocations: 7.75 kB / 1.117 GB, free: 43.47 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.278e-05/1.133, allocations: 169.3 kB / 1.117 GB, free: 43.27 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/1.133, allocations: 4.109 kB / 1.117 GB, free: 43.27 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/1.133, allocations: 4 kB / 1.117 GB, free: 43.27 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.976e-05/1.133, allocations: 44.41 kB / 1.117 GB, free: 43.23 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/1.133, allocations: 0 / 1.117 GB, free: 43.23 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/1.133, allocations: 5.219 kB / 1.117 GB, free: 43.23 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/1.133, allocations: 0 / 1.117 GB, free: 43.23 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.528e-05/1.134, allocations: 19.7 kB / 1.117 GB, free: 43.21 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004098/1.134, allocations: 286.9 kB / 1.118 GB, free: 42.92 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002244/1.134, allocations: 47.17 kB / 1.118 GB, free: 42.88 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.182e-05/1.134, allocations: 18.58 kB / 1.118 GB, free: 42.86 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/1.134, allocations: 88.75 kB / 1.118 GB, free: 42.76 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.523e-05/1.134, allocations: 30.56 kB / 1.118 GB, free: 42.72 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.522e-06/1.134, allocations: 0 / 1.118 GB, free: 42.72 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001609/1.135, allocations: 57.34 kB / 1.118 GB, free: 42.67 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.858e-05/1.135, allocations: 55.41 kB / 1.118 GB, free: 42.61 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.646e-05/1.135, allocations: 96.34 kB / 1.118 GB, free: 42.51 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.217e-06/1.135, allocations: 25.7 kB / 1.118 GB, free: 42.48 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 2.897e-05/1.135, allocations: 84.7 kB / 1.118 GB, free: 42.39 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.336e-05/1.135, allocations: 3.906 kB / 1.118 GB, free: 42.39 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-06/1.135, allocations: 7.375 kB / 1.118 GB, free: 42.39 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 4.741e-05/1.135, allocations: 314.8 kB / 1.118 GB, free: 42.07 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.105e-05/1.135, allocations: 11.38 kB / 1.118 GB, free: 42.06 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.712e-05/1.135, allocations: 10.8 kB / 1.118 GB, free: 42.06 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.554e-05/1.135, allocations: 4.516 kB / 1.118 GB, free: 42.05 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/1.135, allocations: 0.5625 kB / 1.118 GB, free: 42.05 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.1e-05/1.135, allocations: 57.27 kB / 1.118 GB, free: 42 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/1.135, allocations: 4 kB / 1.119 GB, free: 42 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/1.135, allocations: 0 / 1.119 GB, free: 42 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/1.135, allocations: 0.5625 kB / 1.119 GB, free: 42 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.985e-05/1.135, allocations: 18.28 kB / 1.119 GB, free: 41.99 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/1.135, allocations: 5.281 kB / 1.119 GB, free: 41.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.01e-05/1.135, allocations: 7.422 kB / 1.119 GB, free: 41.98 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/1.135, allocations: 4.938 kB / 1.119 GB, free: 41.98 MB / 0.7448 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 4.618e-05/1.135, allocations: 108.2 kB / 1.119 GB, free: 41.87 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.674e-05/1.135, allocations: 7.469 kB / 1.119 GB, free: 41.86 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/1.135, allocations: 55.55 kB / 1.119 GB, free: 41.81 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/1.135, allocations: 3.516 kB / 1.119 GB, free: 41.81 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/1.135, allocations: 4.656 kB / 1.119 GB, free: 41.8 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/1.135, allocations: 0 / 1.119 GB, free: 41.8 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/1.136, allocations: 168.2 kB / 1.119 GB, free: 41.61 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/1.136, allocations: 0 / 1.119 GB, free: 41.61 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.67e-05/1.136, allocations: 11.38 kB / 1.119 GB, free: 41.6 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/1.136, allocations: 0 / 1.119 GB, free: 41.6 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/1.136, allocations: 4.844 kB / 1.119 GB, free: 41.59 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/1.136, allocations: 1.344 kB / 1.119 GB, free: 41.59 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/1.136, allocations: 0 / 1.119 GB, free: 41.59 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001065/1.136, allocations: 158.8 kB / 1.119 GB, free: 41.44 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.815e-05/1.136, allocations: 77.11 kB / 1.119 GB, free: 41.34 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/1.136, allocations: 0.8125 kB / 1.119 GB, free: 41.34 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.865e-05/1.136, allocations: 11.38 kB / 1.119 GB, free: 41.34 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/1.136, allocations: 7.766 kB / 1.119 GB, free: 41.34 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/1.136, allocations: 4 kB / 1.119 GB, free: 41.33 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 2.353e-05/1.136, allocations: 91.61 kB / 1.119 GB, free: 41.25 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2.3e-07/1.136, allocations: 1.312 kB / 1.119 GB, free: 41.25 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002211/1.136, allocations: 11.94 kB / 1.119 GB, free: 41.23 MB / 0.7448 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.0003212/1.137, allocations: 0.6867 MB / 1.12 GB, free: 40.54 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 8.44e-05/1.137, allocations: 30.22 kB / 1.12 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/1.137, allocations: 4 kB / 1.12 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.036e-05/1.137, allocations: 12.39 kB / 1.12 GB, free: 40.51 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001573/1.137, allocations: 0 / 1.12 GB, free: 40.51 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003576/1.137, allocations: 95.23 kB / 1.12 GB, free: 40.39 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001075/1.137, allocations: 0.6804 MB / 1.121 GB, free: 39.69 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.475e-05/1.137, allocations: 8.25 kB / 1.121 GB, free: 39.69 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.864e-05/1.138, allocations: 14.69 kB / 1.121 GB, free: 39.68 MB / 0.7448 GB Notification: Performance of SimCode: time 6.12e-07/1.138, allocations: 4.5 kB / 1.121 GB, free: 39.68 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01256/1.15, allocations: 1.273 MB / 1.122 GB, free: 39.02 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001447/1.15, allocations: 141.2 kB / 1.122 GB, free: 38.8 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.58/2.73, allocations: 0 / 1.122 GB, free: 38.8 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)