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.848/1.848, allocations: 289.9 MB / 297.4 MB, free: 6.344 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.001127/0.001127, allocations: 188.8 kB / 366.7 MB, free: 1.621 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.728/1.728, allocations: 205.2 MB / 0.626 GB, free: 7.164 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.0008172/0.0008172, allocations: 86.48 kB / 0.74 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.659e-05/1.66e-05, allocations: 4 kB / 0.8598 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5706/0.5706, allocations: 116.3 MB / 0.9733 GB, free: 75.97 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1948/0.7655, allocations: 138.5 MB / 1.109 GB, free: 11.62 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.7658, allocations: 68.47 kB / 1.109 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003228/0.7691, allocations: 0.9279 MB / 1.11 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.723e-06/0.7691, allocations: 0 / 1.11 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.112e-05/0.7691, allocations: 0 / 1.11 GB, free: 10.64 MB / 0.7136 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.0004993/0.7696, allocations: 341 kB / 1.11 GB, free: 10.27 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.042e-05/0.7697, allocations: 12.03 kB / 1.11 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.023e-05/0.7698, allocations: 6.656 kB / 1.11 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/0.77, allocations: 174.8 kB / 1.11 GB, free: 10.04 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.77, allocations: 0 / 1.11 GB, free: 10.04 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.77, allocations: 1.312 kB / 1.11 GB, free: 10.04 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.819e-05/0.7701, allocations: 15.98 kB / 1.11 GB, free: 10.03 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.052e-05/0.7702, allocations: 45.62 kB / 1.11 GB, free: 9.977 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.7702, allocations: 4.531 kB / 1.11 GB, free: 9.973 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.7702, allocations: 0.5312 kB / 1.11 GB, free: 9.973 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.7703, allocations: 0.5312 kB / 1.11 GB, free: 9.973 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000574/0.7708, allocations: 256.3 kB / 1.11 GB, free: 9.688 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002944/0.7711, allocations: 43.94 kB / 1.11 GB, free: 9.637 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.616e-05/0.7712, allocations: 12.91 kB / 1.11 GB, free: 9.621 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000133/0.7714, allocations: 85.05 kB / 1.111 GB, free: 9.52 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.7714, allocations: 37 kB / 1.111 GB, free: 9.477 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 2.004e-06/0.7714, allocations: 0 / 1.111 GB, free: 9.477 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0002621/0.7717, allocations: 45.69 kB / 1.111 GB, free: 9.426 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.7717, allocations: 51.41 kB / 1.111 GB, free: 9.363 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.7719, allocations: 105.6 kB / 1.111 GB, free: 9.254 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.7719, allocations: 25.7 kB / 1.111 GB, free: 9.223 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.8e-05/0.772, allocations: 90.47 kB / 1.111 GB, free: 9.133 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.772, allocations: 3.906 kB / 1.111 GB, free: 9.129 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.802e-06/0.772, allocations: 3.938 kB / 1.111 GB, free: 9.125 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001702/0.7722, allocations: 318.8 kB / 1.111 GB, free: 8.805 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.878e-05/0.7722, allocations: 5.938 kB / 1.111 GB, free: 8.801 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.465e-05/0.7723, allocations: 8 kB / 1.111 GB, free: 8.793 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.915e-05/0.7724, allocations: 13.17 kB / 1.111 GB, free: 8.781 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.7724, allocations: 4 kB / 1.111 GB, free: 8.777 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001575/0.7725, allocations: 49.62 kB / 1.111 GB, free: 8.723 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.7726, allocations: 5.094 kB / 1.111 GB, free: 8.719 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.7726, allocations: 0.7812 kB / 1.111 GB, free: 8.719 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.7726, allocations: 0 / 1.111 GB, free: 8.719 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.7728, allocations: 21.36 kB / 1.111 GB, free: 8.703 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.7728, allocations: 0 / 1.111 GB, free: 8.703 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.053e-05/0.7729, allocations: 10.69 kB / 1.111 GB, free: 8.695 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.7729, allocations: 6.984 kB / 1.111 GB, free: 8.691 MB / 0.7136 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 0.000101/0.773, allocations: 105.8 kB / 1.111 GB, free: 8.582 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001596/0.7732, allocations: 50.97 kB / 1.111 GB, free: 8.527 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/0.7732, allocations: 7.906 kB / 1.111 GB, free: 8.52 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001894/0.7734, allocations: 55.16 kB / 1.111 GB, free: 8.453 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.7735, allocations: 0 / 1.111 GB, free: 8.453 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.7735, allocations: 3.984 kB / 1.111 GB, free: 8.449 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.7735, allocations: 0 / 1.111 GB, free: 8.449 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000201/0.7737, allocations: 146.2 kB / 1.112 GB, free: 8.27 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.7737, allocations: 0 / 1.112 GB, free: 8.27 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.7738, allocations: 11.98 kB / 1.112 GB, free: 8.258 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.7738, allocations: 0 / 1.112 GB, free: 8.258 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.7739, allocations: 0 / 1.112 GB, free: 8.258 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.7739, allocations: 4 kB / 1.112 GB, free: 8.254 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.7739, allocations: 0 / 1.112 GB, free: 8.254 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001916/0.7741, allocations: 155.4 kB / 1.112 GB, free: 8.086 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.539e-05/0.7742, allocations: 81.11 kB / 1.112 GB, free: 7.988 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.7742, allocations: 3.938 kB / 1.112 GB, free: 7.984 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.7744, allocations: 9.859 kB / 1.112 GB, free: 7.977 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.884e-05/0.7744, allocations: 8 kB / 1.112 GB, free: 7.969 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.7744, allocations: 0 / 1.112 GB, free: 7.969 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.91e-05/0.7745, allocations: 83.73 kB / 1.112 GB, free: 7.887 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7745, allocations: 0 / 1.112 GB, free: 7.887 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003804/0.7749, allocations: 15.84 kB / 1.112 GB, free: 7.871 MB / 0.7136 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.000605/0.7755, allocations: 0.6985 MB / 1.113 GB, free: 7.148 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001047/0.7756, allocations: 20 kB / 1.113 GB, free: 7.129 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7756, allocations: 4 kB / 1.113 GB, free: 7.125 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.269e-05/0.7757, allocations: 12 kB / 1.113 GB, free: 7.113 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.776, allocations: 4 kB / 1.113 GB, free: 7.109 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004899/0.7765, allocations: 98.14 kB / 1.113 GB, free: 6.98 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/0.7768, allocations: 0.6768 MB / 1.113 GB, free: 6.277 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.665e-05/0.7769, allocations: 4 kB / 1.113 GB, free: 6.273 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.389e-05/0.7769, allocations: 19.42 kB / 1.113 GB, free: 6.254 MB / 0.7136 GB Notification: Performance of SimCode: time 4.288e-06/0.7769, allocations: 0 / 1.113 GB, free: 6.254 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0205/0.7975, allocations: 0.9768 MB / 1.114 GB, free: 5.32 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002911/0.7978, allocations: 130.3 kB / 1.115 GB, free: 5.129 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.502/2.299, allocations: 0 / 1.115 GB, free: 5.129 MB / 0.7136 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)