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.001301/0.001302, allocations: 104.6 kB / 16.52 MB, free: 6.703 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.001405/0.001405, allocations: 199.1 kB / 17.44 MB, free: 6.066 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.322/1.322, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7155/0.7155, allocations: 115.3 MB / 406.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 67.89 kB / 493.6 MB, free: 0.8477 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3305, allocations: 76.16 MB / 0.5564 GB, free: 36.12 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002543/0.3331, allocations: 1.572 MB / 0.5579 GB, free: 35.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003247/0.3334, allocations: 124.5 kB / 0.558 GB, free: 34.96 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.417e-05/0.3335, allocations: 1.219 kB / 0.558 GB, free: 34.96 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.149e-05/0.3335, allocations: 3.938 kB / 0.558 GB, free: 34.96 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.82e-05/0.3336, allocations: 1.719 kB / 0.558 GB, free: 34.96 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001726/0.3338, allocations: 19.34 kB / 0.558 GB, free: 34.95 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.944e-05/0.3338, allocations: 33.08 kB / 0.5581 GB, free: 34.93 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.231e-05/0.3339, allocations: 6.766 kB / 0.5581 GB, free: 34.93 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.771e-05/0.334, allocations: 17.02 kB / 0.5581 GB, free: 34.93 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.38e-05/0.334, allocations: 15.11 kB / 0.5581 GB, free: 34.92 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.334, allocations: 1.094 kB / 0.5581 GB, free: 34.92 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.59e-05/0.3341, allocations: 12.69 kB / 0.5581 GB, free: 34.91 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.084e-05/0.3341, allocations: 1.062 kB / 0.5581 GB, free: 34.91 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.633e-05/0.3341, allocations: 15.83 kB / 0.5581 GB, free: 34.91 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.178e-05/0.3342, allocations: 21.73 kB / 0.5582 GB, free: 34.9 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3342, allocations: 1.75 kB / 0.5582 GB, free: 34.9 MB / 446.1 MB Notification: Performance of FrontEnd: time 5.81e-07/0.3342, allocations: 0 / 0.5582 GB, free: 34.9 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.3342, allocations: 0 / 0.5582 GB, free: 34.9 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.0003718/0.3346, allocations: 343 kB / 0.5585 GB, free: 34.54 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.3347, allocations: 17.94 kB / 0.5585 GB, free: 34.53 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.222e-05/0.3347, allocations: 7.219 kB / 0.5585 GB, free: 34.53 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.2e-05/0.3348, allocations: 169.4 kB / 0.5587 GB, free: 34.33 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.3348, allocations: 5.5 kB / 0.5587 GB, free: 34.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/0.3348, allocations: 1.594 kB / 0.5587 GB, free: 34.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.335, allocations: 57.77 kB / 0.5587 GB, free: 34.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.335, allocations: 0.75 kB / 0.5587 GB, free: 34.29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.335, allocations: 5.5 kB / 0.5587 GB, free: 34.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.335, allocations: 1.344 kB / 0.5587 GB, free: 34.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.3352, allocations: 43.41 kB / 0.5588 GB, free: 34.28 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002907/0.3355, allocations: 266.5 kB / 0.559 GB, free: 34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003078/0.3358, allocations: 62.97 kB / 0.5591 GB, free: 33.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.996e-05/0.3359, allocations: 29.91 kB / 0.5591 GB, free: 33.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.565e-05/0.336, allocations: 85.84 kB / 0.5592 GB, free: 33.85 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.793e-05/0.3361, allocations: 32.81 kB / 0.5592 GB, free: 33.81 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3361, allocations: 0.9375 kB / 0.5592 GB, free: 33.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.000359/0.3364, allocations: 101.9 kB / 0.5593 GB, free: 33.76 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.94e-05/0.3365, allocations: 54.3 kB / 0.5594 GB, free: 33.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.714e-05/0.3365, allocations: 100.7 kB / 0.5595 GB, free: 33.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.614e-06/0.3365, allocations: 25.7 kB / 0.5595 GB, free: 33.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.504e-05/0.3366, allocations: 84.27 kB / 0.5596 GB, free: 33.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.303e-05/0.3366, allocations: 6.406 kB / 0.5596 GB, free: 33.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-05/0.3366, allocations: 16.53 kB / 0.5596 GB, free: 33.46 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.085e-05/0.3367, allocations: 315.4 kB / 0.5599 GB, free: 33.15 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.864e-05/0.3367, allocations: 20.17 kB / 0.5599 GB, free: 33.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.058e-05/0.3368, allocations: 24.53 kB / 0.56 GB, free: 33.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.337, allocations: 42.25 kB / 0.56 GB, free: 33.13 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.337, allocations: 7.875 kB / 0.56 GB, free: 33.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001988/0.3372, allocations: 73.3 kB / 0.5601 GB, free: 33.08 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.3372, allocations: 4.156 kB / 0.5601 GB, free: 33.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3372, allocations: 2.844 kB / 0.5601 GB, free: 33.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.3373, allocations: 1.281 kB / 0.5601 GB, free: 33.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.987e-05/0.3373, allocations: 11.23 kB / 0.5601 GB, free: 33.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.3374, allocations: 0 / 0.5601 GB, free: 33.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.847e-05/0.3374, allocations: 20.16 kB / 0.5601 GB, free: 33.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.3374, allocations: 1.406 kB / 0.5601 GB, free: 33.07 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.585e-05/0.3375, allocations: 117.1 kB / 0.5602 GB, free: 32.95 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.538e-05/0.3375, allocations: 2.688 kB / 0.5602 GB, free: 32.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002562/0.3378, allocations: 83.81 kB / 0.5603 GB, free: 32.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.3378, allocations: 0.8438 kB / 0.5603 GB, free: 32.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3378, allocations: 1.719 kB / 0.5603 GB, free: 32.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.3378, allocations: 0 / 0.5603 GB, free: 32.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/0.3379, allocations: 169.7 kB / 0.5605 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.338, allocations: 1.562 kB / 0.5605 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.449e-05/0.338, allocations: 11.17 kB / 0.5605 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.338, allocations: 0 / 0.5605 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.3381, allocations: 2.594 kB / 0.5605 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3381, allocations: 0 / 0.5605 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3381, allocations: 1.5 kB / 0.5605 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002233/0.3383, allocations: 174.7 kB / 0.5607 GB, free: 32.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.816e-05/0.3383, allocations: 87.09 kB / 0.5607 GB, free: 32.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.3383, allocations: 1.469 kB / 0.5607 GB, free: 32.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.301e-05/0.3384, allocations: 14.34 kB / 0.5608 GB, free: 32.45 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.3385, allocations: 2.281 kB / 0.5608 GB, free: 32.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.3385, allocations: 3.094 kB / 0.5608 GB, free: 32.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.346e-05/0.3385, allocations: 85.33 kB / 0.5608 GB, free: 32.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3385, allocations: 1.531 kB / 0.5608 GB, free: 32.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002201/0.3387, allocations: 11.41 kB / 0.5609 GB, free: 32.37 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.0001142/0.3389, allocations: 100.3 kB / 0.561 GB, free: 32.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002196/0.3391, allocations: 43.53 kB / 0.561 GB, free: 32.28 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.3391, allocations: 0 / 0.561 GB, free: 32.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.3392, allocations: 28.8 kB / 0.561 GB, free: 32.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002673/0.3395, allocations: 10.5 kB / 0.561 GB, free: 32.26 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002694/0.3398, allocations: 148.4 kB / 0.5612 GB, free: 32.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001029/0.3399, allocations: 0.6782 MB / 0.5618 GB, free: 31.42 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.755e-05/0.3399, allocations: 9.469 kB / 0.5618 GB, free: 31.41 MB / 446.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3399, allocations: 1.406 kB / 0.5618 GB, free: 31.41 MB / 446.1 MB Notification: Performance of Templates: time 0.002117/0.342, allocations: 0.7233 MB / 0.5626 GB, free: 31.39 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 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)