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.001142/0.001142, allocations: 109.4 kB / 15.69 MB, free: 128 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.001219/0.001219, allocations: 185 kB / 16.62 MB, free: 6.613 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.45/1.45, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.71/1.71, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001435/0.001436, allocations: 75.14 kB / 0.6718 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2273, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002945/0.2303, allocations: 1.529 MB / 0.7851 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003655/0.2307, allocations: 136.4 kB / 0.7852 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.987e-05/0.2307, allocations: 0 / 0.7852 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.957e-05/0.2308, allocations: 3.938 kB / 0.7853 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.224e-05/0.2308, allocations: 3.938 kB / 0.7853 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.2311, allocations: 31.97 kB / 0.7853 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.015e-05/0.2312, allocations: 31.86 kB / 0.7853 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.2313, allocations: 23.97 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.698e-05/0.2313, allocations: 8 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.331e-05/0.2314, allocations: 19.92 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.2314, allocations: 4 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.259e-05/0.2315, allocations: 19.98 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.629e-05/0.2315, allocations: 11.92 kB / 0.7854 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.041e-05/0.2315, allocations: 15.92 kB / 0.7854 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.2317, allocations: 47.81 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2317, allocations: 4 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.833e-06/0.2317, allocations: 0 / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.479e-06/0.2317, allocations: 3.938 kB / 0.7855 GB, free: 11.34 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.000447/0.2321, allocations: 355.6 kB / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.2322, allocations: 8.031 kB / 0.7858 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.263e-05/0.2322, allocations: 34.73 kB / 0.7858 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.391e-05/0.2323, allocations: 12.84 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.2324, allocations: 164.4 kB / 0.786 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.144e-05/0.2324, allocations: 8.375 kB / 0.786 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.727e-06/0.2325, allocations: 384 / 0.786 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.2327, allocations: 66.22 kB / 0.7861 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.2327, allocations: 3.938 kB / 0.7861 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.2327, allocations: 3.984 kB / 0.7861 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.2327, allocations: 0 / 0.7861 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.2329, allocations: 47.89 kB / 0.7861 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004263/0.2333, allocations: 284.7 kB / 0.7864 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003242/0.2337, allocations: 62.47 kB / 0.7865 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.217e-05/0.2338, allocations: 24.91 kB / 0.7865 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003128/0.2341, allocations: 397.5 kB / 0.7869 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.2341, allocations: 38.56 kB / 0.7869 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.2341, allocations: 0 / 0.7869 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003832/0.2345, allocations: 93.62 kB / 0.787 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.2346, allocations: 51.41 kB / 0.7871 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.467e-05/0.2347, allocations: 113.8 kB / 0.7872 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.2347, allocations: 29.7 kB / 0.7872 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.155e-05/0.2348, allocations: 84.05 kB / 0.7873 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.2348, allocations: 8 kB / 0.7873 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.826e-05/0.2348, allocations: 17.66 kB / 0.7873 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.235, allocations: 326.8 kB / 0.7876 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.469e-05/0.2351, allocations: 11.98 kB / 0.7876 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.807e-05/0.2352, allocations: 23.97 kB / 0.7876 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001587/0.2353, allocations: 48.83 kB / 0.7877 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.2353, allocations: 0 / 0.7877 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002028/0.2355, allocations: 81.48 kB / 0.7878 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.2356, allocations: 8 kB / 0.7878 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.2356, allocations: 0 / 0.7878 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.2356, allocations: 0 / 0.7878 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.9e-05/0.2357, allocations: 15.92 kB / 0.7878 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.2357, allocations: 0 / 0.7878 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.757e-05/0.2358, allocations: 8 kB / 0.7878 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.2358, allocations: 3.984 kB / 0.7878 GB, free: 8.629 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 8.886e-05/0.2359, allocations: 116.6 kB / 0.7879 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.539e-05/0.2359, allocations: 4 kB / 0.7879 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002591/0.2362, allocations: 85.45 kB / 0.788 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.2362, allocations: 3.938 kB / 0.788 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2362, allocations: 0 / 0.788 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.2362, allocations: 8.375 kB / 0.788 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001763/0.2364, allocations: 173.7 kB / 0.7882 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2364, allocations: 0 / 0.7882 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.046e-05/0.2365, allocations: 11.98 kB / 0.7882 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.84e-06/0.2365, allocations: 0 / 0.7882 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.2365, allocations: 7.922 kB / 0.7882 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2365, allocations: 4 kB / 0.7882 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2365, allocations: 0 / 0.7882 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/0.2368, allocations: 175.4 kB / 0.7884 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.765e-05/0.2368, allocations: 81.05 kB / 0.7884 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.2368, allocations: 0 / 0.7884 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.177e-05/0.2369, allocations: 11.98 kB / 0.7885 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.643e-05/0.237, allocations: 4 kB / 0.7885 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.237, allocations: 3.984 kB / 0.7885 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.828e-05/0.237, allocations: 87.28 kB / 0.7885 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2371, allocations: 0 / 0.7885 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002269/0.2373, allocations: 15.91 kB / 0.7886 GB, free: 7.746 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.0005792/0.2379, allocations: 0.7124 MB / 0.7893 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002296/0.2381, allocations: 47.95 kB / 0.7893 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.2381, allocations: 0 / 0.7893 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.165e-05/0.2382, allocations: 31.91 kB / 0.7893 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/0.2385, allocations: 0 / 0.7893 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.24, allocations: 1.302 MB / 0.7906 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.2402, allocations: 0.6808 MB / 0.7913 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.31e-05/0.2403, allocations: 7.938 kB / 0.7913 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.471e-05/0.2403, allocations: 15.44 kB / 0.7913 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2403, allocations: 0 / 0.7913 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01769/0.258, allocations: 1.673 MB / 0.7929 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.125/7.383, allocations: 8.047 kB / 0.7929 GB, free: 3.219 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)