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.462/1.462, allocations: 252 MB / 267 MB, free: 10.99 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.001524/0.001524, allocations: 188.9 kB / 326.6 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.85/1.85, allocations: 205.4 MB / 0.5777 GB, free: 20.55 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.001025/0.001024, allocations: 89.7 kB / 0.6822 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003683, allocations: 12.88 kB / 0.7965 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2639, allocations: 106.3 MB / 0.9003 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00174/0.2657, allocations: 1.236 MB / 0.9015 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003685/0.2661, allocations: 124.5 kB / 0.9016 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.784e-05/0.2662, allocations: 0 / 0.9016 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.99e-05/0.2662, allocations: 0 / 0.9016 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.787e-05/0.2663, allocations: 3.938 kB / 0.9016 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002181/0.2665, allocations: 19.98 kB / 0.9016 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.769e-05/0.2666, allocations: 23.92 kB / 0.9017 GB, free: 62.96 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.757e-05/0.2667, allocations: 7.984 kB / 0.9017 GB, free: 62.96 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.683e-05/0.2667, allocations: 15.92 kB / 0.9017 GB, free: 62.94 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.811e-05/0.2668, allocations: 11.98 kB / 0.9017 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.2668, allocations: 8 kB / 0.9017 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.847e-05/0.2669, allocations: 7.984 kB / 0.9017 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.596e-06/0.2669, allocations: 3.938 kB / 0.9017 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.113e-05/0.2669, allocations: 33.7 kB / 0.9018 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.896e-05/0.267, allocations: 15.95 kB / 0.9018 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.267, allocations: 0 / 0.9018 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.723e-06/0.267, allocations: 0 / 0.9018 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.138e-06/0.267, allocations: 0 / 0.9018 GB, free: 62.86 MB / 0.6042 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.0004063/0.2674, allocations: 351.3 kB / 0.9021 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.2675, allocations: 8.031 kB / 0.9021 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.44e-05/0.2675, allocations: 30.56 kB / 0.9021 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.743e-05/0.2676, allocations: 7.906 kB / 0.9022 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.2677, allocations: 171.2 kB / 0.9023 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.325e-05/0.2677, allocations: 4 kB / 0.9023 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.2677, allocations: 0 / 0.9023 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.268, allocations: 69.59 kB / 0.9024 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.268, allocations: 0 / 0.9024 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.268, allocations: 4 kB / 0.9024 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.268, allocations: 0 / 0.9024 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.2682, allocations: 47.95 kB / 0.9024 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003539/0.2686, allocations: 272.9 kB / 0.9027 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003217/0.2689, allocations: 62.53 kB / 0.9028 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.735e-05/0.269, allocations: 32.84 kB / 0.9028 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001117/0.2691, allocations: 81.09 kB / 0.9029 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.984e-05/0.2692, allocations: 38.56 kB / 0.9029 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.2692, allocations: 0 / 0.9029 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0004011/0.2696, allocations: 105.6 kB / 0.903 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.525e-05/0.2696, allocations: 51.41 kB / 0.903 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.025e-05/0.2697, allocations: 109.9 kB / 0.9032 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.678e-06/0.2697, allocations: 25.7 kB / 0.9032 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.163e-05/0.2697, allocations: 88.03 kB / 0.9033 GB, free: 61.1 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/0.2698, allocations: 11.91 kB / 0.9033 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.2698, allocations: 4 kB / 0.9033 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.098e-05/0.2698, allocations: 310.8 kB / 0.9036 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.276e-05/0.2699, allocations: 23.98 kB / 0.9036 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.238e-05/0.27, allocations: 32.14 kB / 0.9036 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.836e-05/0.2701, allocations: 19.98 kB / 0.9036 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2701, allocations: 4 kB / 0.9037 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002198/0.2703, allocations: 85.64 kB / 0.9037 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2704, allocations: 10.19 kB / 0.9037 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2704, allocations: 0 / 0.9037 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.2704, allocations: 0 / 0.9037 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.26e-05/0.2705, allocations: 15.98 kB / 0.9038 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.2705, allocations: 0 / 0.9038 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.022e-05/0.2706, allocations: 11.89 kB / 0.9038 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.2706, allocations: 0 / 0.9038 GB, free: 60.57 MB / 0.6042 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,rea2Int.y) * 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 6.817e-05/0.2707, allocations: 121.8 kB / 0.9039 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.566e-05/0.2707, allocations: 0 / 0.9039 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002632/0.271, allocations: 89.14 kB / 0.904 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.271, allocations: 0 / 0.904 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.271, allocations: 11.94 kB / 0.904 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.271, allocations: 4 kB / 0.904 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.2711, allocations: 173.5 kB / 0.9042 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2712, allocations: 0 / 0.9042 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.428e-05/0.2712, allocations: 19.92 kB / 0.9042 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.2712, allocations: 0 / 0.9042 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.2713, allocations: 0 / 0.9042 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2713, allocations: 0 / 0.9042 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2713, allocations: 3.938 kB / 0.9042 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000255/0.2715, allocations: 179.5 kB / 0.9043 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.427e-05/0.2716, allocations: 85.09 kB / 0.9044 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.2716, allocations: 0 / 0.9044 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.391e-05/0.2717, allocations: 8 kB / 0.9044 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.743e-05/0.2718, allocations: 11.98 kB / 0.9044 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.2718, allocations: 0 / 0.9044 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.703e-05/0.2718, allocations: 83.27 kB / 0.9045 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2718, allocations: 0 / 0.9045 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002154/0.272, allocations: 8 kB / 0.9045 GB, free: 59.68 MB / 0.6042 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,rea2Int.y) * 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.0005225/0.2726, allocations: 0.7245 MB / 0.9052 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002259/0.2728, allocations: 59.98 kB / 0.9053 GB, free: 58.87 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2728, allocations: 0 / 0.9053 GB, free: 58.87 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.571e-05/0.2729, allocations: 27.98 kB / 0.9053 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.2732, allocations: 4 kB / 0.9053 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004641/0.2737, allocations: 154.2 kB / 0.9055 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/0.2738, allocations: 0.6809 MB / 0.9061 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.921e-05/0.2739, allocations: 7.938 kB / 0.9061 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.858e-05/0.2739, allocations: 7.438 kB / 0.9062 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of SimCode: time 2.1e-07/0.2739, allocations: 0 / 0.9062 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01489/0.2888, allocations: 1.293 MB / 0.9074 GB, free: 56.76 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.2891, allocations: 193.8 kB / 0.9076 GB, free: 56.52 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/1.98, allocations: 0 / 0.9076 GB, free: 56.52 MB / 0.6042 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)