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.001211/0.001211, allocations: 105.8 kB / 16.41 MB, free: 6.496 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.001166/0.001166, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.251/1.251, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002112/0.002112, allocations: 289.2 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.9115/0.9115, allocations: 169.2 MB / 0.499 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001896, allocations: 95.86 kB / 0.6821 GB, free: 6.906 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4241/0.426, allocations: 86.98 MB / 0.7671 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.00171/0.4278, allocations: 0.5855 MB / 0.7677 GB, free: 3.32 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002805/0.4281, allocations: 47.84 kB / 0.7677 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.836e-05/0.4281, allocations: 3.938 kB / 0.7677 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.622e-05/0.4281, allocations: 0 / 0.7677 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.543e-06/0.4282, allocations: 4 kB / 0.7677 GB, free: 3.266 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002279/0.4284, allocations: 8 kB / 0.7677 GB, free: 3.258 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.811e-05/0.4285, allocations: 11.98 kB / 0.7677 GB, free: 3.246 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.166e-05/0.4285, allocations: 0 / 0.7677 GB, free: 3.246 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.803e-05/0.4285, allocations: 4 kB / 0.7677 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 2.445e-05/0.4286, allocations: 0 / 0.7677 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.027e-05/0.4286, allocations: 3.938 kB / 0.7677 GB, free: 3.238 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.667e-05/0.4287, allocations: 8 kB / 0.7677 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.201e-05/0.4287, allocations: 3.984 kB / 0.7677 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.151e-05/0.4287, allocations: 4 kB / 0.7678 GB, free: 3.223 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 8.566e-05/0.4288, allocations: 7.984 kB / 0.7678 GB, free: 3.215 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.4288, allocations: 4 kB / 0.7678 GB, free: 3.211 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.415e-06/0.4288, allocations: 0 / 0.7678 GB, free: 3.211 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.4288, allocations: 0 / 0.7678 GB, free: 3.211 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.0003252/0.4292, allocations: 323.5 kB / 0.7681 GB, free: 2.844 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.4292, allocations: 11.97 kB / 0.7681 GB, free: 2.832 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.4292, allocations: 0.9375 kB / 0.7681 GB, free: 2.832 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/0.4293, allocations: 164.4 kB / 0.7682 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.368e-06/0.4294, allocations: 384 / 0.7682 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.594e-06/0.4294, allocations: 384 / 0.7682 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.719e-05/0.4295, allocations: 38.25 kB / 0.7683 GB, free: 2.59 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.4295, allocations: 192 / 0.7683 GB, free: 2.59 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.4295, allocations: 11.88 kB / 0.7683 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.4295, allocations: 0 / 0.7683 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.239e-05/0.4296, allocations: 4 kB / 0.7683 GB, free: 2.574 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001395/0.4297, allocations: 145.7 kB / 0.7684 GB, free: 2.383 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.927e-05/0.4298, allocations: 30.55 kB / 0.7685 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.86e-05/0.4298, allocations: 8.859 kB / 0.7685 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001714/0.43, allocations: 81.17 kB / 0.7685 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.43, allocations: 34.55 kB / 0.7686 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.43, allocations: 0 / 0.7686 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001515/0.4302, allocations: 45.58 kB / 0.7686 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.4302, allocations: 55.41 kB / 0.7687 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.268e-05/0.4303, allocations: 89.86 kB / 0.7688 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.4303, allocations: 25.7 kB / 0.7688 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.037e-05/0.4303, allocations: 84.27 kB / 0.7689 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.4304, allocations: 11.56 kB / 0.7689 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.129e-05/0.4304, allocations: 17.7 kB / 0.7689 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.815e-05/0.4305, allocations: 310.8 kB / 0.7692 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.108e-05/0.4305, allocations: 0 / 0.7692 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.867e-06/0.4305, allocations: 4 kB / 0.7692 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.326e-05/0.4306, allocations: 12.86 kB / 0.7692 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4306, allocations: 4.062 kB / 0.7692 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.394e-05/0.4306, allocations: 45.62 kB / 0.7693 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.4307, allocations: 8 kB / 0.7693 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.4307, allocations: 0 / 0.7693 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.4307, allocations: 3.938 kB / 0.7693 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.701e-05/0.4308, allocations: 4 kB / 0.7693 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.4308, allocations: 0 / 0.7693 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.358e-05/0.4308, allocations: 0 / 0.7693 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-06/0.4308, allocations: 0 / 0.7693 GB, free: 1.426 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 7.153e-05/0.4309, allocations: 113.9 kB / 0.7694 GB, free: 1.305 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.487e-06/0.4309, allocations: 4 kB / 0.7694 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.601e-05/0.431, allocations: 40.77 kB / 0.7694 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.431, allocations: 7.984 kB / 0.7694 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.431, allocations: 0 / 0.7694 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.431, allocations: 0 / 0.7694 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.034e-05/0.4311, allocations: 145.6 kB / 0.7696 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.4311, allocations: 11.88 kB / 0.7696 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.359e-05/0.4311, allocations: 4 kB / 0.7696 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.4311, allocations: 4.031 kB / 0.7696 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.4312, allocations: 11.92 kB / 0.7696 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.4312, allocations: 4 kB / 0.7696 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4312, allocations: 0 / 0.7696 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.874e-05/0.4312, allocations: 57.14 kB / 0.7697 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.824e-05/0.4313, allocations: 81.09 kB / 0.7697 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.4313, allocations: 3.938 kB / 0.7697 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.034e-05/0.4313, allocations: 0 / 0.7697 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.527e-05/0.4313, allocations: 8.031 kB / 0.7697 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.4314, allocations: 0 / 0.7697 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 2.43e-05/0.4314, allocations: 75.28 kB / 0.7698 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4314, allocations: 0 / 0.7698 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000179/0.4316, allocations: 4 kB / 0.7698 GB, free: 0.7617 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.0001674/0.4317, allocations: 111.2 kB / 0.7699 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 7.656e-05/0.4318, allocations: 12 kB / 0.7699 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4318, allocations: 4.062 kB / 0.7699 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 9.648e-06/0.4319, allocations: 4 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.0001323/0.432, allocations: 4 kB / 0.77 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002249/0.4322, allocations: 110.7 kB / 0.7701 GB, free: 488 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.4325, allocations: 0.6768 MB / 0.7707 GB, free: 15.77 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.689e-05/0.4325, allocations: 7.438 kB / 0.7707 GB, free: 15.77 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4325, allocations: 0 / 0.7707 GB, free: 15.77 MB / 0.545 GB Notification: Performance of Templates: time 0.001935/0.4344, allocations: 461.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)