Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 106.8 kB / 15.99 MB, free: 6.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 195.2 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.8477/0.8477, allocations: 143 MB / 433.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 67.91 kB / 0.5143 GB, free: 15.54 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3064, allocations: 82.03 MB / 0.5944 GB, free: 16.38 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.002187/0.3086, allocations: 1.571 MB / 0.596 GB, free: 14.81 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002826/0.3089, allocations: 120.5 kB / 0.5961 GB, free: 14.69 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.564e-05/0.3089, allocations: 0 / 0.5961 GB, free: 14.69 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.972e-05/0.309, allocations: 3.984 kB / 0.5961 GB, free: 14.68 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.191e-05/0.3091, allocations: 0 / 0.5961 GB, free: 14.68 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002158/0.3093, allocations: 23.91 kB / 0.5961 GB, free: 14.66 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.521e-05/0.3093, allocations: 29.28 kB / 0.5961 GB, free: 14.63 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.982e-05/0.3094, allocations: 11.92 kB / 0.5962 GB, free: 14.62 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.652e-05/0.3095, allocations: 9.531 kB / 0.5962 GB, free: 14.61 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.044e-05/0.3095, allocations: 19.91 kB / 0.5962 GB, free: 14.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.156e-05/0.3095, allocations: 4 kB / 0.5962 GB, free: 14.59 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.38e-05/0.3096, allocations: 15.98 kB / 0.5962 GB, free: 14.57 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.094e-05/0.3096, allocations: 5.344 kB / 0.5962 GB, free: 14.57 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.163e-05/0.3096, allocations: 15.92 kB / 0.5962 GB, free: 14.55 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.292e-05/0.3097, allocations: 23.95 kB / 0.5962 GB, free: 14.53 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3097, allocations: 5.156 kB / 0.5962 GB, free: 14.53 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3097, allocations: 0 / 0.5962 GB, free: 14.53 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.77e-06/0.3098, allocations: 0 / 0.5962 GB, free: 14.53 MB / 446.1 MB 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.0004112/0.3102, allocations: 346.3 kB / 0.5966 GB, free: 14.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3102, allocations: 9.562 kB / 0.5966 GB, free: 14.13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.948e-05/0.3103, allocations: 0.9375 kB / 0.5966 GB, free: 14.13 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.732e-05/0.3103, allocations: 176.3 kB / 0.5968 GB, free: 13.92 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.3104, allocations: 384 / 0.5968 GB, free: 13.92 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.465e-05/0.3104, allocations: 9.625 kB / 0.5968 GB, free: 13.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001854/0.3106, allocations: 54.23 kB / 0.5968 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.3106, allocations: 1.5 kB / 0.5968 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.3106, allocations: 3.938 kB / 0.5968 GB, free: 13.85 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.3106, allocations: 4 kB / 0.5968 GB, free: 13.85 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001603/0.3108, allocations: 45.2 kB / 0.5969 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002997/0.3111, allocations: 266 kB / 0.5971 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003012/0.3114, allocations: 56.89 kB / 0.5972 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.755e-05/0.3115, allocations: 32.89 kB / 0.5972 GB, free: 13.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.102e-05/0.3116, allocations: 86.39 kB / 0.5973 GB, free: 13.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.086e-05/0.3116, allocations: 30.56 kB / 0.5973 GB, free: 13.26 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.3116, allocations: 3.938 kB / 0.5973 GB, free: 13.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003324/0.312, allocations: 95.16 kB / 0.5974 GB, free: 13.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.005e-05/0.312, allocations: 56.69 kB / 0.5975 GB, free: 13.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.725e-05/0.3121, allocations: 101.8 kB / 0.5976 GB, free: 12.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.135e-06/0.3121, allocations: 25.7 kB / 0.5976 GB, free: 12.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.416e-05/0.3121, allocations: 81.45 kB / 0.5977 GB, free: 12.87 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.3121, allocations: 7.906 kB / 0.5977 GB, free: 12.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.05e-05/0.3122, allocations: 23.11 kB / 0.5977 GB, free: 12.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.111e-05/0.3122, allocations: 310.8 kB / 0.598 GB, free: 12.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.068e-05/0.3123, allocations: 16.92 kB / 0.598 GB, free: 12.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.948e-05/0.3124, allocations: 27.91 kB / 0.598 GB, free: 12.48 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/0.3125, allocations: 42.08 kB / 0.5981 GB, free: 12.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3125, allocations: 5.344 kB / 0.5981 GB, free: 12.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000179/0.3127, allocations: 77.55 kB / 0.5982 GB, free: 12.35 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.3127, allocations: 8.656 kB / 0.5982 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3127, allocations: 0 / 0.5982 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.3127, allocations: 1.516 kB / 0.5982 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.476e-05/0.3128, allocations: 11.98 kB / 0.5982 GB, free: 12.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.3128, allocations: 5 kB / 0.5982 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.29e-05/0.3129, allocations: 7.984 kB / 0.5982 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/0.3129, allocations: 1.188 kB / 0.5982 GB, free: 12.32 MB / 446.1 MB 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 4.575e-05/0.313, allocations: 121.7 kB / 0.5983 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.263e-05/0.313, allocations: 1.219 kB / 0.5983 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002205/0.3132, allocations: 81.62 kB / 0.5984 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3132, allocations: 1.156 kB / 0.5984 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3132, allocations: 4 kB / 0.5984 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.3132, allocations: 0 / 0.5984 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001116/0.3134, allocations: 166.8 kB / 0.5985 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3134, allocations: 0 / 0.5985 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-05/0.3134, allocations: 11.98 kB / 0.5986 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.3134, allocations: 0.5 kB / 0.5986 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.3135, allocations: 5.938 kB / 0.5986 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3135, allocations: 0 / 0.5986 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.3135, allocations: 0 / 0.5986 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001959/0.3137, allocations: 176.8 kB / 0.5987 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.745e-05/0.3137, allocations: 84.95 kB / 0.5988 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.3137, allocations: 4.531 kB / 0.5988 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.018e-05/0.3138, allocations: 12.55 kB / 0.5988 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.987e-05/0.3139, allocations: 5 kB / 0.5988 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.3139, allocations: 0 / 0.5988 GB, free: 11.56 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.184e-05/0.3139, allocations: 88.02 kB / 0.5989 GB, free: 11.47 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3139, allocations: 0 / 0.5989 GB, free: 11.47 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.3141, allocations: 13.19 kB / 0.5989 GB, free: 11.46 MB / 446.1 MB 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.0001237/0.3142, allocations: 95.25 kB / 0.599 GB, free: 11.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002186/0.3145, allocations: 53.36 kB / 0.5991 GB, free: 11.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3145, allocations: 1.562 kB / 0.5991 GB, free: 11.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 8.339e-05/0.3146, allocations: 23.97 kB / 0.5991 GB, free: 11.28 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.3149, allocations: 7.938 kB / 0.5991 GB, free: 11.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002609/0.3151, allocations: 146.8 kB / 0.5992 GB, free: 11.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.16e-05/0.3152, allocations: 0.6768 MB / 0.5999 GB, free: 10.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.835e-05/0.3153, allocations: 15.44 kB / 0.5999 GB, free: 10.38 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3153, allocations: 3.938 kB / 0.5999 GB, free: 10.38 MB / 446.1 MB Notification: Performance of Templates: time 0.001835/0.3171, allocations: 0.7417 MB / 0.6007 GB, free: 9.668 MB / 446.1 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)