Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001772/0.001772, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001954/0.001954, allocations: 194 kB / 16.25 MB, free: 6.637 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.455/1.455, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.729/2.729, allocations: 437 MB / 0.7101 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 67.91 kB / 0.8688 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6315/0.6335, allocations: 151.6 MB / 1.017 GB, free: 2.727 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00203/0.6355, allocations: 0.6488 MB / 1.017 GB, free: 2.074 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002903/0.6359, allocations: 51.8 kB / 1.018 GB, free: 2.023 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.547e-05/0.6359, allocations: 0 / 1.018 GB, free: 2.023 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.254e-05/0.6359, allocations: 0 / 1.018 GB, free: 2.023 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 1.121e-05/0.636, allocations: 4 kB / 1.018 GB, free: 2.02 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002624/0.6362, allocations: 8 kB / 1.018 GB, free: 2.012 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.624e-05/0.6363, allocations: 3.938 kB / 1.018 GB, free: 2.008 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 6.751e-05/0.6364, allocations: 7.984 kB / 1.018 GB, free: 2 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.664e-05/0.6364, allocations: 4 kB / 1.018 GB, free: 1.996 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.575e-05/0.6364, allocations: 7.984 kB / 1.018 GB, free: 1.988 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.078e-05/0.6364, allocations: 0 / 1.018 GB, free: 1.988 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.454e-05/0.6365, allocations: 4 kB / 1.018 GB, free: 1.984 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.395e-05/0.6365, allocations: 4 kB / 1.018 GB, free: 1.98 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.354e-05/0.6366, allocations: 4 kB / 1.018 GB, free: 1.977 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.6367, allocations: 11.92 kB / 1.018 GB, free: 1.965 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.6367, allocations: 0 / 1.018 GB, free: 1.965 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.334e-06/0.6367, allocations: 0 / 1.018 GB, free: 1.965 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.173e-06/0.6367, allocations: 0 / 1.018 GB, free: 1.965 MB / 0.7637 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.0004357/0.6371, allocations: 315.6 kB / 1.018 GB, free: 1.605 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.6372, allocations: 12.03 kB / 1.018 GB, free: 1.594 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.623e-05/0.6372, allocations: 0.9375 kB / 1.018 GB, free: 1.594 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/0.6374, allocations: 168.3 kB / 1.018 GB, free: 1.391 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.6374, allocations: 384 / 1.018 GB, free: 1.391 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.785e-06/0.6374, allocations: 384 / 1.018 GB, free: 1.391 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.6376, allocations: 34.25 kB / 1.018 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.6376, allocations: 192 / 1.018 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.6376, allocations: 3.938 kB / 1.018 GB, free: 1.348 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.6376, allocations: 0 / 1.018 GB, free: 1.348 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.013e-05/0.6376, allocations: 8 kB / 1.018 GB, free: 1.34 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001736/0.6378, allocations: 149.6 kB / 1.018 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 6.027e-05/0.6379, allocations: 34.53 kB / 1.018 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.785e-05/0.6379, allocations: 4.859 kB / 1.018 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001952/0.6381, allocations: 85.16 kB / 1.018 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.6382, allocations: 30.56 kB / 1.018 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.6382, allocations: 3.938 kB / 1.018 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of matching and sorting (n=2): time 0.000156/0.6383, allocations: 49.62 kB / 1.018 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.6384, allocations: 55.41 kB / 1.018 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.825e-05/0.6385, allocations: 89.86 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.6385, allocations: 25.7 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 3.55e-05/0.6385, allocations: 80.14 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.6386, allocations: 3.938 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.398e-05/0.6386, allocations: 21.7 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000164/0.6388, allocations: 311 kB / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.211e-05/0.6388, allocations: 4 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.674e-06/0.6388, allocations: 4 kB / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.96e-05/0.6388, allocations: 16.86 kB / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.6389, allocations: 0 / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.224e-05/0.6389, allocations: 41.62 kB / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.6389, allocations: 8 kB / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.639, allocations: 0 / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.639, allocations: 3.938 kB / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.209e-05/0.639, allocations: 12.03 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.6391, allocations: 0 / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.653e-05/0.6391, allocations: 4 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-06/0.6391, allocations: 0 / 1.019 GB, free: 176 kB / 0.7637 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 8.913e-05/0.6392, allocations: 105.8 kB / 1.019 GB, free: 60 kB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.938e-06/0.6392, allocations: 4 kB / 1.019 GB, free: 56 kB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.937e-05/0.6393, allocations: 50.7 kB / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-05/0.6393, allocations: 4.047 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.6393, allocations: 4.031 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.6393, allocations: 0 / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001247/0.6395, allocations: 149.5 kB / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.6395, allocations: 0 / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.243e-05/0.6395, allocations: 4 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.6395, allocations: 0 / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.6395, allocations: 3.938 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.6395, allocations: 7.938 kB / 1.019 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.6395, allocations: 0 / 1.019 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.814e-05/0.6396, allocations: 65.12 kB / 1.019 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.549e-05/0.6397, allocations: 77.11 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.6397, allocations: 7.938 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.375e-05/0.6397, allocations: 3.984 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.627e-05/0.6398, allocations: 4 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.6398, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.56e-05/0.6398, allocations: 75.28 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of sort global known variables: time 9e-08/0.6398, allocations: 0 / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00019/0.64, allocations: 7.938 kB / 1.02 GB, free: 15.51 MB / 0.7794 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.0001786/0.6402, allocations: 107.8 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.315e-05/0.6403, allocations: 19.92 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.529e-05/0.6403, allocations: 0 / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.767e-05/0.6403, allocations: 7.938 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001381/0.6405, allocations: 4 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002245/0.6407, allocations: 85.17 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.6411, allocations: 0.6729 MB / 1.02 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.83e-05/0.6411, allocations: 8 kB / 1.02 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.577e-05/0.6411, allocations: 7.438 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.6411, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of Templates: time 0.002664/0.6438, allocations: 320.6 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches