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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.008409/0.008409, allocations: 108.3 kB / 15.74 MB, free: 6.449 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.001831/0.001832, allocations: 196 kB / 16.67 MB, free: 6.355 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.38/2.38, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 64.91 kB / 0.9509 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3224, allocations: 140.4 MB / 1.088 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001702/0.3242, allocations: 0.5726 MB / 1.089 GB, free: 0.8711 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003039/0.3245, allocations: 55.78 kB / 1.089 GB, free: 0.8164 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.841e-05/0.3245, allocations: 4 kB / 1.089 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.676e-05/0.3245, allocations: 0 / 1.089 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.925e-06/0.3246, allocations: 0 / 1.089 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002539/0.3248, allocations: 11.98 kB / 1.089 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.883e-05/0.3249, allocations: 4 kB / 1.089 GB, free: 0.7969 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.479e-05/0.3249, allocations: 0 / 1.089 GB, free: 0.7969 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.38e-05/0.325, allocations: 0 / 1.089 GB, free: 0.7969 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.689e-05/0.325, allocations: 8 kB / 1.089 GB, free: 0.7891 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.05e-05/0.325, allocations: 0 / 1.089 GB, free: 0.7891 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.504e-05/0.3251, allocations: 7.984 kB / 1.089 GB, free: 0.7812 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.238e-05/0.3251, allocations: 3.984 kB / 1.089 GB, free: 0.7773 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.1e-05/0.3251, allocations: 11.94 kB / 1.089 GB, free: 0.7656 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.339e-05/0.3252, allocations: 7.984 kB / 1.089 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.3252, allocations: 0 / 1.089 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3252, allocations: 3.938 kB / 1.089 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.3252, allocations: 0 / 1.089 GB, free: 0.7539 MB / 0.8419 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.0003325/0.3256, allocations: 315.6 kB / 1.089 GB, free: 404 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.3256, allocations: 12.03 kB / 1.089 GB, free: 392 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.497e-05/0.3257, allocations: 0.9375 kB / 1.089 GB, free: 392 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.3258, allocations: 164.4 kB / 1.089 GB, free: 188 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.3258, allocations: 4.375 kB / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.316e-06/0.3258, allocations: 4.375 kB / 1.089 GB, free: 180 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.136e-05/0.3259, allocations: 26.27 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.3259, allocations: 192 / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.3259, allocations: 3.938 kB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3259, allocations: 4 kB / 1.089 GB, free: 140 kB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.974e-05/0.326, allocations: 3.984 kB / 1.089 GB, free: 136 kB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.3261, allocations: 149.7 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.621e-05/0.3262, allocations: 34.48 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.968e-05/0.3262, allocations: 13.25 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001556/0.3264, allocations: 77.11 kB / 1.089 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.3264, allocations: 38.5 kB / 1.089 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.3264, allocations: 0 / 1.089 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001352/0.3266, allocations: 53.55 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.3266, allocations: 51.41 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.113e-05/0.3266, allocations: 93.98 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.3267, allocations: 25.7 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.166e-05/0.3267, allocations: 80.14 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.3267, allocations: 4 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.611e-05/0.3267, allocations: 13.72 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.3268, allocations: 314.8 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.264e-05/0.3269, allocations: 3.984 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.232e-06/0.3269, allocations: 0 / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.163e-05/0.3269, allocations: 24.92 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3269, allocations: 0 / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.283e-05/0.327, allocations: 41.55 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.327, allocations: 7.984 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.327, allocations: 0 / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.327, allocations: 3.938 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.029e-05/0.3271, allocations: 4 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.3271, allocations: 0 / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.384e-05/0.3271, allocations: 3.938 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-06/0.3271, allocations: 8.031 kB / 1.09 GB, free: 14.96 MB / 0.8575 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 5.54e-05/0.3272, allocations: 109.8 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.101e-06/0.3272, allocations: 0 / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.524e-05/0.3273, allocations: 52.75 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.3273, allocations: 0 / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3273, allocations: 0 / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-06/0.3273, allocations: 3.938 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.759e-05/0.3274, allocations: 153.7 kB / 1.09 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3274, allocations: 0 / 1.09 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.087e-05/0.3274, allocations: 8.031 kB / 1.09 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.3274, allocations: 0 / 1.09 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.3274, allocations: 3.938 kB / 1.09 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3274, allocations: 0 / 1.09 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3274, allocations: 0 / 1.09 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.635e-05/0.3275, allocations: 61.12 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.994e-05/0.3276, allocations: 85.05 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.106e-05/0.3276, allocations: 3.969 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.304e-05/0.3276, allocations: 8 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.24e-05/0.3276, allocations: 7.922 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.3276, allocations: 4 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.539e-05/0.3277, allocations: 75.28 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3277, allocations: 0 / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001863/0.3278, allocations: 4 kB / 1.091 GB, free: 14.29 MB / 0.8575 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.0001378/0.328, allocations: 103.2 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 6.691e-05/0.3281, allocations: 12 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3281, allocations: 0 / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.638e-05/0.3281, allocations: 11.98 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001193/0.3282, allocations: 3.609 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001634/0.3284, allocations: 85.08 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.3286, allocations: 0.6768 MB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.139e-05/0.3286, allocations: 0 / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.565e-05/0.3287, allocations: 7.438 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.3287, allocations: 8.062 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of Templates: time 0.001952/0.3306, allocations: 316.3 kB / 1.092 GB, free: 13.02 MB / 0.8575 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