Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_Buildings.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.001156/0.001156, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001415/0.001415, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.511/2.511, allocations: 390.9 MB / 0.666 GB, free: 2.492 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004519/0.0004522, allocations: 12 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7785/0.779, allocations: 142.4 MB / 0.9544 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0006429/0.7797, allocations: 313.8 kB / 0.9547 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002173/0.7799, allocations: 47.12 kB / 0.9548 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.304e-05/0.7799, allocations: 0 / 0.9548 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.846e-06/0.7799, allocations: 3.938 kB / 0.9548 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.78, allocations: 0 / 0.9548 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001759/0.7801, allocations: 7.656 kB / 0.9548 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.902e-05/0.7802, allocations: 1.281 kB / 0.9548 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.309e-05/0.7802, allocations: 5.109 kB / 0.9548 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.61e-05/0.7803, allocations: 9.094 kB / 0.9548 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.513e-05/0.7803, allocations: 13.12 kB / 0.9548 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.406e-06/0.7803, allocations: 1.406 kB / 0.9548 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.828e-05/0.7804, allocations: 3.469 kB / 0.9548 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.09e-06/0.7804, allocations: 0 / 0.9548 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.798e-05/0.7804, allocations: 27.08 kB / 0.9549 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.046e-05/0.7805, allocations: 6.828 kB / 0.9549 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.7805, allocations: 0 / 0.9549 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7805, allocations: 0 / 0.9549 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.527e-06/0.7805, allocations: 0 / 0.9549 GB, free: 7.426 MB / 0.7169 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.0001865/0.7807, allocations: 315.3 kB / 0.9552 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.7808, allocations: 12.62 kB / 0.9552 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.03e-05/0.7808, allocations: 5.422 kB / 0.9552 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.14e-05/0.7808, allocations: 163.1 kB / 0.9553 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.7809, allocations: 0 / 0.9553 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.7809, allocations: 5.344 kB / 0.9553 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.876e-05/0.781, allocations: 28.67 kB / 0.9554 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.781, allocations: 0 / 0.9554 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-06/0.781, allocations: 1.469 kB / 0.9554 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.781, allocations: 0 / 0.9554 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.172e-05/0.781, allocations: 14.81 kB / 0.9554 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.301e-05/0.7811, allocations: 147.3 kB / 0.9555 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.969e-05/0.7812, allocations: 24.08 kB / 0.9556 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.556e-05/0.7812, allocations: 11.64 kB / 0.9556 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001389/0.7813, allocations: 83.88 kB / 0.9556 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.582e-05/0.7814, allocations: 30.56 kB / 0.9557 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.7814, allocations: 0.6562 kB / 0.9557 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001231/0.7815, allocations: 50.5 kB / 0.9557 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.059e-05/0.7815, allocations: 51.41 kB / 0.9558 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.798e-05/0.7816, allocations: 91.05 kB / 0.9559 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.16e-06/0.7816, allocations: 25.7 kB / 0.9559 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.938e-06/0.7816, allocations: 80.14 kB / 0.956 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.7816, allocations: 9.422 kB / 0.956 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-06/0.7816, allocations: 3.938 kB / 0.956 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.348e-05/0.7817, allocations: 316.1 kB / 0.9563 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.708e-06/0.7817, allocations: 9.5 kB / 0.9563 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.382e-06/0.7817, allocations: 1.156 kB / 0.9563 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.729e-05/0.7817, allocations: 6.906 kB / 0.9563 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.7817, allocations: 0 / 0.9563 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.983e-05/0.7818, allocations: 42.5 kB / 0.9563 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.7818, allocations: 6.438 kB / 0.9563 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.7818, allocations: 0 / 0.9563 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.906e-06/0.7818, allocations: 1.188 kB / 0.9563 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.454e-05/0.7819, allocations: 3.188 kB / 0.9563 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.7819, allocations: 4.094 kB / 0.9563 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.35e-05/0.7819, allocations: 1.156 kB / 0.9563 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-06/0.7819, allocations: 3.984 kB / 0.9563 GB, free: 5.746 MB / 0.7169 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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.193e-05/0.782, allocations: 112.1 kB / 0.9565 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.921e-06/0.782, allocations: 0 / 0.9565 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.435e-05/0.782, allocations: 50.28 kB / 0.9565 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.7821, allocations: 0 / 0.9565 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.7821, allocations: 1.5 kB / 0.9565 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.7821, allocations: 4.031 kB / 0.9565 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.069e-05/0.7821, allocations: 151.1 kB / 0.9567 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.7821, allocations: 5.5 kB / 0.9567 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.054e-05/0.7822, allocations: 2.562 kB / 0.9567 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.7822, allocations: 3.984 kB / 0.9567 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-06/0.7822, allocations: 1.219 kB / 0.9567 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.7822, allocations: 0 / 0.9567 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.7822, allocations: 0 / 0.9567 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.587e-05/0.7822, allocations: 74.34 kB / 0.9567 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.499e-05/0.7823, allocations: 81.09 kB / 0.9568 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.338e-06/0.7823, allocations: 1.688 kB / 0.9568 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.033e-05/0.7823, allocations: 0 / 0.9568 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.343e-05/0.7823, allocations: 2.125 kB / 0.9568 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.7823, allocations: 0 / 0.9568 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.084e-05/0.7823, allocations: 76.75 kB / 0.9569 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7824, allocations: 0 / 0.9569 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001919/0.7825, allocations: 7.344 kB / 0.9569 GB, free: 5.117 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001214/0.7827, allocations: 116.8 kB / 0.957 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.105e-05/0.7827, allocations: 5.688 kB / 0.957 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.7827, allocations: 0 / 0.957 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.456e-05/0.7828, allocations: 9.562 kB / 0.957 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001307/0.7829, allocations: 3.953 kB / 0.957 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001413/0.7831, allocations: 82.66 kB / 0.9571 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.854e-05/0.7831, allocations: 0.6747 MB / 0.9578 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.329e-05/0.7832, allocations: 1.625 kB / 0.9578 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.113e-05/0.7832, allocations: 8.812 kB / 0.9578 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7832, allocations: 3.938 kB / 0.9578 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of Templates: time 0.001915/0.7851, allocations: 304.3 kB / 0.9581 GB, free: 4.039 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches