Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Factorial.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.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Factorial",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.001428/0.001428, allocations: 105.4 kB / 15.7 MB, free: 24 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.00171/0.00171, allocations: 196.5 kB / 16.64 MB, free: 6.449 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.52/1.52, allocations: 205.1 MB / 222.5 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.895/1.895, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001578/0.001579, allocations: 69.78 kB / 0.6718 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.2302, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002956/0.2333, allocations: 1.517 MB / 0.7851 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003656/0.2336, allocations: 124.5 kB / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.62e-05/0.2337, allocations: 0 / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.161e-05/0.2337, allocations: 3.938 kB / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.741e-05/0.2338, allocations: 3.938 kB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002513/0.2341, allocations: 27.91 kB / 0.7853 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.678e-05/0.2342, allocations: 27.92 kB / 0.7853 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.2343, allocations: 15.98 kB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.843e-05/0.2343, allocations: 8 kB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.122e-05/0.2344, allocations: 15.92 kB / 0.7853 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.2344, allocations: 4 kB / 0.7853 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.95e-05/0.2345, allocations: 11.98 kB / 0.7853 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.746e-05/0.2345, allocations: 11.98 kB / 0.7854 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.925e-05/0.2345, allocations: 11.88 kB / 0.7854 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001224/0.2347, allocations: 31.95 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2347, allocations: 3.938 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2347, allocations: 4 kB / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.2347, allocations: 3.938 kB / 0.7854 GB, free: 11.44 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004584/0.2352, allocations: 343.7 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.2352, allocations: 8.031 kB / 0.7857 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.332e-05/0.2353, allocations: 34.73 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.935e-05/0.2353, allocations: 4.938 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.2354, allocations: 168.3 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.2354, allocations: 12.31 kB / 0.7859 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.2355, allocations: 4.375 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002061/0.2357, allocations: 58.22 kB / 0.786 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.2357, allocations: 3.938 kB / 0.786 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.2357, allocations: 0 / 0.786 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.2357, allocations: 3.984 kB / 0.786 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.2359, allocations: 43.95 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003741/0.2363, allocations: 260.9 kB / 0.7863 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003095/0.2366, allocations: 62.47 kB / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.225e-05/0.2367, allocations: 24.91 kB / 0.7864 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001116/0.2368, allocations: 81.09 kB / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.2369, allocations: 34.56 kB / 0.7865 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.2369, allocations: 4 kB / 0.7865 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003725/0.2372, allocations: 97.56 kB / 0.7866 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.988e-05/0.2373, allocations: 51.41 kB / 0.7866 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.175e-05/0.2374, allocations: 97.86 kB / 0.7867 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.2374, allocations: 25.7 kB / 0.7868 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.29e-05/0.2374, allocations: 88.05 kB / 0.7868 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.2375, allocations: 15.83 kB / 0.7869 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.2375, allocations: 17.72 kB / 0.7869 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.2376, allocations: 310.8 kB / 0.7872 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.981e-05/0.2377, allocations: 23.97 kB / 0.7872 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.528e-05/0.2378, allocations: 15.98 kB / 0.7872 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.238, allocations: 48.75 kB / 0.7873 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.238, allocations: 11.94 kB / 0.7873 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002072/0.2382, allocations: 77.59 kB / 0.7873 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.2382, allocations: 4 kB / 0.7874 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2382, allocations: 0 / 0.7874 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.2382, allocations: 0 / 0.7874 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.831e-05/0.2383, allocations: 11.98 kB / 0.7874 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.2383, allocations: 0 / 0.7874 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.391e-05/0.2384, allocations: 7.984 kB / 0.7874 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-06/0.2384, allocations: 4 kB / 0.7874 GB, free: 9.164 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 (rea2Int.y,fac.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 7.195e-05/0.2385, allocations: 118.4 kB / 0.7875 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.559e-05/0.2385, allocations: 0 / 0.7875 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002606/0.2388, allocations: 85.59 kB / 0.7876 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.2388, allocations: 3.938 kB / 0.7876 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2388, allocations: 0 / 0.7876 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2388, allocations: 4 kB / 0.7876 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000159/0.239, allocations: 169.6 kB / 0.7877 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.239, allocations: 0 / 0.7877 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.599e-05/0.2391, allocations: 11.98 kB / 0.7877 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.2391, allocations: 4.031 kB / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.2391, allocations: 0 / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2391, allocations: 0 / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2391, allocations: 0 / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002437/0.2393, allocations: 179.3 kB / 0.7879 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.425e-05/0.2394, allocations: 77.11 kB / 0.788 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.2394, allocations: 0 / 0.788 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.153e-05/0.2395, allocations: 11.98 kB / 0.788 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.202e-05/0.2396, allocations: 7.984 kB / 0.788 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.2396, allocations: 0 / 0.788 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.328e-05/0.2396, allocations: 87.22 kB / 0.7881 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2396, allocations: 0 / 0.7881 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002243/0.2398, allocations: 12 kB / 0.7881 GB, free: 8.305 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 (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 (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.0005902/0.2404, allocations: 0.7007 MB / 0.7888 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002282/0.2407, allocations: 51.95 kB / 0.7888 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2407, allocations: 7.875 kB / 0.7889 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.509e-05/0.2408, allocations: 23.97 kB / 0.7889 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002843/0.2411, allocations: 9.891 kB / 0.7889 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004457/0.2415, allocations: 155 kB / 0.789 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/0.2418, allocations: 0.6729 MB / 0.7897 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.543e-05/0.2418, allocations: 15.98 kB / 0.7897 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.612e-05/0.2419, allocations: 15.44 kB / 0.7897 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of SimCode: time 2e-07/0.2419, allocations: 0 / 0.7897 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.2598, allocations: 1.562 MB / 0.7912 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.058/7.318, allocations: 4.062 kB / 0.7912 GB, free: 5.062 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)