Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001234/0.001234, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.0012/0.0012, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.275/1.275, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002013/0.002013, allocations: 288.9 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9189/0.9189, allocations: 169.3 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 100.2 kB / 0.6821 GB, free: 6.938 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4281/0.4298, allocations: 86.98 MB / 0.7671 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001867/0.4317, allocations: 0.5741 MB / 0.7677 GB, free: 3.32 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003015/0.432, allocations: 47.8 kB / 0.7677 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.696e-05/0.432, allocations: 0 / 0.7677 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.055e-05/0.4321, allocations: 0 / 0.7677 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.823e-06/0.4321, allocations: 0 / 0.7677 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000234/0.4323, allocations: 15.98 kB / 0.7677 GB, free: 3.258 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.867e-05/0.4324, allocations: 7.938 kB / 0.7677 GB, free: 3.25 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.859e-05/0.4325, allocations: 0 / 0.7677 GB, free: 3.25 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.918e-05/0.4325, allocations: 7.984 kB / 0.7677 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 2.675e-05/0.4325, allocations: 11.98 kB / 0.7677 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.4325, allocations: 0 / 0.7677 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.996e-05/0.4326, allocations: 11.88 kB / 0.7678 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.205e-05/0.4326, allocations: 0 / 0.7678 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.224e-05/0.4327, allocations: 4 kB / 0.7678 GB, free: 3.215 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 9.522e-05/0.4328, allocations: 7.984 kB / 0.7678 GB, free: 3.207 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.4328, allocations: 0 / 0.7678 GB, free: 3.207 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.733e-06/0.4328, allocations: 4 kB / 0.7678 GB, free: 3.203 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.4328, allocations: 0 / 0.7678 GB, free: 3.203 MB / 0.5294 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.0003152/0.4331, allocations: 315.6 kB / 0.7681 GB, free: 2.844 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.4332, allocations: 16.02 kB / 0.7681 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.954e-05/0.4332, allocations: 0.9375 kB / 0.7681 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.4333, allocations: 164.4 kB / 0.7682 GB, free: 2.629 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.4333, allocations: 4.375 kB / 0.7682 GB, free: 2.625 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.4334, allocations: 384 / 0.7682 GB, free: 2.625 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.364e-05/0.4334, allocations: 30.27 kB / 0.7683 GB, free: 2.59 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.4335, allocations: 192 / 0.7683 GB, free: 2.59 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.4335, allocations: 3.938 kB / 0.7683 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.4335, allocations: 3.938 kB / 0.7683 GB, free: 2.582 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.621e-05/0.4335, allocations: 11.92 kB / 0.7683 GB, free: 2.57 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001468/0.4337, allocations: 149.7 kB / 0.7684 GB, free: 2.375 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 4.674e-05/0.4337, allocations: 26.59 kB / 0.7685 GB, free: 2.34 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.749e-05/0.4338, allocations: 8.922 kB / 0.7685 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000164/0.4339, allocations: 81.11 kB / 0.7685 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/0.434, allocations: 30.56 kB / 0.7686 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.434, allocations: 0 / 0.7686 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001493/0.4341, allocations: 53.56 kB / 0.7686 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.4342, allocations: 51.41 kB / 0.7687 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.694e-05/0.4342, allocations: 93.86 kB / 0.7688 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.4342, allocations: 25.7 kB / 0.7688 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 2.446e-05/0.4343, allocations: 80.14 kB / 0.7689 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.4343, allocations: 7.562 kB / 0.7689 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.114e-05/0.4343, allocations: 17.72 kB / 0.7689 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.4345, allocations: 315 kB / 0.7692 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.186e-05/0.4345, allocations: 4 kB / 0.7692 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.167e-06/0.4345, allocations: 4 kB / 0.7692 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.373e-05/0.4345, allocations: 12.86 kB / 0.7692 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4345, allocations: 0 / 0.7692 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.576e-05/0.4346, allocations: 41.62 kB / 0.7692 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.4346, allocations: 4 kB / 0.7693 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.4346, allocations: 4 kB / 0.7693 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.4347, allocations: 3.938 kB / 0.7693 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.637e-05/0.4347, allocations: 4.094 kB / 0.7693 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.4347, allocations: 4 kB / 0.7693 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.386e-05/0.4348, allocations: 3.938 kB / 0.7693 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.4348, allocations: 4 kB / 0.7693 GB, free: 1.414 MB / 0.5294 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 0.0001383/0.4349, allocations: 108.2 kB / 0.7694 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.116e-06/0.4349, allocations: 0 / 0.7694 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.776e-05/0.435, allocations: 52.69 kB / 0.7694 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.435, allocations: 0 / 0.7694 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.435, allocations: 8.031 kB / 0.7694 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.435, allocations: 0 / 0.7694 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/0.4351, allocations: 145.7 kB / 0.7696 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.4352, allocations: 4 kB / 0.7696 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.284e-05/0.4352, allocations: 7.938 kB / 0.7696 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.4352, allocations: 0 / 0.7696 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.4352, allocations: 3.938 kB / 0.7696 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4352, allocations: 0 / 0.7696 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4352, allocations: 0 / 0.7696 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.868e-05/0.4353, allocations: 69.12 kB / 0.7697 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.582e-05/0.4353, allocations: 77.11 kB / 0.7697 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.4354, allocations: 7.875 kB / 0.7697 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.232e-05/0.4354, allocations: 4 kB / 0.7697 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-05/0.4354, allocations: 7.984 kB / 0.7697 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.4354, allocations: 0 / 0.7697 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 2.622e-05/0.4355, allocations: 75.28 kB / 0.7698 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4355, allocations: 0 / 0.7698 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0001889/0.4357, allocations: 4 kB / 0.7698 GB, free: 0.7539 MB / 0.5294 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.0001533/0.4358, allocations: 103.3 kB / 0.7699 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 7.959e-05/0.4359, allocations: 11.98 kB / 0.7699 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4359, allocations: 0 / 0.7699 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.152e-05/0.4359, allocations: 8 kB / 0.7699 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001268/0.4361, allocations: 2.75 kB / 0.7699 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001949/0.4363, allocations: 110.8 kB / 0.7701 GB, free: 492 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.4365, allocations: 0.6846 MB / 0.7707 GB, free: 15.77 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.611e-05/0.4365, allocations: 7.438 kB / 0.7707 GB, free: 15.76 MB / 0.545 GB Notification: Performance of SimCode: time 1.9e-07/0.4365, allocations: 0 / 0.7707 GB, free: 15.76 MB / 0.545 GB Notification: Performance of Templates: time 0.00165/0.4382, allocations: 457.4 kB / 0.7712 GB, free: 15.32 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)