Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008098/0.008098, allocations: 103.6 kB / 15.74 MB, free: 6.035 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.001424/0.001424, allocations: 196.6 kB / 16.68 MB, free: 5.953 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.362/2.362, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 60.09 kB / 0.9508 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.008/1.009, allocations: 140.4 MB / 1.088 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002563/1.012, allocations: 1.501 MB / 1.089 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003514/1.012, allocations: 129 kB / 1.09 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.671e-05/1.012, allocations: 0 / 1.09 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.842e-05/1.013, allocations: 0.6562 kB / 1.09 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.197e-05/1.013, allocations: 9.281 kB / 1.09 GB, free: 4.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002403/1.013, allocations: 34.89 kB / 1.09 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.391e-05/1.013, allocations: 27.8 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/1.013, allocations: 10.41 kB / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.646e-05/1.013, allocations: 11.19 kB / 1.09 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.201e-05/1.013, allocations: 20.06 kB / 1.09 GB, free: 4.355 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/1.013, allocations: 3.156 kB / 1.09 GB, free: 4.355 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.07e-05/1.013, allocations: 12.42 kB / 1.09 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.703e-05/1.013, allocations: 7.297 kB / 1.09 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.012e-05/1.013, allocations: 15.95 kB / 1.09 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001284/1.013, allocations: 38.72 kB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/1.013, allocations: 1.062 kB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.102e-06/1.013, allocations: 0 / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.671e-06/1.013, allocations: 0 / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004468/1.014, allocations: 340.4 kB / 1.09 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/1.014, allocations: 10.17 kB / 1.09 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.943e-05/1.014, allocations: 7 kB / 1.09 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.75e-05/1.014, allocations: 163.1 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/1.014, allocations: 5.438 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/1.014, allocations: 6.391 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/1.014, allocations: 62.25 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/1.014, allocations: 1.891 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/1.014, allocations: 3.938 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/1.014, allocations: 1.438 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/1.015, allocations: 44.88 kB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003485/1.015, allocations: 260.7 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/1.015, allocations: 60.34 kB / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.771e-05/1.015, allocations: 26.73 kB / 1.091 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/1.016, allocations: 81.64 kB / 1.091 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/1.016, allocations: 44.39 kB / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.233e-06/1.016, allocations: 0 / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003851/1.016, allocations: 92.8 kB / 1.091 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/1.016, allocations: 51.92 kB / 1.091 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.666e-05/1.016, allocations: 102.2 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.679e-06/1.016, allocations: 25.7 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.069e-05/1.016, allocations: 90.36 kB / 1.091 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.518e-05/1.016, allocations: 7.359 kB / 1.091 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.485e-05/1.016, allocations: 19.12 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.284e-05/1.016, allocations: 312.5 kB / 1.091 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.465e-05/1.016, allocations: 20.28 kB / 1.091 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.006e-05/1.016, allocations: 20.33 kB / 1.091 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/1.017, allocations: 49.84 kB / 1.092 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/1.017, allocations: 3.938 kB / 1.092 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002038/1.017, allocations: 77.05 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/1.017, allocations: 5.609 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/1.017, allocations: 1.094 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/1.017, allocations: 0.5156 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.161e-05/1.017, allocations: 11.92 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/1.017, allocations: 0 / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.481e-05/1.017, allocations: 11.16 kB / 1.092 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/1.017, allocations: 0.9375 kB / 1.092 GB, free: 2.484 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.524e-05/1.017, allocations: 120.8 kB / 1.092 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.532e-05/1.017, allocations: 5.453 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002626/1.017, allocations: 83.17 kB / 1.092 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/1.017, allocations: 3.938 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.017, allocations: 6.141 kB / 1.092 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/1.017, allocations: 0 / 1.092 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/1.018, allocations: 163.5 kB / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/1.018, allocations: 0 / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.432e-05/1.018, allocations: 14.45 kB / 1.092 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/1.018, allocations: 1.734 kB / 1.092 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/1.018, allocations: 1.062 kB / 1.092 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/1.018, allocations: 0.75 kB / 1.092 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.018, allocations: 1.062 kB / 1.092 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002319/1.018, allocations: 176.3 kB / 1.092 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.983e-05/1.018, allocations: 82.69 kB / 1.092 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/1.018, allocations: 1.75 kB / 1.092 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.873e-05/1.018, allocations: 6.516 kB / 1.092 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.384e-05/1.018, allocations: 8.938 kB / 1.092 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/1.018, allocations: 5.094 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.745e-05/1.018, allocations: 83.7 kB / 1.092 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/1.018, allocations: 0 / 1.092 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002409/1.018, allocations: 12.19 kB / 1.092 GB, free: 1.766 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001418/1.019, allocations: 104.5 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002413/1.019, allocations: 45.22 kB / 1.093 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/1.019, allocations: 0 / 1.093 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001044/1.019, allocations: 30.19 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003006/1.019, allocations: 6.625 kB / 1.093 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003517/1.02, allocations: 115.7 kB / 1.093 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/1.02, allocations: 0.6783 MB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.636e-05/1.02, allocations: 3 kB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.208e-05/1.02, allocations: 10.98 kB / 1.093 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of SimCode: time 4.2e-07/1.02, allocations: 4 kB / 1.093 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of Templates: time 0.004381/1.024, allocations: 0.7262 MB / 1.094 GB, free: 0.7383 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches