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.0009929/0.0009931, allocations: 115.1 kB / 17.04 MB, free: 5.805 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.00107/0.00107, allocations: 195 kB / 17.98 MB, free: 5.031 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.302/1.302, 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.71/0.71, allocations: 115.1 MB / 406.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 64.12 kB / 494.8 MB, free: 15.87 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3209, allocations: 76.13 MB / 0.5576 GB, free: 36.67 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001589/0.3225, allocations: 0.5747 MB / 0.5581 GB, free: 36.34 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000208/0.3228, allocations: 47.17 kB / 0.5582 GB, free: 36.31 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.408e-05/0.3228, allocations: 3 kB / 0.5582 GB, free: 36.31 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.031e-05/0.3228, allocations: 3.938 kB / 0.5582 GB, free: 36.31 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.309e-06/0.3228, allocations: 0 / 0.5582 GB, free: 36.31 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001913/0.323, allocations: 5.031 kB / 0.5582 GB, free: 36.31 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.869e-05/0.3231, allocations: 9.812 kB / 0.5582 GB, free: 36.3 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.282e-05/0.3231, allocations: 5.969 kB / 0.5582 GB, free: 36.3 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.17e-05/0.3231, allocations: 1.594 kB / 0.5582 GB, free: 36.3 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.874e-05/0.3232, allocations: 5.188 kB / 0.5582 GB, free: 36.3 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.456e-06/0.3232, allocations: 1.75 kB / 0.5582 GB, free: 36.3 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.115e-05/0.3232, allocations: 13.41 kB / 0.5582 GB, free: 36.29 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.246e-06/0.3233, allocations: 1.641 kB / 0.5582 GB, free: 36.29 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.498e-05/0.3233, allocations: 1.281 kB / 0.5582 GB, free: 36.29 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.046e-05/0.3233, allocations: 12.2 kB / 0.5582 GB, free: 36.28 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3234, allocations: 3.234 kB / 0.5582 GB, free: 36.28 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3234, allocations: 0 / 0.5582 GB, free: 36.28 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.3234, allocations: 0 / 0.5582 GB, free: 36.28 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.0002002/0.3236, allocations: 319.8 kB / 0.5586 GB, free: 35.93 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.3236, allocations: 10.62 kB / 0.5586 GB, free: 35.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.824e-05/0.3237, allocations: 0.9375 kB / 0.5586 GB, free: 35.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.798e-05/0.3237, allocations: 166.6 kB / 0.5587 GB, free: 35.73 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.3237, allocations: 1.312 kB / 0.5587 GB, free: 35.73 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.483e-06/0.3237, allocations: 1.656 kB / 0.5587 GB, free: 35.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.013e-05/0.3238, allocations: 32.08 kB / 0.5588 GB, free: 35.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.3238, allocations: 0.875 kB / 0.5588 GB, free: 35.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-06/0.3238, allocations: 9.438 kB / 0.5588 GB, free: 35.69 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3239, allocations: 1.547 kB / 0.5588 GB, free: 35.69 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.85e-05/0.3239, allocations: 3.953 kB / 0.5588 GB, free: 35.69 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.023e-05/0.324, allocations: 145.8 kB / 0.5589 GB, free: 35.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.02e-05/0.324, allocations: 31.44 kB / 0.5589 GB, free: 35.47 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.444e-05/0.3241, allocations: 7.891 kB / 0.5589 GB, free: 35.46 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001189/0.3242, allocations: 83.12 kB / 0.559 GB, free: 35.37 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.507e-05/0.3242, allocations: 32.08 kB / 0.5591 GB, free: 35.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.3242, allocations: 1.688 kB / 0.5591 GB, free: 35.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001184/0.3243, allocations: 47 kB / 0.5591 GB, free: 35.29 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.024e-05/0.3244, allocations: 55.34 kB / 0.5592 GB, free: 35.22 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.88e-05/0.3244, allocations: 91.81 kB / 0.5592 GB, free: 35.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.731e-06/0.3244, allocations: 25.7 kB / 0.5593 GB, free: 35.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.869e-06/0.3244, allocations: 80.7 kB / 0.5593 GB, free: 35.01 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.3244, allocations: 9.188 kB / 0.5594 GB, free: 35 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.337e-05/0.3245, allocations: 15.17 kB / 0.5594 GB, free: 34.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.749e-05/0.3245, allocations: 312 kB / 0.5597 GB, free: 34.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.221e-05/0.3245, allocations: 2.328 kB / 0.5597 GB, free: 34.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.297e-06/0.3245, allocations: 7.859 kB / 0.5597 GB, free: 34.67 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.729e-05/0.3246, allocations: 10.91 kB / 0.5597 GB, free: 34.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.3246, allocations: 1.406 kB / 0.5597 GB, free: 34.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.086e-05/0.3246, allocations: 44.36 kB / 0.5597 GB, free: 34.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.3246, allocations: 5.328 kB / 0.5597 GB, free: 34.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3247, allocations: 6.094 kB / 0.5597 GB, free: 34.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.3247, allocations: 4.641 kB / 0.5597 GB, free: 34.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.977e-05/0.3247, allocations: 4.484 kB / 0.5598 GB, free: 34.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.3247, allocations: 1.984 kB / 0.5598 GB, free: 34.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.315e-05/0.3248, allocations: 3.938 kB / 0.5598 GB, free: 34.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-06/0.3248, allocations: 3.047 kB / 0.5598 GB, free: 34.61 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 3.813e-05/0.3248, allocations: 108.7 kB / 0.5599 GB, free: 34.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.815e-06/0.3248, allocations: 0.6562 kB / 0.5599 GB, free: 34.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.206e-05/0.3249, allocations: 52.55 kB / 0.5599 GB, free: 34.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.3249, allocations: 0 / 0.5599 GB, free: 34.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.3249, allocations: 3.453 kB / 0.5599 GB, free: 34.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.3249, allocations: 2.609 kB / 0.5599 GB, free: 34.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.625e-05/0.325, allocations: 149.5 kB / 0.5601 GB, free: 34.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.325, allocations: 1.531 kB / 0.5601 GB, free: 34.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.252e-05/0.325, allocations: 10.66 kB / 0.5601 GB, free: 34.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.325, allocations: 0 / 0.5601 GB, free: 34.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.325, allocations: 6.547 kB / 0.5601 GB, free: 34.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.325, allocations: 5.266 kB / 0.5601 GB, free: 34.25 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.325, allocations: 0 / 0.5601 GB, free: 34.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.739e-05/0.3251, allocations: 63.36 kB / 0.5601 GB, free: 34.19 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.345e-05/0.3251, allocations: 78.98 kB / 0.5602 GB, free: 34.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.708e-06/0.3251, allocations: 5.688 kB / 0.5602 GB, free: 34.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.116e-05/0.3252, allocations: 3.891 kB / 0.5602 GB, free: 34.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.123e-05/0.3252, allocations: 1.188 kB / 0.5602 GB, free: 34.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.3252, allocations: 1.438 kB / 0.5602 GB, free: 34.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.028e-05/0.3252, allocations: 76.25 kB / 0.5603 GB, free: 34.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3252, allocations: 0 / 0.5603 GB, free: 34.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001858/0.3254, allocations: 6.281 kB / 0.5603 GB, free: 34.02 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.0001098/0.3255, allocations: 103 kB / 0.5604 GB, free: 33.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 7.733e-05/0.3256, allocations: 13.42 kB / 0.5604 GB, free: 33.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.3256, allocations: 0 / 0.5604 GB, free: 33.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.407e-05/0.3256, allocations: 6.344 kB / 0.5604 GB, free: 33.92 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.3258, allocations: 3.75 kB / 0.5604 GB, free: 33.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001428/0.3259, allocations: 90 kB / 0.5605 GB, free: 33.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.865e-05/0.326, allocations: 0.6727 MB / 0.5612 GB, free: 33.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.164e-05/0.326, allocations: 1.094 kB / 0.5612 GB, free: 33.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.234e-05/0.326, allocations: 10.12 kB / 0.5612 GB, free: 33.12 MB / 446.1 MB Notification: Performance of SimCode: time 3.4e-07/0.326, allocations: 1.125 kB / 0.5612 GB, free: 33.12 MB / 446.1 MB Notification: Performance of Templates: time 0.00204/0.3281, allocations: 317 kB / 0.5615 GB, free: 33.07 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 -s gbode -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)