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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 189.1 kB / 16.63 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4671/0.4671, allocations: 87.5 MB / 104.9 MB, free: 13.03 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 349.1 MB, free: 2.742 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 112.8 kB / 420 MB, free: 8.48 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 59.91 kB / 0.4891 GB, free: 7.68 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3196, allocations: 70.05 MB / 0.5575 GB, free: 44.75 MB / 410.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002745/0.3224, allocations: 1.566 MB / 0.559 GB, free: 43.54 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003633/0.3228, allocations: 124.3 kB / 0.5591 GB, free: 43.45 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.241e-05/0.3229, allocations: 3.938 kB / 0.5591 GB, free: 43.44 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.013e-05/0.3229, allocations: 0 / 0.5591 GB, free: 43.44 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.652e-05/0.323, allocations: 5.031 kB / 0.5591 GB, free: 43.44 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001949/0.3232, allocations: 16.61 kB / 0.5592 GB, free: 43.43 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.243e-05/0.3233, allocations: 28.33 kB / 0.5592 GB, free: 43.41 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.43e-05/0.3234, allocations: 12.95 kB / 0.5592 GB, free: 43.4 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.847e-05/0.3234, allocations: 17.58 kB / 0.5592 GB, free: 43.39 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.52e-05/0.3234, allocations: 12.42 kB / 0.5592 GB, free: 43.39 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.367e-05/0.3235, allocations: 1.438 kB / 0.5592 GB, free: 43.39 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.621e-05/0.3235, allocations: 9.312 kB / 0.5592 GB, free: 43.38 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.331e-05/0.3235, allocations: 9.281 kB / 0.5592 GB, free: 43.38 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.473e-05/0.3236, allocations: 15.48 kB / 0.5593 GB, free: 43.36 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.376e-05/0.3237, allocations: 24.3 kB / 0.5593 GB, free: 43.35 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3237, allocations: 0 / 0.5593 GB, free: 43.35 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3237, allocations: 0 / 0.5593 GB, free: 43.35 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.3237, allocations: 0 / 0.5593 GB, free: 43.35 MB / 410.7 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.0003714/0.3241, allocations: 356.9 kB / 0.5596 GB, free: 42.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.3241, allocations: 8.031 kB / 0.5596 GB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.426e-05/0.3242, allocations: 4.938 kB / 0.5596 GB, free: 42.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.3243, allocations: 172.2 kB / 0.5598 GB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.3243, allocations: 384 / 0.5598 GB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.3243, allocations: 384 / 0.5598 GB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.3245, allocations: 62.22 kB / 0.5599 GB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.3245, allocations: 8.109 kB / 0.5599 GB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.3245, allocations: 7.938 kB / 0.5599 GB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.3245, allocations: 4 kB / 0.5599 GB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.3247, allocations: 35.95 kB / 0.5599 GB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003348/0.3251, allocations: 257 kB / 0.5602 GB, free: 42.31 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.3254, allocations: 62.47 kB / 0.5602 GB, free: 42.24 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.028e-05/0.3255, allocations: 32.84 kB / 0.5603 GB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.772e-05/0.3256, allocations: 89.03 kB / 0.5603 GB, free: 42.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.483e-05/0.3256, allocations: 34.56 kB / 0.5604 GB, free: 42.06 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 1.342e-06/0.3256, allocations: 0 / 0.5604 GB, free: 42.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003618/0.326, allocations: 93.62 kB / 0.5605 GB, free: 41.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.452e-05/0.326, allocations: 51.41 kB / 0.5605 GB, free: 41.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.526e-05/0.3261, allocations: 101.9 kB / 0.5606 GB, free: 41.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.428e-06/0.3261, allocations: 25.7 kB / 0.5606 GB, free: 41.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.807e-05/0.3261, allocations: 88.03 kB / 0.5607 GB, free: 41.67 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.449e-05/0.3261, allocations: 11.89 kB / 0.5607 GB, free: 41.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-05/0.3262, allocations: 13.72 kB / 0.5607 GB, free: 41.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.711e-05/0.3262, allocations: 322.8 kB / 0.561 GB, free: 41.31 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.524e-05/0.3263, allocations: 19.97 kB / 0.5611 GB, free: 41.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.625e-05/0.3264, allocations: 19.98 kB / 0.5611 GB, free: 41.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001574/0.3266, allocations: 44.81 kB / 0.5611 GB, free: 41.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3266, allocations: 3.938 kB / 0.5611 GB, free: 41.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002043/0.3268, allocations: 73.66 kB / 0.5612 GB, free: 41.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.3268, allocations: 4 kB / 0.5612 GB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.3268, allocations: 0 / 0.5612 GB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.3269, allocations: 7.938 kB / 0.5612 GB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.952e-05/0.3269, allocations: 11.98 kB / 0.5612 GB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.327, allocations: 7.938 kB / 0.5612 GB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.507e-05/0.327, allocations: 7.984 kB / 0.5612 GB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.327, allocations: 4 kB / 0.5612 GB, free: 41.1 MB / 410.7 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 6.729e-05/0.3271, allocations: 113.8 kB / 0.5614 GB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.773e-05/0.3271, allocations: 4 kB / 0.5614 GB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002525/0.3274, allocations: 81.66 kB / 0.5614 GB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3274, allocations: 0 / 0.5614 GB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3274, allocations: 0 / 0.5614 GB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.3274, allocations: 4.031 kB / 0.5614 GB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001389/0.3276, allocations: 165.6 kB / 0.5616 GB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.3276, allocations: 0 / 0.5616 GB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.047e-05/0.3277, allocations: 15.98 kB / 0.5616 GB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.3277, allocations: 0 / 0.5616 GB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.3277, allocations: 0 / 0.5616 GB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3277, allocations: 7.938 kB / 0.5616 GB, free: 40.65 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3277, allocations: 0 / 0.5616 GB, free: 40.65 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000442/0.3281, allocations: 0.7434 MB / 0.5623 GB, free: 39.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.525e-05/0.3282, allocations: 77.11 kB / 0.5624 GB, free: 39.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.3282, allocations: 0 / 0.5624 GB, free: 39.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.447e-05/0.3283, allocations: 7.984 kB / 0.5624 GB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.941e-05/0.3284, allocations: 11.92 kB / 0.5624 GB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.3284, allocations: 0 / 0.5624 GB, free: 39.74 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.731e-05/0.3284, allocations: 87.22 kB / 0.5625 GB, free: 39.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.3284, allocations: 0 / 0.5625 GB, free: 39.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003273/0.3287, allocations: 15.94 kB / 0.5625 GB, free: 39.64 MB / 410.7 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.0001554/0.3289, allocations: 103.2 kB / 0.5626 GB, free: 39.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002259/0.3291, allocations: 47.95 kB / 0.5627 GB, free: 39.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3292, allocations: 0 / 0.5627 GB, free: 39.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.202e-05/0.3293, allocations: 23.92 kB / 0.5627 GB, free: 39.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002944/0.3296, allocations: 8.828 kB / 0.5627 GB, free: 39.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003086/0.3299, allocations: 222.1 kB / 0.5629 GB, free: 39.18 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001082/0.33, allocations: 0.6809 MB / 0.5636 GB, free: 38.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.203e-05/0.33, allocations: 0 / 0.5636 GB, free: 38.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.621e-05/0.3301, allocations: 19.42 kB / 0.5636 GB, free: 38.46 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3301, allocations: 0 / 0.5636 GB, free: 38.46 MB / 410.7 MB Notification: Performance of Templates: time 0.002582/0.3327, allocations: 0.631 MB / 0.5642 GB, free: 37.84 MB / 410.7 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)