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.005054/0.005053, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001187/0.001187, allocations: 197.9 kB / 16.68 MB, free: 5.926 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.28/1.28, allocations: 222.9 MB / 240.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002097/0.002097, allocations: 300.4 kB / 290.8 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.933/0.933, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 99.84 kB / 0.6815 GB, free: 6.934 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4438/0.4454, allocations: 86.97 MB / 0.7664 GB, free: 4.051 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001524/0.447, allocations: 0.586 MB / 0.767 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002615/0.4472, allocations: 43.86 kB / 0.767 GB, free: 3.426 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.888e-05/0.4473, allocations: 0 / 0.767 GB, free: 3.426 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.501e-05/0.4473, allocations: 0 / 0.767 GB, free: 3.426 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.783e-06/0.4473, allocations: 3.938 kB / 0.767 GB, free: 3.422 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.4475, allocations: 11.98 kB / 0.7671 GB, free: 3.41 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.973e-05/0.4476, allocations: 8 kB / 0.7671 GB, free: 3.402 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.743e-05/0.4477, allocations: 0 / 0.7671 GB, free: 3.402 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.573e-05/0.4477, allocations: 0 / 0.7671 GB, free: 3.402 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 2.72e-05/0.4477, allocations: 7.984 kB / 0.7671 GB, free: 3.395 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.708e-06/0.4477, allocations: 7.938 kB / 0.7671 GB, free: 3.387 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.316e-05/0.4478, allocations: 11.98 kB / 0.7671 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.077e-05/0.4478, allocations: 0 / 0.7671 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.792e-05/0.4478, allocations: 0 / 0.7671 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 8.487e-05/0.4479, allocations: 4 kB / 0.7671 GB, free: 3.371 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.4479, allocations: 4 kB / 0.7671 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.442e-06/0.4479, allocations: 0 / 0.7671 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.448, allocations: 0 / 0.7671 GB, free: 3.367 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.0002767/0.4482, allocations: 311.6 kB / 0.7674 GB, free: 3.012 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.4483, allocations: 16.03 kB / 0.7674 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.4483, allocations: 4.875 kB / 0.7674 GB, free: 2.992 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.4484, allocations: 164.3 kB / 0.7676 GB, free: 2.793 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.4484, allocations: 384 / 0.7676 GB, free: 2.793 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.689e-06/0.4485, allocations: 4.375 kB / 0.7676 GB, free: 2.789 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.095e-05/0.4486, allocations: 34.25 kB / 0.7676 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.4486, allocations: 192 / 0.7676 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.4486, allocations: 7.875 kB / 0.7676 GB, free: 2.742 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.4486, allocations: 4 kB / 0.7676 GB, free: 2.738 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.919e-05/0.4486, allocations: 0 / 0.7676 GB, free: 2.738 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001312/0.4488, allocations: 157.7 kB / 0.7678 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 4.464e-05/0.4488, allocations: 22.55 kB / 0.7678 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.848e-05/0.4488, allocations: 8.922 kB / 0.7678 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001503/0.449, allocations: 85.08 kB / 0.7679 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.449, allocations: 38.56 kB / 0.7679 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.449, allocations: 0 / 0.7679 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001318/0.4492, allocations: 41.64 kB / 0.768 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.4492, allocations: 51.41 kB / 0.768 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.173e-05/0.4493, allocations: 93.84 kB / 0.7681 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.4493, allocations: 33.64 kB / 0.7681 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 2.159e-05/0.4493, allocations: 80.14 kB / 0.7682 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.4493, allocations: 11.7 kB / 0.7682 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.497e-05/0.4494, allocations: 9.719 kB / 0.7682 GB, free: 1.988 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.4495, allocations: 314.8 kB / 0.7685 GB, free: 1.672 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.271e-05/0.4495, allocations: 8.125 kB / 0.7685 GB, free: 1.664 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.552e-06/0.4495, allocations: 0 / 0.7685 GB, free: 1.664 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.977e-05/0.4495, allocations: 16.84 kB / 0.7685 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4495, allocations: 0 / 0.7685 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.068e-05/0.4496, allocations: 37.7 kB / 0.7686 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.4496, allocations: 4 kB / 0.7686 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.808e-06/0.4496, allocations: 0 / 0.7686 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.4497, allocations: 7.938 kB / 0.7686 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.152e-05/0.4497, allocations: 12.03 kB / 0.7686 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.4497, allocations: 3.984 kB / 0.7686 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.203e-05/0.4497, allocations: 0 / 0.7686 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-06/0.4498, allocations: 4 kB / 0.7686 GB, free: 1.57 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 6.099e-05/0.4498, allocations: 108.2 kB / 0.7687 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.772e-06/0.4498, allocations: 0 / 0.7687 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.991e-05/0.4499, allocations: 52.73 kB / 0.7688 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.4499, allocations: 0 / 0.7688 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.4499, allocations: 32 / 0.7688 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.4499, allocations: 4 kB / 0.7688 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.448e-05/0.45, allocations: 149.7 kB / 0.7689 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.45, allocations: 7.875 kB / 0.7689 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.251e-05/0.4501, allocations: 7.984 kB / 0.7689 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.4501, allocations: 0 / 0.7689 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.4501, allocations: 7.875 kB / 0.7689 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.4501, allocations: 0 / 0.7689 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.4501, allocations: 0 / 0.7689 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.911e-05/0.4502, allocations: 65.12 kB / 0.769 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.617e-05/0.4502, allocations: 81.11 kB / 0.7691 GB, free: 1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.4502, allocations: 3.938 kB / 0.7691 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.027e-05/0.4502, allocations: 0 / 0.7691 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.588e-05/0.4503, allocations: 0 / 0.7691 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-06/0.4503, allocations: 4 kB / 0.7691 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 2.858e-05/0.4503, allocations: 75.28 kB / 0.7692 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.4503, allocations: 0 / 0.7692 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000181/0.4505, allocations: 8 kB / 0.7692 GB, free: 0.9102 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.0001397/0.4506, allocations: 107.3 kB / 0.7693 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 7.526e-05/0.4507, allocations: 15.94 kB / 0.7693 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.4507, allocations: 0 / 0.7693 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.528e-05/0.4508, allocations: 4 kB / 0.7693 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.4509, allocations: 2.75 kB / 0.7693 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000194/0.4511, allocations: 88.97 kB / 0.7694 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.4513, allocations: 0.6769 MB / 0.77 GB, free: 15.96 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.321e-05/0.4514, allocations: 0 / 0.77 GB, free: 15.96 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.535e-05/0.4514, allocations: 7.438 kB / 0.77 GB, free: 15.95 MB / 0.545 GB Notification: Performance of SimCode: time 2.61e-07/0.4514, allocations: 0 / 0.77 GB, free: 15.95 MB / 0.545 GB Notification: Performance of Templates: time 0.002106/0.4535, allocations: 334.2 kB / 0.7704 GB, free: 15.62 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)