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.001587/0.001587, allocations: 95.64 kB / 16.26 MB, free: 5.934 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.001754/0.001755, allocations: 189.6 kB / 17.2 MB, free: 5.574 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.376/1.376, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7493/0.7493, allocations: 122.9 MB / 413.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 63.91 kB / 0.4911 GB, free: 7.438 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4157/0.4175, allocations: 77.93 MB / 0.5672 GB, free: 32.64 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001743/0.4193, allocations: 0.5742 MB / 0.5678 GB, free: 32.29 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002433/0.4196, allocations: 49.3 kB / 0.5678 GB, free: 32.26 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.623e-05/0.4196, allocations: 1.094 kB / 0.5678 GB, free: 32.26 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.125e-05/0.4196, allocations: 0 / 0.5678 GB, free: 32.26 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.328e-06/0.4196, allocations: 0 / 0.5678 GB, free: 32.26 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.4198, allocations: 11.73 kB / 0.5678 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.815e-05/0.4199, allocations: 6.328 kB / 0.5678 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.55e-05/0.42, allocations: 7.344 kB / 0.5678 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.364e-05/0.42, allocations: 1.219 kB / 0.5678 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.902e-05/0.42, allocations: 2.562 kB / 0.5678 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.025e-06/0.42, allocations: 0 / 0.5678 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.496e-05/0.4201, allocations: 14.02 kB / 0.5679 GB, free: 32.24 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.091e-05/0.4201, allocations: 2.125 kB / 0.5679 GB, free: 32.24 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.604e-05/0.4201, allocations: 12.84 kB / 0.5679 GB, free: 32.23 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.594e-05/0.4202, allocations: 13.23 kB / 0.5679 GB, free: 32.22 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.4202, allocations: 0.5625 kB / 0.5679 GB, free: 32.22 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4202, allocations: 0 / 0.5679 GB, free: 32.22 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.4202, allocations: 1.156 kB / 0.5679 GB, free: 32.22 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.0002072/0.4204, allocations: 310.1 kB / 0.5682 GB, free: 31.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.4205, allocations: 11.17 kB / 0.5682 GB, free: 31.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.643e-05/0.4205, allocations: 0.9375 kB / 0.5682 GB, free: 31.88 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.351e-05/0.4206, allocations: 163.2 kB / 0.5683 GB, free: 31.68 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.4206, allocations: 4 kB / 0.5683 GB, free: 31.68 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-06/0.4206, allocations: 1.5 kB / 0.5683 GB, free: 31.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.958e-05/0.4207, allocations: 34.98 kB / 0.5684 GB, free: 31.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.032e-06/0.4207, allocations: 192 / 0.5684 GB, free: 31.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.689e-06/0.4207, allocations: 5.891 kB / 0.5684 GB, free: 31.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.4207, allocations: 0 / 0.5684 GB, free: 31.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.456e-05/0.4208, allocations: 7.844 kB / 0.5684 GB, free: 31.64 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000103/0.4209, allocations: 150.4 kB / 0.5685 GB, free: 31.45 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.947e-05/0.4209, allocations: 21.67 kB / 0.5686 GB, free: 31.42 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.737e-05/0.4209, allocations: 11.81 kB / 0.5686 GB, free: 31.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001388/0.4211, allocations: 83.52 kB / 0.5686 GB, free: 31.32 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/0.4211, allocations: 36.09 kB / 0.5687 GB, free: 31.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.4211, allocations: 0.5625 kB / 0.5687 GB, free: 31.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.000144/0.4213, allocations: 45.88 kB / 0.5687 GB, free: 31.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.567e-05/0.4213, allocations: 52.38 kB / 0.5688 GB, free: 31.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.42e-05/0.4213, allocations: 95.98 kB / 0.5689 GB, free: 31.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.013e-06/0.4213, allocations: 25.7 kB / 0.5689 GB, free: 31.04 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.194e-05/0.4214, allocations: 81.61 kB / 0.569 GB, free: 30.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.4214, allocations: 5.859 kB / 0.569 GB, free: 30.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.442e-05/0.4214, allocations: 13 kB / 0.569 GB, free: 30.94 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.394e-05/0.4215, allocations: 314.9 kB / 0.5693 GB, free: 30.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.266e-05/0.4215, allocations: 6.016 kB / 0.5693 GB, free: 30.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.755e-06/0.4215, allocations: 1.906 kB / 0.5693 GB, free: 30.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.801e-05/0.4215, allocations: 11.45 kB / 0.5693 GB, free: 30.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4215, allocations: 1.875 kB / 0.5693 GB, free: 30.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.089e-05/0.4216, allocations: 44.55 kB / 0.5694 GB, free: 30.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.4216, allocations: 4.906 kB / 0.5694 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.4216, allocations: 1.703 kB / 0.5694 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.4216, allocations: 5 kB / 0.5694 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.134e-05/0.4217, allocations: 2.953 kB / 0.5694 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.4217, allocations: 1.688 kB / 0.5694 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.411e-05/0.4217, allocations: 2.219 kB / 0.5694 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-06/0.4217, allocations: 1.062 kB / 0.5694 GB, free: 30.57 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.346e-05/0.4218, allocations: 111.4 kB / 0.5695 GB, free: 30.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.625e-06/0.4218, allocations: 2.891 kB / 0.5695 GB, free: 30.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.167e-05/0.4219, allocations: 57.5 kB / 0.5695 GB, free: 30.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.4219, allocations: 0.6875 kB / 0.5695 GB, free: 30.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.4219, allocations: 1.156 kB / 0.5695 GB, free: 30.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.4219, allocations: 1.844 kB / 0.5695 GB, free: 30.41 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.575e-05/0.422, allocations: 150.3 kB / 0.5697 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.422, allocations: 0 / 0.5697 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.08e-05/0.422, allocations: 4.047 kB / 0.5697 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.422, allocations: 2.844 kB / 0.5697 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.159e-06/0.422, allocations: 3.938 kB / 0.5697 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.422, allocations: 0 / 0.5697 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.422, allocations: 6.766 kB / 0.5697 GB, free: 30.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.595e-05/0.4221, allocations: 65.36 kB / 0.5698 GB, free: 30.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.483e-05/0.4221, allocations: 78.89 kB / 0.5698 GB, free: 30.04 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.4221, allocations: 6.469 kB / 0.5698 GB, free: 30.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.176e-05/0.4221, allocations: 4.531 kB / 0.5698 GB, free: 30.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.474e-05/0.4222, allocations: 2.047 kB / 0.5698 GB, free: 30.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.4222, allocations: 1.656 kB / 0.5699 GB, free: 30.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.279e-05/0.4222, allocations: 78.77 kB / 0.5699 GB, free: 29.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4222, allocations: 0 / 0.5699 GB, free: 29.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00018/0.4224, allocations: 3.344 kB / 0.5699 GB, free: 29.96 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.0001249/0.4225, allocations: 105.6 kB / 0.57 GB, free: 29.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 6.829e-05/0.4226, allocations: 10.67 kB / 0.57 GB, free: 29.87 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.4226, allocations: 1.031 kB / 0.57 GB, free: 29.87 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.477e-05/0.4226, allocations: 4.656 kB / 0.57 GB, free: 29.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/0.4227, allocations: 2.312 kB / 0.57 GB, free: 29.87 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001537/0.4229, allocations: 91.08 kB / 0.5701 GB, free: 29.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.072e-05/0.423, allocations: 0.672 MB / 0.5708 GB, free: 29.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.435e-05/0.423, allocations: 3.469 kB / 0.5708 GB, free: 29.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.192e-05/0.423, allocations: 9.625 kB / 0.5708 GB, free: 29.06 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.423, allocations: 1.031 kB / 0.5708 GB, free: 29.06 MB / 446.1 MB Notification: Performance of Templates: time 0.001999/0.425, allocations: 320.6 kB / 0.5711 GB, free: 29.02 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)