Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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/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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_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.001176/0.001176, allocations: 107.4 kB / 17.04 MB, free: 6.055 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.001127/0.001127, allocations: 196 kB / 17.98 MB, free: 5.141 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.258/1.258, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6809/0.6809, allocations: 115.1 MB / 406.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001188, allocations: 67.84 kB / 494.8 MB, free: 15.85 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3135, allocations: 76.14 MB / 0.5576 GB, free: 36.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002593/0.3161, allocations: 1.497 MB / 0.559 GB, free: 35.7 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003567/0.3165, allocations: 130.4 kB / 0.5592 GB, free: 35.61 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.969e-05/0.3165, allocations: 1.281 kB / 0.5592 GB, free: 35.61 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.167e-05/0.3166, allocations: 2.859 kB / 0.5592 GB, free: 35.61 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.208e-05/0.3166, allocations: 7.875 kB / 0.5592 GB, free: 35.6 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002234/0.3169, allocations: 31.61 kB / 0.5592 GB, free: 35.58 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.728e-05/0.3169, allocations: 24.84 kB / 0.5592 GB, free: 35.57 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.933e-05/0.317, allocations: 11.36 kB / 0.5592 GB, free: 35.57 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.464e-05/0.3171, allocations: 22.16 kB / 0.5593 GB, free: 35.55 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.11e-05/0.3171, allocations: 9.656 kB / 0.5593 GB, free: 35.55 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.454e-05/0.3172, allocations: 2.469 kB / 0.5593 GB, free: 35.55 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.587e-05/0.3172, allocations: 14.14 kB / 0.5593 GB, free: 35.55 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.524e-05/0.3173, allocations: 12.56 kB / 0.5593 GB, free: 35.54 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.426e-05/0.3173, allocations: 11.88 kB / 0.5593 GB, free: 35.53 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000106/0.3174, allocations: 30.11 kB / 0.5593 GB, free: 35.52 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3174, allocations: 0 / 0.5593 GB, free: 35.52 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3174, allocations: 0 / 0.5593 GB, free: 35.52 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.3174, allocations: 1.781 kB / 0.5593 GB, free: 35.52 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.0004057/0.3178, allocations: 348 kB / 0.5597 GB, free: 35.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.3179, allocations: 9.531 kB / 0.5597 GB, free: 35.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.176e-05/0.3179, allocations: 3.031 kB / 0.5597 GB, free: 35.16 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.475e-05/0.318, allocations: 171.1 kB / 0.5598 GB, free: 34.96 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.318, allocations: 3.062 kB / 0.5598 GB, free: 34.96 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.49e-05/0.3181, allocations: 2.406 kB / 0.5598 GB, free: 34.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.3182, allocations: 60.67 kB / 0.5599 GB, free: 34.92 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.3183, allocations: 4.125 kB / 0.5599 GB, free: 34.91 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.3183, allocations: 3.938 kB / 0.5599 GB, free: 34.91 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3183, allocations: 1.531 kB / 0.5599 GB, free: 34.91 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.3185, allocations: 40.25 kB / 0.56 GB, free: 34.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003223/0.3188, allocations: 264.1 kB / 0.5602 GB, free: 34.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003038/0.3191, allocations: 59.17 kB / 0.5603 GB, free: 34.59 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.011e-05/0.3192, allocations: 31.09 kB / 0.5603 GB, free: 34.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.474e-05/0.3193, allocations: 81.27 kB / 0.5604 GB, free: 34.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.3193, allocations: 37.33 kB / 0.5604 GB, free: 34.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.3193, allocations: 0.75 kB / 0.5604 GB, free: 34.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003406/0.3197, allocations: 88.69 kB / 0.5605 GB, free: 34.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.346e-05/0.3197, allocations: 55.91 kB / 0.5605 GB, free: 34.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.45e-05/0.3198, allocations: 100.7 kB / 0.5606 GB, free: 34.24 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.177e-06/0.3198, allocations: 26.61 kB / 0.5607 GB, free: 34.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.387e-05/0.3198, allocations: 86.72 kB / 0.5607 GB, free: 34.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.421e-05/0.3199, allocations: 9.219 kB / 0.5608 GB, free: 34.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-05/0.3199, allocations: 16.62 kB / 0.5608 GB, free: 34.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.69e-05/0.32, allocations: 321 kB / 0.5611 GB, free: 33.78 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.493e-05/0.32, allocations: 15.89 kB / 0.5611 GB, free: 33.78 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.225e-05/0.3201, allocations: 22.77 kB / 0.5611 GB, free: 33.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.3203, allocations: 51.02 kB / 0.5612 GB, free: 33.76 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3203, allocations: 7.875 kB / 0.5612 GB, free: 33.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001913/0.3205, allocations: 74.31 kB / 0.5612 GB, free: 33.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.3205, allocations: 5.5 kB / 0.5612 GB, free: 33.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.3205, allocations: 1.344 kB / 0.5612 GB, free: 33.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.3205, allocations: 1.891 kB / 0.5612 GB, free: 33.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.613e-05/0.3206, allocations: 10.56 kB / 0.5613 GB, free: 33.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.3206, allocations: 4.969 kB / 0.5613 GB, free: 33.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.269e-05/0.3207, allocations: 10.53 kB / 0.5613 GB, free: 33.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.3207, allocations: 6.922 kB / 0.5613 GB, free: 33.7 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 5.266e-05/0.3208, allocations: 114.1 kB / 0.5614 GB, free: 33.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.373e-05/0.3208, allocations: 3.906 kB / 0.5614 GB, free: 33.58 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002259/0.321, allocations: 82.41 kB / 0.5615 GB, free: 33.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.321, allocations: 1.375 kB / 0.5615 GB, free: 33.54 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.321, allocations: 0.6562 kB / 0.5615 GB, free: 33.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.321, allocations: 0 / 0.5615 GB, free: 33.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.3212, allocations: 166.2 kB / 0.5616 GB, free: 33.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.3212, allocations: 0 / 0.5616 GB, free: 33.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.954e-05/0.3213, allocations: 11 kB / 0.5616 GB, free: 33.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3213, allocations: 0.7969 kB / 0.5616 GB, free: 33.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.3213, allocations: 1.531 kB / 0.5616 GB, free: 33.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.3213, allocations: 5.406 kB / 0.5616 GB, free: 33.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3213, allocations: 0.5625 kB / 0.5616 GB, free: 33.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002126/0.3215, allocations: 174.3 kB / 0.5618 GB, free: 33.19 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.749e-05/0.3215, allocations: 87.34 kB / 0.5619 GB, free: 33.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.3216, allocations: 1.453 kB / 0.5619 GB, free: 33.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.921e-05/0.3216, allocations: 7.109 kB / 0.5619 GB, free: 33.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.301e-05/0.3217, allocations: 5.844 kB / 0.5619 GB, free: 33.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.3217, allocations: 5.531 kB / 0.5619 GB, free: 33.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.545e-05/0.3217, allocations: 81.66 kB / 0.562 GB, free: 33.01 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3217, allocations: 3.938 kB / 0.562 GB, free: 33.01 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002195/0.322, allocations: 7.719 kB / 0.562 GB, free: 33.01 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.0001309/0.3221, allocations: 102.3 kB / 0.5621 GB, free: 32.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000218/0.3223, allocations: 49.97 kB / 0.5622 GB, free: 32.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3223, allocations: 2.969 kB / 0.5622 GB, free: 32.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 8.839e-05/0.3224, allocations: 24.12 kB / 0.5622 GB, free: 32.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.3227, allocations: 6.75 kB / 0.5622 GB, free: 32.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002541/0.323, allocations: 118.9 kB / 0.5623 GB, free: 32.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.3231, allocations: 0.6777 MB / 0.563 GB, free: 32.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.772e-05/0.3231, allocations: 4.422 kB / 0.563 GB, free: 32.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.484e-05/0.3232, allocations: 11.16 kB / 0.563 GB, free: 32.08 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3232, allocations: 6.75 kB / 0.563 GB, free: 32.08 MB / 446.1 MB Notification: Performance of Templates: time 0.002944/0.3261, allocations: 0.7063 MB / 0.5637 GB, free: 32.03 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)