Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.442/2.442, allocations: 251.1 MB / 266.7 MB, free: 11.57 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.001357/0.001357, allocations: 176.6 kB / 326.3 MB, free: 2.848 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.417/2.417, allocations: 205.4 MB / 0.5772 GB, free: 20.82 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.0009245/0.0009244, allocations: 97.84 kB / 0.6817 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005262/0.0005267, allocations: 13.03 kB / 0.7957 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2129, allocations: 106.3 MB / 0.8995 GB, free: 65.54 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001919/0.2149, allocations: 1.232 MB / 0.9007 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003814/0.2153, allocations: 120.5 kB / 0.9008 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.57e-05/0.2154, allocations: 0 / 0.9008 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.092e-05/0.2154, allocations: 7.922 kB / 0.9008 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.313e-05/0.2155, allocations: 0 / 0.9008 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.2157, allocations: 15.98 kB / 0.9008 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.857e-05/0.2158, allocations: 19.94 kB / 0.9009 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.2159, allocations: 19.97 kB / 0.9009 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.15e-05/0.216, allocations: 7.938 kB / 0.9009 GB, free: 64.1 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.123e-05/0.216, allocations: 15.92 kB / 0.9009 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.468e-05/0.216, allocations: 4 kB / 0.9009 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.57e-05/0.2161, allocations: 11.98 kB / 0.9009 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.957e-06/0.2161, allocations: 0 / 0.9009 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.22e-05/0.2162, allocations: 29.7 kB / 0.9009 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.204e-05/0.2162, allocations: 27.94 kB / 0.901 GB, free: 64 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.2163, allocations: 0 / 0.901 GB, free: 64 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.884e-06/0.2163, allocations: 0 / 0.901 GB, free: 64 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.489e-06/0.2163, allocations: 0 / 0.901 GB, free: 64 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.0004693/0.2168, allocations: 349.5 kB / 0.9013 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.2168, allocations: 8.031 kB / 0.9013 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.388e-05/0.2169, allocations: 0.9375 kB / 0.9013 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.545e-05/0.217, allocations: 172.5 kB / 0.9015 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.217, allocations: 4.312 kB / 0.9015 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.217, allocations: 4.375 kB / 0.9015 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002454/0.2173, allocations: 70.16 kB / 0.9016 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.2173, allocations: 4.188 kB / 0.9016 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.2173, allocations: 3.938 kB / 0.9016 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.2173, allocations: 0 / 0.9016 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003067/0.2177, allocations: 51.95 kB / 0.9016 GB, free: 63.26 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003693/0.218, allocations: 260.9 kB / 0.9019 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004755/0.2185, allocations: 70.41 kB / 0.9019 GB, free: 62.88 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.2187, allocations: 36.91 kB / 0.902 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001184/0.2188, allocations: 85.09 kB / 0.902 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.2189, allocations: 30.56 kB / 0.9021 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.944e-06/0.2189, allocations: 0 / 0.9021 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0005773/0.2195, allocations: 113.6 kB / 0.9022 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.136e-05/0.2195, allocations: 51.41 kB / 0.9022 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.441e-05/0.2196, allocations: 97.86 kB / 0.9023 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.19e-05/0.2196, allocations: 25.7 kB / 0.9024 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.602e-05/0.2196, allocations: 100 kB / 0.9024 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.719e-05/0.2197, allocations: 0 / 0.9024 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.2197, allocations: 0 / 0.9024 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.279e-05/0.2198, allocations: 310.8 kB / 0.9027 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.2199, allocations: 23.98 kB / 0.9028 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.2201, allocations: 31.97 kB / 0.9028 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.2203, allocations: 24.45 kB / 0.9028 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2203, allocations: 0 / 0.9028 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003895/0.2207, allocations: 97.47 kB / 0.9029 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.2207, allocations: 4 kB / 0.9029 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2207, allocations: 4 kB / 0.9029 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2207, allocations: 0 / 0.9029 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.2209, allocations: 15.92 kB / 0.9029 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.2209, allocations: 0 / 0.9029 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.864e-05/0.221, allocations: 12 kB / 0.9029 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.221, allocations: 4 kB / 0.9029 GB, free: 61.75 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 7.078e-05/0.2211, allocations: 117.8 kB / 0.9031 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.003e-05/0.2212, allocations: 0 / 0.9031 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003965/0.2216, allocations: 93.14 kB / 0.9032 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.2216, allocations: 4 kB / 0.9032 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.2216, allocations: 0 / 0.9032 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.739e-05/0.2216, allocations: 81.02 kB / 0.9032 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.2217, allocations: 0 / 0.9032 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.2218, allocations: 11.98 kB / 0.9032 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.812e-05/0.2219, allocations: 15.81 kB / 0.9033 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004298/0.2223, allocations: 172.9 kB / 0.9034 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0003851/0.2227, allocations: 250.8 kB / 0.9037 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000168/0.2229, allocations: 35.91 kB / 0.9037 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.844e-05/0.2229, allocations: 83.22 kB / 0.9038 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of Backend: time 6.01e-07/0.2229, allocations: 4 kB / 0.9038 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000566/0.2235, allocations: 106.4 kB / 0.9039 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0004009/0.2239, allocations: 0.562 MB / 0.9044 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of Templates: time 0.003499/0.2274, allocations: 0.6888 MB / 0.9051 GB, free: 59.43 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)