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.001249/0.001249, allocations: 104 kB / 16.94 MB, free: 6.191 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.001758/0.001758, allocations: 191.4 kB / 17.86 MB, free: 5.293 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.378/1.378, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.737/0.737, allocations: 122.9 MB / 414.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 63.91 kB / 0.4918 GB, free: 7.426 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3492, allocations: 77.92 MB / 0.5678 GB, free: 32.81 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001816/0.351, allocations: 0.5674 MB / 0.5684 GB, free: 32.46 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002487/0.3513, allocations: 52.59 kB / 0.5685 GB, free: 32.43 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.404e-05/0.3513, allocations: 0 / 0.5685 GB, free: 32.43 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.239e-05/0.3513, allocations: 0 / 0.5685 GB, free: 32.43 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.849e-06/0.3514, allocations: 2.125 kB / 0.5685 GB, free: 32.43 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.3516, allocations: 7.406 kB / 0.5685 GB, free: 32.43 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.968e-05/0.3516, allocations: 3.328 kB / 0.5685 GB, free: 32.43 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.746e-05/0.3517, allocations: 1.641 kB / 0.5685 GB, free: 32.43 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.588e-05/0.3517, allocations: 5.094 kB / 0.5685 GB, free: 32.42 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.294e-05/0.3517, allocations: 11.94 kB / 0.5685 GB, free: 32.41 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.047e-06/0.3517, allocations: 3.938 kB / 0.5685 GB, free: 32.41 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.526e-05/0.3518, allocations: 9.953 kB / 0.5685 GB, free: 32.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.558e-06/0.3518, allocations: 5.125 kB / 0.5685 GB, free: 32.4 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.865e-05/0.3518, allocations: 4.75 kB / 0.5685 GB, free: 32.4 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.253e-05/0.3519, allocations: 6.781 kB / 0.5685 GB, free: 32.4 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3519, allocations: 1.156 kB / 0.5685 GB, free: 32.4 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3519, allocations: 0 / 0.5685 GB, free: 32.4 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.3519, allocations: 0 / 0.5685 GB, free: 32.4 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.0002203/0.3522, allocations: 315.4 kB / 0.5688 GB, free: 32.05 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.3522, allocations: 11.83 kB / 0.5688 GB, free: 32.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.962e-05/0.3522, allocations: 2.062 kB / 0.5688 GB, free: 32.05 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.298e-05/0.3523, allocations: 162.2 kB / 0.569 GB, free: 31.85 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.297e-06/0.3523, allocations: 1.531 kB / 0.569 GB, free: 31.85 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.043e-06/0.3523, allocations: 2 kB / 0.569 GB, free: 31.85 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.785e-05/0.3524, allocations: 32.78 kB / 0.569 GB, free: 31.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.3524, allocations: 1.562 kB / 0.569 GB, free: 31.82 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.864e-06/0.3524, allocations: 3.938 kB / 0.569 GB, free: 31.82 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3524, allocations: 0 / 0.569 GB, free: 31.82 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.235e-05/0.3525, allocations: 14.45 kB / 0.569 GB, free: 31.81 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001073/0.3526, allocations: 149.8 kB / 0.5692 GB, free: 31.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.225e-05/0.3526, allocations: 24.58 kB / 0.5692 GB, free: 31.59 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.578e-05/0.3527, allocations: 10.14 kB / 0.5692 GB, free: 31.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001438/0.3528, allocations: 82.44 kB / 0.5693 GB, free: 31.49 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/0.3528, allocations: 31.62 kB / 0.5693 GB, free: 31.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 8.71e-07/0.3528, allocations: 1.031 kB / 0.5693 GB, free: 31.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001315/0.353, allocations: 48.28 kB / 0.5694 GB, free: 31.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.29e-05/0.353, allocations: 54.53 kB / 0.5694 GB, free: 31.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.049e-05/0.353, allocations: 89.86 kB / 0.5695 GB, free: 31.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.522e-06/0.3531, allocations: 26.61 kB / 0.5695 GB, free: 31.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.467e-05/0.3531, allocations: 85.84 kB / 0.5696 GB, free: 31.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.949e-05/0.3531, allocations: 3.906 kB / 0.5696 GB, free: 31.12 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-05/0.3531, allocations: 18.92 kB / 0.5696 GB, free: 31.11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.198e-05/0.3532, allocations: 314.1 kB / 0.5699 GB, free: 30.79 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.146e-05/0.3532, allocations: 2.156 kB / 0.5699 GB, free: 30.79 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.704e-06/0.3532, allocations: 7.469 kB / 0.5699 GB, free: 30.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.042e-05/0.3532, allocations: 14.7 kB / 0.57 GB, free: 30.78 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.3533, allocations: 0.5625 kB / 0.57 GB, free: 30.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.362e-05/0.3533, allocations: 41.05 kB / 0.57 GB, free: 30.74 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.3533, allocations: 6.281 kB / 0.57 GB, free: 30.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.3533, allocations: 0.7031 kB / 0.57 GB, free: 30.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.3534, allocations: 3.938 kB / 0.57 GB, free: 30.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.342e-05/0.3534, allocations: 4.516 kB / 0.57 GB, free: 30.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.3534, allocations: 5.672 kB / 0.57 GB, free: 30.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.51e-05/0.3535, allocations: 5.375 kB / 0.57 GB, free: 30.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-06/0.3535, allocations: 1.156 kB / 0.57 GB, free: 30.73 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 4.643e-05/0.3535, allocations: 109.3 kB / 0.5701 GB, free: 30.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.434e-06/0.3535, allocations: 1.094 kB / 0.5701 GB, free: 30.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8e-05/0.3536, allocations: 57.05 kB / 0.5702 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3536, allocations: 2.062 kB / 0.5702 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3536, allocations: 0.8438 kB / 0.5702 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.3536, allocations: 0 / 0.5702 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.88e-05/0.3537, allocations: 147.1 kB / 0.5703 GB, free: 30.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3537, allocations: 1.062 kB / 0.5703 GB, free: 30.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.101e-05/0.3537, allocations: 4.297 kB / 0.5703 GB, free: 30.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.3537, allocations: 1.062 kB / 0.5703 GB, free: 30.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.3537, allocations: 8.578 kB / 0.5703 GB, free: 30.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3538, allocations: 0.7812 kB / 0.5703 GB, free: 30.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3538, allocations: 1.109 kB / 0.5703 GB, free: 30.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.115e-05/0.3538, allocations: 63 kB / 0.5704 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.808e-05/0.3539, allocations: 79.09 kB / 0.5705 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.3539, allocations: 9.562 kB / 0.5705 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.071e-05/0.3539, allocations: 0.7188 kB / 0.5705 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.538e-05/0.3539, allocations: 6.766 kB / 0.5705 GB, free: 30.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.3539, allocations: 2.438 kB / 0.5705 GB, free: 30.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.25e-05/0.3539, allocations: 75.28 kB / 0.5706 GB, free: 30.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3539, allocations: 1.125 kB / 0.5706 GB, free: 30.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001884/0.3541, allocations: 4.031 kB / 0.5706 GB, free: 30.13 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.0001364/0.3543, allocations: 103.2 kB / 0.5707 GB, free: 30.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.56e-05/0.3544, allocations: 13.34 kB / 0.5707 GB, free: 30.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3544, allocations: 0 / 0.5707 GB, free: 30.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.079e-05/0.3544, allocations: 5.016 kB / 0.5707 GB, free: 30.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.3545, allocations: 2.844 kB / 0.5707 GB, free: 30.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001794/0.3547, allocations: 116.9 kB / 0.5708 GB, free: 29.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.2e-05/0.3548, allocations: 0.6723 MB / 0.5715 GB, free: 29.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.302e-05/0.3548, allocations: 10.12 kB / 0.5715 GB, free: 29.2 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3549, allocations: 0.875 kB / 0.5715 GB, free: 29.2 MB / 446.1 MB Notification: Performance of Templates: time 0.001851/0.3567, allocations: 458 kB / 0.5719 GB, free: 29.19 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)