Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.708/2.708, allocations: 287.5 MB / 302.4 MB, free: 8.18 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.001362/0.001362, allocations: 185.3 kB / 371 MB, free: 10.88 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.233/2.233, allocations: 205.4 MB / 0.6297 GB, free: 10.65 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.0009522/0.0009518, allocations: 93.17 kB / 0.743 GB, free: 6.652 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006701/0.0006704, allocations: 13.31 kB / 0.8659 GB, free: 139.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2483, allocations: 115.3 MB / 0.9785 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007253/0.2491, allocations: 319.6 kB / 0.9788 GB, free: 27.97 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.000243/0.2494, allocations: 43.89 kB / 0.9788 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.398e-05/0.2494, allocations: 0 / 0.9788 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.45e-05/0.2495, allocations: 0 / 0.9788 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.442e-06/0.2495, allocations: 0 / 0.9788 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002024/0.2497, allocations: 15.98 kB / 0.9788 GB, free: 27.91 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 4.393e-05/0.2497, allocations: 4 kB / 0.9788 GB, free: 27.91 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.372e-05/0.2498, allocations: 0 / 0.9788 GB, free: 27.91 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 1.64e-05/0.2498, allocations: 11.88 kB / 0.9788 GB, free: 27.89 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 2.588e-05/0.2499, allocations: 0 / 0.9788 GB, free: 27.89 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.06e-05/0.2499, allocations: 4 kB / 0.9788 GB, free: 27.89 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.426e-05/0.2499, allocations: 4 kB / 0.9789 GB, free: 27.89 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.002e-05/0.25, allocations: 11.97 kB / 0.9789 GB, free: 27.88 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 1.862e-05/0.25, allocations: 25.7 kB / 0.9789 GB, free: 27.84 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 5.81e-05/0.2501, allocations: 4 kB / 0.9789 GB, free: 27.84 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2501, allocations: 0 / 0.9789 GB, free: 27.84 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.904e-06/0.2501, allocations: 0 / 0.9789 GB, free: 27.84 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.938e-06/0.2501, allocations: 0 / 0.9789 GB, free: 27.84 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002309/0.2503, allocations: 315.4 kB / 0.9792 GB, free: 27.48 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.2504, allocations: 12.02 kB / 0.9792 GB, free: 27.47 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.249e-05/0.2504, allocations: 30.56 kB / 0.9792 GB, free: 27.43 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.624e-05/0.2505, allocations: 0 / 0.9792 GB, free: 27.43 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.525e-05/0.2505, allocations: 163 kB / 0.9794 GB, free: 27.23 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.2506, allocations: 4 kB / 0.9794 GB, free: 27.23 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-06/0.2506, allocations: 4 kB / 0.9794 GB, free: 27.23 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.588e-05/0.2507, allocations: 33.62 kB / 0.9794 GB, free: 27.19 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.2507, allocations: 4 kB / 0.9794 GB, free: 27.18 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.216e-06/0.2507, allocations: 7.938 kB / 0.9794 GB, free: 27.18 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.2507, allocations: 0 / 0.9794 GB, free: 27.18 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.98e-05/0.2508, allocations: 4 kB / 0.9794 GB, free: 27.17 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001258/0.2509, allocations: 149.6 kB / 0.9796 GB, free: 26.98 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 5.102e-05/0.251, allocations: 22.59 kB / 0.9796 GB, free: 26.95 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.26e-05/0.251, allocations: 12.92 kB / 0.9796 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001679/0.2512, allocations: 85.05 kB / 0.9797 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.075e-05/0.2512, allocations: 34.56 kB / 0.9797 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 1.644e-06/0.2512, allocations: 0 / 0.9797 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.000147/0.2514, allocations: 41.69 kB / 0.9798 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.2514, allocations: 51.41 kB / 0.9798 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.585e-05/0.2515, allocations: 89.86 kB / 0.9799 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.987e-06/0.2515, allocations: 25.7 kB / 0.9799 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 1.677e-05/0.2515, allocations: 84.14 kB / 0.98 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.2515, allocations: 8.188 kB / 0.98 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-06/0.2516, allocations: 4.125 kB / 0.98 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.037e-05/0.2516, allocations: 314.8 kB / 0.9803 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.561e-05/0.2517, allocations: 4 kB / 0.9803 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.219e-05/0.2517, allocations: 7.938 kB / 0.9803 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.617e-05/0.2517, allocations: 3.953 kB / 0.9803 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2517, allocations: 4 kB / 0.9803 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.731e-05/0.2518, allocations: 33.7 kB / 0.9804 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.2518, allocations: 7.984 kB / 0.9804 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2518, allocations: 4.031 kB / 0.9804 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.2519, allocations: 4 kB / 0.9804 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.175e-05/0.2519, allocations: 4 kB / 0.9804 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.252, allocations: 0 / 0.9804 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.076e-05/0.252, allocations: 7.938 kB / 0.9804 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.252, allocations: 0 / 0.9804 GB, free: 26.05 MB / 0.6198 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.063e-05/0.2521, allocations: 115.1 kB / 0.9805 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.897e-06/0.2521, allocations: 0 / 0.9805 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.2522, allocations: 52.75 kB / 0.9806 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2522, allocations: 4.031 kB / 0.9806 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.2522, allocations: 0 / 0.9806 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2522, allocations: 0 / 0.9806 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.755e-05/0.2523, allocations: 145.7 kB / 0.9807 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2523, allocations: 11.89 kB / 0.9807 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.214e-05/0.2524, allocations: 0 / 0.9807 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2524, allocations: 0 / 0.9807 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.2524, allocations: 4 kB / 0.9807 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2524, allocations: 0 / 0.9807 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2524, allocations: 0 / 0.9807 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.898e-05/0.2525, allocations: 73.05 kB / 0.9808 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.186e-05/0.2526, allocations: 84.97 kB / 0.9809 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.2526, allocations: 4 kB / 0.9809 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.608e-05/0.2526, allocations: 4 kB / 0.9809 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.417e-05/0.2526, allocations: 3.984 kB / 0.9809 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.2527, allocations: 0 / 0.9809 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 1.629e-05/0.2527, allocations: 75.28 kB / 0.981 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.51e-07/0.2527, allocations: 4.031 kB / 0.981 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002487/0.2529, allocations: 4 kB / 0.981 GB, free: 25.38 MB / 0.6198 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0003245/0.2533, allocations: 0.6007 MB / 0.9815 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 7.766e-05/0.2534, allocations: 11.94 kB / 0.9816 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2534, allocations: 4.094 kB / 0.9816 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.974e-05/0.2534, allocations: 4 kB / 0.9816 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001886/0.2536, allocations: 7.984 kB / 0.9816 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003072/0.2539, allocations: 108.4 kB / 0.9817 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001201/0.2541, allocations: 0.677 MB / 0.9823 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.023e-05/0.2541, allocations: 4 kB / 0.9823 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.195e-05/0.2541, allocations: 7.438 kB / 0.9824 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of SimCode: time 6.51e-07/0.2541, allocations: 0 / 0.9824 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01862/0.2728, allocations: 0.8747 MB / 0.9832 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000173/0.273, allocations: 198 kB / 0.9834 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.532/2.805, allocations: 0 / 0.9834 GB, free: 22.87 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)