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.0008338/0.0008339, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005704/0.005704, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.384/1.384, allocations: 223.3 MB / 240.3 MB, free: 5.328 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.601/2.601, allocations: 437.8 MB / 0.7121 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004072/0.000407, allocations: 16 kB / 0.8728 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6986/0.699, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0008238/0.6999, allocations: 317.3 kB / 1.023 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0002918/0.7002, allocations: 47.84 kB / 1.023 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.768e-06/0.7002, allocations: 4 kB / 1.023 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.14e-05/0.7002, allocations: 0 / 1.023 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.05e-06/0.7002, allocations: 0 / 1.023 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002099/0.7004, allocations: 15.98 kB / 1.023 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 3.808e-05/0.7005, allocations: 7.938 kB / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.114e-05/0.7005, allocations: 0 / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.63e-05/0.7006, allocations: 0 / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 2.277e-05/0.7006, allocations: 0 / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.251e-05/0.7006, allocations: 4 kB / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.043e-05/0.7007, allocations: 15.92 kB / 1.023 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.067e-05/0.7007, allocations: 3.984 kB / 1.023 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.564e-05/0.7007, allocations: 29.7 kB / 1.023 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.82e-05/0.7008, allocations: 11.94 kB / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.7008, allocations: 0 / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.184e-06/0.7009, allocations: 0 / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.256e-06/0.7009, allocations: 0 / 1.023 GB, free: 15.36 MB / 0.7794 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.0002642/0.7011, allocations: 311.6 kB / 1.024 GB, free: 15 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.7012, allocations: 8.031 kB / 1.024 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.482e-05/0.7012, allocations: 0.9375 kB / 1.024 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.913e-05/0.7013, allocations: 164.3 kB / 1.024 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.7013, allocations: 4.375 kB / 1.024 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.528e-06/0.7013, allocations: 4.375 kB / 1.024 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.887e-05/0.7014, allocations: 38.25 kB / 1.024 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.7014, allocations: 192 / 1.024 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.7015, allocations: 3.938 kB / 1.024 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.7015, allocations: 0 / 1.024 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.334e-05/0.7015, allocations: 4 kB / 1.024 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001373/0.7017, allocations: 149.6 kB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 5.385e-05/0.7017, allocations: 34.55 kB / 1.024 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.717e-05/0.7017, allocations: 4.859 kB / 1.024 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000172/0.7019, allocations: 85.16 kB / 1.024 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.7019, allocations: 30.56 kB / 1.024 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.702, allocations: 0 / 1.024 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001465/0.7021, allocations: 41.64 kB / 1.024 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.7021, allocations: 55.41 kB / 1.024 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.881e-05/0.7022, allocations: 93.92 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.7022, allocations: 29.7 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.599e-05/0.7022, allocations: 84.14 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.811e-05/0.7023, allocations: 3.984 kB / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.086e-05/0.7023, allocations: 9.719 kB / 1.025 GB, free: 14 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.347e-05/0.7024, allocations: 310.8 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.688e-06/0.7024, allocations: 4 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.352e-06/0.7024, allocations: 0 / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.65e-05/0.7025, allocations: 20.92 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.7025, allocations: 3.938 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.963e-05/0.7025, allocations: 41.69 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.7026, allocations: 6.188 kB / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.7026, allocations: 4 kB / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.7026, allocations: 3.938 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.847e-05/0.7027, allocations: 7.938 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.7027, allocations: 0 / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.327e-05/0.7027, allocations: 3.938 kB / 1.025 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.7027, allocations: 4 kB / 1.025 GB, free: 13.58 MB / 0.7794 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.795e-05/0.7028, allocations: 113.9 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.182e-06/0.7028, allocations: 0 / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.104e-05/0.7029, allocations: 46.73 kB / 1.025 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.7029, allocations: 0 / 1.025 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.7029, allocations: 0 / 1.025 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.7029, allocations: 3.984 kB / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.485e-05/0.703, allocations: 149.6 kB / 1.025 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.703, allocations: 0 / 1.025 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.25e-05/0.703, allocations: 4 kB / 1.025 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.703, allocations: 7.969 kB / 1.025 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.7031, allocations: 3.938 kB / 1.025 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.7031, allocations: 3.984 kB / 1.025 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.7031, allocations: 0 / 1.025 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.725e-05/0.7032, allocations: 61.14 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.703e-05/0.7032, allocations: 81.11 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.7032, allocations: 7.922 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.06e-05/0.7032, allocations: 4.031 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.411e-05/0.7033, allocations: 0 / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.7033, allocations: 0 / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.609e-05/0.7033, allocations: 79.28 kB / 1.026 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7033, allocations: 0 / 1.026 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001871/0.7035, allocations: 4 kB / 1.026 GB, free: 12.92 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.0001583/0.7037, allocations: 103.2 kB / 1.026 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.68e-05/0.7037, allocations: 23.92 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.7038, allocations: 3.938 kB / 1.026 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.39e-05/0.7038, allocations: 4 kB / 1.026 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.7039, allocations: 1.547 kB / 1.026 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001839/0.7041, allocations: 82.75 kB / 1.026 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.7043, allocations: 0.6692 MB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.385e-05/0.7043, allocations: 4 kB / 1.026 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.306e-05/0.7044, allocations: 7.438 kB / 1.026 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.7044, allocations: 128 / 1.026 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of Templates: time 0.002253/0.7066, allocations: 327 kB / 1.027 GB, free: 11.65 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=480 -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