Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 107.1 kB / 16.52 MB, free: 6.727 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.0014/0.0014, allocations: 195.2 kB / 17.45 MB, free: 6.051 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.404/1.404, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7404/0.7404, allocations: 115.3 MB / 406.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 59.91 kB / 493.6 MB, free: 0.8359 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3334, allocations: 76.18 MB / 0.5564 GB, free: 36.33 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.00165/0.3351, allocations: 0.6331 MB / 0.557 GB, free: 35.95 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002379/0.3353, allocations: 53.23 kB / 0.5571 GB, free: 35.92 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.586e-06/0.3354, allocations: 0 / 0.5571 GB, free: 35.92 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.548e-05/0.3354, allocations: 0 / 0.5571 GB, free: 35.92 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.619e-06/0.3354, allocations: 10.19 kB / 0.5571 GB, free: 35.91 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001563/0.3356, allocations: 6.609 kB / 0.5571 GB, free: 35.91 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.091e-05/0.3356, allocations: 5.031 kB / 0.5571 GB, free: 35.91 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.506e-05/0.3356, allocations: 2.312 kB / 0.5571 GB, free: 35.91 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.234e-05/0.3357, allocations: 5.312 kB / 0.5571 GB, free: 35.9 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.713e-05/0.3357, allocations: 7.438 kB / 0.5571 GB, free: 35.9 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.336e-06/0.3357, allocations: 0 / 0.5571 GB, free: 35.9 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.758e-05/0.3357, allocations: 5.531 kB / 0.5571 GB, free: 35.9 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.283e-06/0.3358, allocations: 0.9688 kB / 0.5571 GB, free: 35.9 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.702e-05/0.3358, allocations: 9.109 kB / 0.5571 GB, free: 35.89 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 5.221e-05/0.3358, allocations: 9.562 kB / 0.5571 GB, free: 35.89 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3358, allocations: 0 / 0.5571 GB, free: 35.89 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3359, allocations: 3.094 kB / 0.5571 GB, free: 35.89 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.467e-06/0.3359, allocations: 0 / 0.5571 GB, free: 35.89 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0001951/0.3361, allocations: 310.8 kB / 0.5574 GB, free: 35.54 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.3361, allocations: 13.94 kB / 0.5574 GB, free: 35.54 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.764e-05/0.3361, allocations: 0.9375 kB / 0.5574 GB, free: 35.54 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.483e-05/0.3362, allocations: 161.6 kB / 0.5576 GB, free: 35.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.749e-06/0.3362, allocations: 1.062 kB / 0.5576 GB, free: 35.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.558e-06/0.3362, allocations: 7.203 kB / 0.5576 GB, free: 35.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.276e-05/0.3363, allocations: 38.17 kB / 0.5576 GB, free: 35.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-06/0.3363, allocations: 2.203 kB / 0.5576 GB, free: 35.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.3363, allocations: 3.938 kB / 0.5576 GB, free: 35.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.3363, allocations: 1.875 kB / 0.5576 GB, free: 35.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.858e-05/0.3364, allocations: 3.531 kB / 0.5576 GB, free: 35.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.999e-05/0.3365, allocations: 150.3 kB / 0.5578 GB, free: 35.11 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.723e-05/0.3365, allocations: 27.86 kB / 0.5578 GB, free: 35.08 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.445e-05/0.3365, allocations: 11.02 kB / 0.5578 GB, free: 35.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001265/0.3366, allocations: 81.11 kB / 0.5579 GB, free: 34.97 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.3367, allocations: 36.91 kB / 0.5579 GB, free: 34.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.3367, allocations: 0 / 0.5579 GB, free: 34.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001111/0.3368, allocations: 41.8 kB / 0.558 GB, free: 34.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.04e-05/0.3368, allocations: 56.62 kB / 0.558 GB, free: 34.83 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.785e-05/0.3368, allocations: 90.48 kB / 0.5581 GB, free: 34.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.392e-06/0.3369, allocations: 26.98 kB / 0.5581 GB, free: 34.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.596e-06/0.3369, allocations: 81.81 kB / 0.5582 GB, free: 34.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.3369, allocations: 5.062 kB / 0.5582 GB, free: 34.61 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.286e-05/0.3369, allocations: 14.25 kB / 0.5582 GB, free: 34.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.59e-05/0.337, allocations: 316.6 kB / 0.5585 GB, free: 34.28 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.051e-05/0.337, allocations: 1.688 kB / 0.5585 GB, free: 34.28 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.304e-06/0.337, allocations: 4.578 kB / 0.5585 GB, free: 34.28 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.667e-05/0.337, allocations: 16.8 kB / 0.5586 GB, free: 34.27 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.337, allocations: 3.938 kB / 0.5586 GB, free: 34.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.983e-05/0.3371, allocations: 41.53 kB / 0.5586 GB, free: 34.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.3371, allocations: 4.656 kB / 0.5586 GB, free: 34.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3371, allocations: 1.156 kB / 0.5586 GB, free: 34.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.3371, allocations: 3.938 kB / 0.5586 GB, free: 34.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.7e-05/0.3372, allocations: 6.828 kB / 0.5586 GB, free: 34.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.3372, allocations: 0 / 0.5586 GB, free: 34.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.27e-05/0.3372, allocations: 1.156 kB / 0.5586 GB, free: 34.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.136e-06/0.3372, allocations: 0.5625 kB / 0.5586 GB, free: 34.23 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 3.805e-05/0.3373, allocations: 113.6 kB / 0.5587 GB, free: 34.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.873e-06/0.3373, allocations: 0 / 0.5587 GB, free: 34.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.237e-05/0.3373, allocations: 50.47 kB / 0.5588 GB, free: 34.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3374, allocations: 0.9688 kB / 0.5588 GB, free: 34.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.3374, allocations: 0 / 0.5588 GB, free: 34.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3374, allocations: 9.391 kB / 0.5588 GB, free: 34.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.091e-05/0.3374, allocations: 152.1 kB / 0.5589 GB, free: 33.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3374, allocations: 1.094 kB / 0.5589 GB, free: 33.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.049e-05/0.3375, allocations: 2.656 kB / 0.5589 GB, free: 33.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3375, allocations: 2.062 kB / 0.5589 GB, free: 33.88 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.191e-06/0.3375, allocations: 3.938 kB / 0.5589 GB, free: 33.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3375, allocations: 4.844 kB / 0.5589 GB, free: 33.87 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3375, allocations: 0.5625 kB / 0.5589 GB, free: 33.87 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.687e-05/0.3375, allocations: 69.14 kB / 0.559 GB, free: 33.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.423e-05/0.3376, allocations: 77.77 kB / 0.5591 GB, free: 33.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.147e-06/0.3376, allocations: 5.031 kB / 0.5591 GB, free: 33.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.027e-05/0.3376, allocations: 0.6875 kB / 0.5591 GB, free: 33.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.017e-05/0.3376, allocations: 5.969 kB / 0.5591 GB, free: 33.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-06/0.3376, allocations: 1.031 kB / 0.5591 GB, free: 33.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.021e-05/0.3376, allocations: 75.28 kB / 0.5592 GB, free: 33.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3376, allocations: 0.5 kB / 0.5592 GB, free: 33.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001904/0.3378, allocations: 7.5 kB / 0.5592 GB, free: 33.62 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001106/0.338, allocations: 104.7 kB / 0.5593 GB, free: 33.53 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 6.285e-05/0.338, allocations: 6.562 kB / 0.5593 GB, free: 33.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.338, allocations: 1.062 kB / 0.5593 GB, free: 33.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.12e-05/0.3381, allocations: 8.453 kB / 0.5593 GB, free: 33.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.3382, allocations: 5.984 kB / 0.5593 GB, free: 33.53 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001448/0.3383, allocations: 105.3 kB / 0.5594 GB, free: 33.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.645e-05/0.3384, allocations: 0.6718 MB / 0.5601 GB, free: 32.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.153e-05/0.3384, allocations: 13.38 kB / 0.5601 GB, free: 32.7 MB / 446.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3385, allocations: 0 / 0.5601 GB, free: 32.7 MB / 446.1 MB Notification: Performance of Templates: time 0.001515/0.34, allocations: 449.5 kB / 0.5605 GB, free: 32.69 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)