Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_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_latest_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.007527/0.007527, allocations: 99.64 kB / 15.73 MB, free: 6.027 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.001426/0.001426, allocations: 186.2 kB / 16.67 MB, free: 5.969 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.726/2.726, allocations: 461.9 MB / 0.7348 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 64.08 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3505, allocations: 157.4 MB / 1.208 GB, free: 9.66 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001969/0.3525, allocations: 0.5814 MB / 1.208 GB, free: 9.078 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003574/0.3529, allocations: 55.78 kB / 1.208 GB, free: 9.023 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.908e-05/0.3529, allocations: 4 kB / 1.208 GB, free: 9.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.084e-05/0.353, allocations: 3.938 kB / 1.208 GB, free: 9.016 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.366e-06/0.353, allocations: 0 / 1.208 GB, free: 9.016 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002702/0.3533, allocations: 15.98 kB / 1.208 GB, free: 9 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.069e-05/0.3533, allocations: 4 kB / 1.208 GB, free: 8.996 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 6.413e-05/0.3534, allocations: 3.984 kB / 1.208 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.114e-05/0.3534, allocations: 0 / 1.208 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 2.36e-05/0.3535, allocations: 0 / 1.208 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.275e-05/0.3535, allocations: 4 kB / 1.208 GB, free: 8.988 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.338e-05/0.3536, allocations: 8 kB / 1.208 GB, free: 8.98 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.3536, allocations: 0 / 1.208 GB, free: 8.98 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.398e-05/0.3536, allocations: 7.984 kB / 1.208 GB, free: 8.973 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 9.993e-05/0.3537, allocations: 15.92 kB / 1.208 GB, free: 8.957 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3537, allocations: 3.938 kB / 1.208 GB, free: 8.953 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.214e-06/0.3537, allocations: 0 / 1.208 GB, free: 8.953 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.3537, allocations: 0 / 1.208 GB, free: 8.953 MB / 0.9669 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.0003486/0.3541, allocations: 311.6 kB / 1.209 GB, free: 8.598 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.3542, allocations: 12.62 kB / 1.209 GB, free: 8.586 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.898e-05/0.3542, allocations: 4.938 kB / 1.209 GB, free: 8.582 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.3543, allocations: 160.4 kB / 1.209 GB, free: 8.387 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.3543, allocations: 4.375 kB / 1.209 GB, free: 8.383 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.3543, allocations: 4.375 kB / 1.209 GB, free: 8.379 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001012/0.3545, allocations: 34.25 kB / 1.209 GB, free: 8.34 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.3545, allocations: 192 / 1.209 GB, free: 8.34 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.3545, allocations: 3.938 kB / 1.209 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.3545, allocations: 7.984 kB / 1.209 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.292e-05/0.3545, allocations: 0 / 1.209 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001603/0.3547, allocations: 153.6 kB / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.234e-05/0.3548, allocations: 26.59 kB / 1.209 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.258e-05/0.3548, allocations: 12.92 kB / 1.209 GB, free: 8.078 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001747/0.355, allocations: 77.11 kB / 1.209 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.355, allocations: 34.56 kB / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.343e-06/0.355, allocations: 3.938 kB / 1.209 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001615/0.3552, allocations: 49.56 kB / 1.209 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.747e-05/0.3552, allocations: 51.41 kB / 1.209 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.055e-05/0.3553, allocations: 93.98 kB / 1.209 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.3553, allocations: 25.7 kB / 1.209 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.484e-05/0.3553, allocations: 80.14 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/0.3554, allocations: 7.906 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-05/0.3554, allocations: 13.7 kB / 1.21 GB, free: 7.578 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.3555, allocations: 314.8 kB / 1.21 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.152e-05/0.3555, allocations: 7.938 kB / 1.21 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.792e-06/0.3556, allocations: 0 / 1.21 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.335e-05/0.3556, allocations: 16.92 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3556, allocations: 0 / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.24e-05/0.3557, allocations: 45.62 kB / 1.21 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.3557, allocations: 4 kB / 1.21 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.3557, allocations: 0 / 1.21 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.3557, allocations: 3.938 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.492e-05/0.3558, allocations: 4 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.3558, allocations: 3.984 kB / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.324e-05/0.3558, allocations: 0 / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.3558, allocations: 8.031 kB / 1.21 GB, free: 7.16 MB / 0.9669 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.115e-05/0.3559, allocations: 109.8 kB / 1.21 GB, free: 7.043 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.763e-06/0.3559, allocations: 0 / 1.21 GB, free: 7.043 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.55e-05/0.356, allocations: 44.75 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.356, allocations: 0 / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.356, allocations: 3.938 kB / 1.21 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.356, allocations: 0 / 1.21 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001247/0.3562, allocations: 157.6 kB / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.3562, allocations: 0 / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.18e-05/0.3562, allocations: 8.031 kB / 1.21 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.3562, allocations: 0 / 1.21 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.3562, allocations: 7.938 kB / 1.21 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3562, allocations: 0 / 1.21 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3562, allocations: 0 / 1.21 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.792e-05/0.3563, allocations: 61.12 kB / 1.21 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.823e-05/0.3564, allocations: 81.11 kB / 1.21 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.056e-05/0.3564, allocations: 3.969 kB / 1.21 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.179e-05/0.3564, allocations: 7.984 kB / 1.21 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.47e-05/0.3564, allocations: 0 / 1.21 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.3564, allocations: 0 / 1.21 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 2.868e-05/0.3565, allocations: 79.28 kB / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.703e-06/0.3565, allocations: 0 / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001922/0.3567, allocations: 15.88 kB / 1.211 GB, free: 6.492 MB / 0.9669 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.0001655/0.3568, allocations: 103.2 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 7.343e-05/0.3569, allocations: 15.98 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3569, allocations: 0 / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.534e-05/0.3569, allocations: 4 kB / 1.211 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.3571, allocations: 5.719 kB / 1.211 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002333/0.3573, allocations: 92.83 kB / 1.211 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.3576, allocations: 0.669 MB / 1.211 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.522e-05/0.3576, allocations: 4 kB / 1.211 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.319e-05/0.3576, allocations: 11.38 kB / 1.211 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of SimCode: time 2.8e-07/0.3576, allocations: 4.125 kB / 1.211 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of Templates: time 0.002258/0.3599, allocations: 325.2 kB / 1.212 GB, free: 5.211 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches