Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.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.001132/0.001132, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.008947/0.008947, allocations: 171 kB / 16.27 MB, free: 6.332 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.424/1.424, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.967/2.967, allocations: 473.4 MB / 0.7469 GB, free: 6.078 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004317/0.0004317, allocations: 12.12 kB / 0.9158 GB, free: 33.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3317, allocations: 162.2 MB / 1.074 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007385/0.3325, allocations: 314.9 kB / 1.074 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003092/0.3328, allocations: 59.73 kB / 1.074 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.075e-05/0.3329, allocations: 3.938 kB / 1.074 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.253e-05/0.3329, allocations: 4 kB / 1.075 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.32e-06/0.3329, allocations: 0 / 1.075 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002074/0.3331, allocations: 7.969 kB / 1.075 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.512e-05/0.3332, allocations: 8 kB / 1.075 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.925e-05/0.3332, allocations: 4 kB / 1.075 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.222e-05/0.3332, allocations: 0 / 1.075 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.267e-05/0.3333, allocations: 4 kB / 1.075 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.077e-06/0.3333, allocations: 0 / 1.075 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.673e-05/0.3334, allocations: 4 kB / 1.075 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.736e-06/0.3334, allocations: 0 / 1.075 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.148e-05/0.3334, allocations: 33.69 kB / 1.075 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.412e-05/0.3335, allocations: 11.92 kB / 1.075 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.3335, allocations: 0 / 1.075 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3335, allocations: 0 / 1.075 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.3335, allocations: 4 kB / 1.075 GB, free: 7.09 MB / 0.8262 GB 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.0002989/0.3338, allocations: 315.5 kB / 1.075 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3339, allocations: 12.09 kB / 1.075 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.155e-05/0.3339, allocations: 4.938 kB / 1.075 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.912e-05/0.334, allocations: 160.4 kB / 1.075 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.334, allocations: 4.312 kB / 1.075 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.3341, allocations: 384 / 1.075 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.895e-05/0.3342, allocations: 34.25 kB / 1.075 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.3342, allocations: 192 / 1.075 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.3342, allocations: 7.938 kB / 1.075 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.207e-06/0.3342, allocations: 0 / 1.075 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.898e-05/0.3343, allocations: 4 kB / 1.075 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001466/0.3344, allocations: 153.7 kB / 1.075 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.1e-05/0.3345, allocations: 22.52 kB / 1.075 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.193e-05/0.3345, allocations: 11.03 kB / 1.075 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001638/0.3347, allocations: 81.17 kB / 1.075 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.3347, allocations: 38.55 kB / 1.075 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.3347, allocations: 0 / 1.075 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001431/0.3349, allocations: 45.64 kB / 1.075 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.3349, allocations: 51.41 kB / 1.075 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.637e-05/0.335, allocations: 89.86 kB / 1.076 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.335, allocations: 25.7 kB / 1.076 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.284e-05/0.335, allocations: 80.14 kB / 1.076 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.978e-05/0.335, allocations: 4.031 kB / 1.076 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.771e-05/0.3351, allocations: 21.7 kB / 1.076 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.3352, allocations: 322.8 kB / 1.076 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.121e-05/0.3352, allocations: 7.875 kB / 1.076 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.606e-06/0.3352, allocations: 4 kB / 1.076 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.139e-05/0.3353, allocations: 8.859 kB / 1.076 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.921e-05/0.3353, allocations: 0 / 1.076 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.045e-05/0.3354, allocations: 41.69 kB / 1.076 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.3354, allocations: 9.5 kB / 1.076 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3354, allocations: 0 / 1.076 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.3355, allocations: 7.938 kB / 1.076 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.925e-05/0.3355, allocations: 0 / 1.076 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.3355, allocations: 0 / 1.076 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.427e-05/0.3355, allocations: 7.938 kB / 1.076 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-06/0.3356, allocations: 0 / 1.076 GB, free: 5.305 MB / 0.8262 GB 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 7.702e-05/0.3356, allocations: 109.8 kB / 1.076 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.488e-06/0.3357, allocations: 0 / 1.076 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.107e-05/0.3357, allocations: 53.03 kB / 1.076 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3358, allocations: 0 / 1.076 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3358, allocations: 0 / 1.076 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.3358, allocations: 4 kB / 1.076 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.807e-05/0.3359, allocations: 153.6 kB / 1.076 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3359, allocations: 0 / 1.076 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.387e-05/0.3359, allocations: 4 kB / 1.076 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.3359, allocations: 0 / 1.076 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.3359, allocations: 7.922 kB / 1.076 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3359, allocations: 0 / 1.076 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3359, allocations: 0 / 1.076 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.091e-05/0.336, allocations: 73.09 kB / 1.076 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.7e-05/0.3361, allocations: 77.11 kB / 1.077 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.154e-05/0.3361, allocations: 3.938 kB / 1.077 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.275e-05/0.3361, allocations: 3.984 kB / 1.077 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.521e-05/0.3361, allocations: 4 kB / 1.077 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.3361, allocations: 0 / 1.077 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.423e-05/0.3362, allocations: 79.31 kB / 1.077 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3362, allocations: 0 / 1.077 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002008/0.3364, allocations: 8 kB / 1.077 GB, free: 4.633 MB / 0.8262 GB 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.0001514/0.3365, allocations: 103.2 kB / 1.077 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.681e-05/0.3366, allocations: 15.92 kB / 1.077 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3366, allocations: 0 / 1.077 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.534e-05/0.3366, allocations: 4 kB / 1.077 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000127/0.3368, allocations: 1.375 kB / 1.077 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001819/0.337, allocations: 86.89 kB / 1.077 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002498/0.3372, allocations: 0.6808 MB / 1.078 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.634e-05/0.3372, allocations: 3.938 kB / 1.078 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.77e-05/0.3373, allocations: 7.438 kB / 1.078 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3373, allocations: 0 / 1.078 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of Templates: time 0.002415/0.3397, allocations: 312.7 kB / 1.078 GB, free: 3.363 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)