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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00627/0.006274, allocations: 101.6 kB / 15.88 MB, free: 5.867 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.001462/0.001462, allocations: 192.7 kB / 16.79 MB, free: 5.809 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.35/1.35, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.575/2.575, allocations: 437 MB / 0.7106 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 67.89 kB / 0.8692 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7003/0.7017, allocations: 151.6 MB / 1.017 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001949/0.7037, allocations: 0.6528 MB / 1.018 GB, free: 2.148 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003135/0.7041, allocations: 51.84 kB / 1.018 GB, free: 2.098 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.09e-05/0.7041, allocations: 0 / 1.018 GB, free: 2.098 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.391e-05/0.7041, allocations: 0 / 1.018 GB, free: 2.098 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.431e-06/0.7042, allocations: 4 kB / 1.018 GB, free: 2.094 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001925/0.7043, allocations: 8 kB / 1.018 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.656e-05/0.7044, allocations: 0 / 1.018 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.736e-05/0.7044, allocations: 7.984 kB / 1.018 GB, free: 2.078 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.601e-05/0.7045, allocations: 7.938 kB / 1.018 GB, free: 2.07 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.068e-05/0.7045, allocations: 0 / 1.018 GB, free: 2.07 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 9.107e-06/0.7045, allocations: 0 / 1.018 GB, free: 2.07 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.671e-05/0.7046, allocations: 4 kB / 1.018 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.307e-05/0.7046, allocations: 3.984 kB / 1.018 GB, free: 2.062 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.911e-05/0.7046, allocations: 15.88 kB / 1.018 GB, free: 2.047 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 6.129e-05/0.7047, allocations: 3.984 kB / 1.018 GB, free: 2.043 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.7047, allocations: 4 kB / 1.018 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of FrontEnd: time 9.22e-07/0.7047, allocations: 0 / 1.018 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.7047, allocations: 0 / 1.018 GB, free: 2.039 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.0003424/0.7051, allocations: 319.5 kB / 1.018 GB, free: 1.676 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.7051, allocations: 8.031 kB / 1.018 GB, free: 1.668 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.67e-05/0.7052, allocations: 0.9375 kB / 1.018 GB, free: 1.668 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.7053, allocations: 160.4 kB / 1.018 GB, free: 1.473 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.7053, allocations: 8.375 kB / 1.018 GB, free: 1.465 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.191e-05/0.7053, allocations: 4.375 kB / 1.018 GB, free: 1.461 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.7054, allocations: 30.27 kB / 1.019 GB, free: 1.426 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.7055, allocations: 4.188 kB / 1.019 GB, free: 1.422 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.7055, allocations: 7.922 kB / 1.019 GB, free: 1.414 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.7055, allocations: 0 / 1.019 GB, free: 1.414 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.965e-05/0.7055, allocations: 7.922 kB / 1.019 GB, free: 1.406 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001581/0.7057, allocations: 149.7 kB / 1.019 GB, free: 1.211 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 4.981e-05/0.7058, allocations: 22.59 kB / 1.019 GB, free: 1.18 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.252e-05/0.7058, allocations: 16.92 kB / 1.019 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001805/0.706, allocations: 81.11 kB / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.706, allocations: 30.56 kB / 1.019 GB, free: 1.023 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.706, allocations: 0 / 1.019 GB, free: 1.023 MB / 0.7637 GB Notification: Performance of matching and sorting (n=2): time 0.0001436/0.7062, allocations: 49.56 kB / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.7062, allocations: 51.41 kB / 1.019 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.557e-05/0.7063, allocations: 89.86 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.7063, allocations: 25.7 kB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 3.338e-05/0.7063, allocations: 88.27 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.7063, allocations: 0 / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.688e-05/0.7064, allocations: 9.719 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0002057/0.7066, allocations: 322.8 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.249e-05/0.7066, allocations: 3.938 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.041e-05/0.7066, allocations: 4 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.613e-05/0.7067, allocations: 12.86 kB / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.7067, allocations: 4.062 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.016e-05/0.7067, allocations: 41.62 kB / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.7068, allocations: 4 kB / 1.02 GB, free: 276 kB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.7068, allocations: 0 / 1.02 GB, free: 276 kB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.7068, allocations: 7.875 kB / 1.02 GB, free: 268 kB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.239e-05/0.7069, allocations: 4 kB / 1.02 GB, free: 264 kB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.7069, allocations: 0 / 1.02 GB, free: 264 kB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.752e-05/0.7069, allocations: 0 / 1.02 GB, free: 264 kB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-06/0.7069, allocations: 4 kB / 1.02 GB, free: 260 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.853e-05/0.707, allocations: 114.4 kB / 1.02 GB, free: 136 kB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.008e-05/0.707, allocations: 3.906 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.7071, allocations: 50.66 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.7071, allocations: 0 / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.7072, allocations: 0 / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.7072, allocations: 0 / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/0.7073, allocations: 153.7 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.7073, allocations: 0 / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.573e-05/0.7073, allocations: 4 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.7073, allocations: 32 / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.7073, allocations: 7.938 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.7073, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.651e-05/0.7074, allocations: 4 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.23e-05/0.7075, allocations: 65.12 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.352e-05/0.7075, allocations: 77.11 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.7075, allocations: 3.938 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.129e-05/0.7075, allocations: 0 / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.533e-05/0.7076, allocations: 8.016 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.7076, allocations: 4 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.597e-05/0.7076, allocations: 79.22 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7076, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002084/0.7078, allocations: 8 kB / 1.02 GB, free: 15.58 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.000158/0.708, allocations: 103.2 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.804e-05/0.7081, allocations: 11.98 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.7081, allocations: 4.062 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.186e-05/0.7081, allocations: 4 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001434/0.7083, allocations: 3.969 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001994/0.7085, allocations: 104.5 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.7087, allocations: 0.677 MB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.813e-05/0.7088, allocations: 7.438 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of SimCode: time 3.21e-07/0.7088, allocations: 3.938 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of Templates: time 0.001932/0.7107, allocations: 455.6 kB / 1.021 GB, free: 14.16 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/jenkins1/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