Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009977/0.0009977, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 194.4 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.608/1.608, allocations: 292.3 MB / 0.5489 GB, free: 12.82 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 73.81 kB / 0.6716 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2646, allocations: 114.5 MB / 0.7835 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003485/0.2682, allocations: 1.537 MB / 0.785 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0004622/0.2687, allocations: 124.4 kB / 0.7851 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.289e-05/0.2687, allocations: 0 / 0.7851 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.805e-05/0.2688, allocations: 3.938 kB / 0.7851 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.99e-05/0.2689, allocations: 11.92 kB / 0.7851 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003759/0.2692, allocations: 31.97 kB / 0.7851 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.175e-05/0.2693, allocations: 39.86 kB / 0.7852 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.2695, allocations: 11.98 kB / 0.7852 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 3.65e-05/0.2695, allocations: 11.98 kB / 0.7852 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.789e-05/0.2696, allocations: 27.91 kB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.2696, allocations: 4 kB / 0.7852 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.036e-05/0.2697, allocations: 12 kB / 0.7852 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.9e-05/0.2697, allocations: 15.92 kB / 0.7852 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.059e-05/0.2698, allocations: 7.938 kB / 0.7853 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.2699, allocations: 47.86 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.2699, allocations: 0 / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.837e-06/0.27, allocations: 0 / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.233e-06/0.27, allocations: 3.938 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005289/0.2705, allocations: 355.7 kB / 0.7856 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.2706, allocations: 8.031 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.709e-05/0.2706, allocations: 38.73 kB / 0.7857 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.048e-05/0.2706, allocations: 8.781 kB / 0.7857 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.2708, allocations: 168.4 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.2708, allocations: 4.375 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.2708, allocations: 4.375 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002051/0.271, allocations: 66.2 kB / 0.7859 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.699e-06/0.271, allocations: 3.938 kB / 0.7859 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.2711, allocations: 0 / 0.7859 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.2711, allocations: 3.938 kB / 0.7859 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.2713, allocations: 55.86 kB / 0.786 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000415/0.2717, allocations: 288.7 kB / 0.7863 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003291/0.272, allocations: 58.53 kB / 0.7863 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.2722, allocations: 24.91 kB / 0.7863 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003163/0.2725, allocations: 405.5 kB / 0.7867 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.2725, allocations: 34.56 kB / 0.7868 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.2725, allocations: 0 / 0.7868 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003888/0.2729, allocations: 93.62 kB / 0.7869 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.273, allocations: 51.41 kB / 0.7869 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.766e-05/0.273, allocations: 109.8 kB / 0.787 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.2731, allocations: 25.7 kB / 0.787 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.961e-05/0.2731, allocations: 92.05 kB / 0.7871 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.565e-05/0.2731, allocations: 4 kB / 0.7871 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.2732, allocations: 17.72 kB / 0.7871 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.2733, allocations: 318.8 kB / 0.7874 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.435e-05/0.2734, allocations: 23.92 kB / 0.7875 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.2736, allocations: 19.97 kB / 0.7875 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.2737, allocations: 48.83 kB / 0.7875 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.2737, allocations: 0 / 0.7875 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002183/0.274, allocations: 81.55 kB / 0.7876 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.274, allocations: 4 kB / 0.7876 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.274, allocations: 0 / 0.7876 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.274, allocations: 0 / 0.7876 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.55e-05/0.2741, allocations: 11.98 kB / 0.7876 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.2741, allocations: 4 kB / 0.7876 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.015e-05/0.2742, allocations: 7.938 kB / 0.7876 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.2742, allocations: 7.922 kB / 0.7876 GB, free: 8.73 MB / 0.6075 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 (falFac.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001469/0.2744, allocations: 113.8 kB / 0.7878 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/0.2744, allocations: 4 kB / 0.7878 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002678/0.2747, allocations: 85.45 kB / 0.7878 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.2747, allocations: 4 kB / 0.7878 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2747, allocations: 0 / 0.7878 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.2747, allocations: 4 kB / 0.7878 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.2749, allocations: 165.6 kB / 0.788 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2749, allocations: 4 kB / 0.788 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.425e-05/0.275, allocations: 7.984 kB / 0.788 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.88e-06/0.275, allocations: 4.375 kB / 0.788 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.275, allocations: 0 / 0.788 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.275, allocations: 0 / 0.788 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.275, allocations: 3.938 kB / 0.788 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.2753, allocations: 179.4 kB / 0.7882 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.026e-05/0.2754, allocations: 84.98 kB / 0.7883 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.2754, allocations: 4 kB / 0.7883 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.255e-05/0.2755, allocations: 3.984 kB / 0.7883 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.498e-05/0.2756, allocations: 8 kB / 0.7883 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.2756, allocations: 3.984 kB / 0.7883 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.188e-05/0.2756, allocations: 91.28 kB / 0.7884 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2756, allocations: 0 / 0.7884 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002262/0.2759, allocations: 11.91 kB / 0.7884 GB, free: 7.855 MB / 0.6075 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 (rea2Int.y,falFac.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006147/0.2765, allocations: 0.7202 MB / 0.7891 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002529/0.2767, allocations: 43.95 kB / 0.7891 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2768, allocations: 0 / 0.7891 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.763e-05/0.2769, allocations: 23.97 kB / 0.7892 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.2772, allocations: 18.91 kB / 0.7892 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.2788, allocations: 1.284 MB / 0.7904 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.2791, allocations: 0.6768 MB / 0.7911 GB, free: 4.961 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.413e-05/0.2791, allocations: 7.984 kB / 0.7911 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.737e-05/0.2792, allocations: 15.44 kB / 0.7911 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of SimCode: time 2.61e-07/0.2792, allocations: 7.938 kB / 0.7911 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01871/0.2979, allocations: 1.666 MB / 0.7928 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.29/7.588, allocations: 7.266 kB / 0.7928 GB, free: 3.324 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)