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.00143/0.00143, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001279/0.00128, allocations: 193 kB / 16.13 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.379/1.379, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.784/2.784, allocations: 461.9 MB / 0.7342 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001762, allocations: 62.92 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3464, allocations: 157.4 MB / 1.052 GB, free: 8.875 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001796/0.3482, allocations: 0.6541 MB / 1.053 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002905/0.3485, allocations: 55.83 kB / 1.053 GB, free: 8.16 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.067e-05/0.3485, allocations: 3.938 kB / 1.053 GB, free: 8.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.947e-05/0.3486, allocations: 0 / 1.053 GB, free: 8.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.729e-06/0.3486, allocations: 0 / 1.053 GB, free: 8.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000182/0.3488, allocations: 8 kB / 1.053 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.633e-05/0.3488, allocations: 4 kB / 1.053 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.84e-05/0.3489, allocations: 8 kB / 1.053 GB, free: 8.137 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.275e-05/0.3489, allocations: 0 / 1.053 GB, free: 8.137 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.13e-05/0.3489, allocations: 0 / 1.053 GB, free: 8.137 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.066e-05/0.3489, allocations: 7.938 kB / 1.053 GB, free: 8.129 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.406e-05/0.349, allocations: 7.984 kB / 1.053 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.377e-05/0.349, allocations: 3.984 kB / 1.053 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.841e-05/0.349, allocations: 4 kB / 1.053 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.367e-05/0.3491, allocations: 11.92 kB / 1.053 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3491, allocations: 0 / 1.053 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.92e-07/0.3491, allocations: 0 / 1.053 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.827e-06/0.3491, allocations: 0 / 1.053 GB, free: 8.102 MB / 0.8106 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.0002829/0.3494, allocations: 319.5 kB / 1.053 GB, free: 7.738 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.3495, allocations: 12.03 kB / 1.053 GB, free: 7.727 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.93e-05/0.3495, allocations: 0.9375 kB / 1.053 GB, free: 7.727 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.715e-05/0.3496, allocations: 164.4 kB / 1.053 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-06/0.3496, allocations: 384 / 1.053 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.643e-06/0.3496, allocations: 384 / 1.053 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.572e-05/0.3497, allocations: 30.27 kB / 1.053 GB, free: 7.492 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.3497, allocations: 192 / 1.053 GB, free: 7.492 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.3497, allocations: 3.938 kB / 1.053 GB, free: 7.488 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.3497, allocations: 4 kB / 1.053 GB, free: 7.484 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.43e-05/0.3498, allocations: 11.92 kB / 1.053 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001584/0.3499, allocations: 149.7 kB / 1.054 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.038e-05/0.35, allocations: 22.61 kB / 1.054 GB, free: 7.246 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.123e-05/0.35, allocations: 4.922 kB / 1.054 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001845/0.3502, allocations: 89.03 kB / 1.054 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.3503, allocations: 38.56 kB / 1.054 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.433e-06/0.3503, allocations: 4 kB / 1.054 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001531/0.3504, allocations: 49.56 kB / 1.054 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.3505, allocations: 51.41 kB / 1.054 GB, free: 6.965 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.693e-05/0.3505, allocations: 89.86 kB / 1.054 GB, free: 6.867 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.3506, allocations: 25.7 kB / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.769e-05/0.3506, allocations: 80.14 kB / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.3506, allocations: 0 / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.188e-05/0.3506, allocations: 21.84 kB / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.3508, allocations: 314.8 kB / 1.054 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.192e-05/0.3508, allocations: 4 kB / 1.054 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.935e-06/0.3508, allocations: 3.984 kB / 1.054 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.229e-05/0.3508, allocations: 16.86 kB / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3508, allocations: 0 / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.591e-05/0.3509, allocations: 37.64 kB / 1.054 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.3509, allocations: 4 kB / 1.054 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.3509, allocations: 4.094 kB / 1.054 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.3509, allocations: 7.922 kB / 1.054 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.664e-05/0.351, allocations: 8 kB / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.351, allocations: 0 / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.474e-05/0.351, allocations: 3.906 kB / 1.054 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.351, allocations: 4 kB / 1.054 GB, free: 6.309 MB / 0.8106 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.003e-05/0.3511, allocations: 109.8 kB / 1.054 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.083e-06/0.3511, allocations: 0 / 1.054 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.579e-05/0.3512, allocations: 56.97 kB / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3512, allocations: 0 / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3512, allocations: 0 / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.3512, allocations: 0 / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.468e-05/0.3513, allocations: 153.6 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.3513, allocations: 0 / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.036e-05/0.3514, allocations: 0 / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3514, allocations: 4 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.3514, allocations: 3.938 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.3514, allocations: 0 / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3514, allocations: 0 / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.388e-05/0.3515, allocations: 65.16 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.337e-05/0.3515, allocations: 77.11 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.3515, allocations: 7.938 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.277e-05/0.3516, allocations: 4 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.566e-05/0.3516, allocations: 3.938 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.3516, allocations: 3.984 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.403e-05/0.3516, allocations: 79.22 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3516, allocations: 4.031 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002041/0.3518, allocations: 8 kB / 1.055 GB, free: 5.641 MB / 0.8106 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.0001515/0.352, allocations: 111.2 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.257e-05/0.3521, allocations: 4 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3521, allocations: 0 / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.235e-05/0.3521, allocations: 11.98 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.3523, allocations: 6.641 kB / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001735/0.3524, allocations: 86.89 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.3527, allocations: 0.677 MB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.543e-05/0.3527, allocations: 4 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.414e-05/0.3527, allocations: 7.438 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of SimCode: time 3.11e-07/0.3527, allocations: 0 / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of Templates: time 0.002072/0.3548, allocations: 324.5 kB / 1.056 GB, free: 4.355 MB / 0.8106 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