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.001627/0.001627, allocations: 108.3 kB / 15.99 MB, free: 6.371 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.002031/0.002031, allocations: 194.9 kB / 16.91 MB, free: 6.199 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.482/1.482, allocations: 222.9 MB / 240.6 MB, free: 15.45 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.226/2.226, allocations: 390.3 MB / 0.665 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 64.22 kB / 0.8127 GB, free: 33.29 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2723, allocations: 140.4 MB / 0.9498 GB, free: 9.203 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003167/0.2755, allocations: 1.576 MB / 0.9513 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0004569/0.276, allocations: 120.5 kB / 0.9514 GB, free: 7.492 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.814e-05/0.2761, allocations: 0 / 0.9514 GB, free: 7.492 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.033e-05/0.2761, allocations: 3.938 kB / 0.9514 GB, free: 7.488 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.007e-05/0.2762, allocations: 4 kB / 0.9514 GB, free: 7.484 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.2764, allocations: 19.97 kB / 0.9514 GB, free: 7.465 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.588e-05/0.2766, allocations: 27.92 kB / 0.9515 GB, free: 7.438 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.2767, allocations: 11.98 kB / 0.9515 GB, free: 7.426 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.586e-05/0.2767, allocations: 12 kB / 0.9515 GB, free: 7.414 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.297e-05/0.2768, allocations: 15.92 kB / 0.9515 GB, free: 7.398 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.2768, allocations: 0 / 0.9515 GB, free: 7.398 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.182e-05/0.2769, allocations: 19.98 kB / 0.9515 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.647e-05/0.2769, allocations: 11.92 kB / 0.9515 GB, free: 7.367 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.902e-05/0.277, allocations: 11.94 kB / 0.9515 GB, free: 7.355 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.897e-05/0.2771, allocations: 19.97 kB / 0.9516 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.2771, allocations: 7.922 kB / 0.9516 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.655e-06/0.2771, allocations: 0 / 0.9516 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.2771, allocations: 0 / 0.9516 GB, free: 7.328 MB / 0.7325 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.0005175/0.2776, allocations: 347.7 kB / 0.9519 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.2777, allocations: 8.031 kB / 0.9519 GB, free: 6.93 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.2777, allocations: 8.844 kB / 0.9519 GB, free: 6.922 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.2779, allocations: 164.3 kB / 0.9521 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.2779, allocations: 4.375 kB / 0.9521 GB, free: 6.719 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.2779, allocations: 4.375 kB / 0.9521 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002021/0.2781, allocations: 58.22 kB / 0.9521 GB, free: 6.652 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.2781, allocations: 192 / 0.9521 GB, free: 6.652 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.2782, allocations: 15.92 kB / 0.9522 GB, free: 6.637 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.2782, allocations: 0 / 0.9522 GB, free: 6.637 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002112/0.2784, allocations: 35.95 kB / 0.9522 GB, free: 6.602 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004282/0.2788, allocations: 264.9 kB / 0.9524 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003427/0.2792, allocations: 66.47 kB / 0.9525 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.2793, allocations: 28.89 kB / 0.9525 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001247/0.2795, allocations: 77.11 kB / 0.9526 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.2795, allocations: 34.56 kB / 0.9526 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.483e-06/0.2795, allocations: 0 / 0.9526 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0004396/0.2799, allocations: 105.5 kB / 0.9527 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.28, allocations: 51.41 kB / 0.9528 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.842e-05/0.2801, allocations: 101.8 kB / 0.9529 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.2801, allocations: 25.7 kB / 0.9529 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.674e-05/0.2802, allocations: 84.14 kB / 0.953 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.014e-05/0.2802, allocations: 15.78 kB / 0.953 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.508e-05/0.2802, allocations: 13.72 kB / 0.953 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.2804, allocations: 314.8 kB / 0.9533 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.2805, allocations: 23.98 kB / 0.9533 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.933e-05/0.2806, allocations: 15.98 kB / 0.9534 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.2808, allocations: 48.81 kB / 0.9534 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.2808, allocations: 3.938 kB / 0.9534 GB, free: 5.207 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002235/0.281, allocations: 73.59 kB / 0.9535 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.281, allocations: 11.98 kB / 0.9535 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.281, allocations: 0 / 0.9535 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.2811, allocations: 0 / 0.9535 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.303e-05/0.2812, allocations: 11.98 kB / 0.9535 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.832e-06/0.2812, allocations: 0 / 0.9535 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.626e-05/0.2812, allocations: 8 kB / 0.9535 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.2813, allocations: 4 kB / 0.9535 GB, free: 5.094 MB / 0.7325 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 0.0001001/0.2814, allocations: 113.8 kB / 0.9536 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.696e-05/0.2814, allocations: 7.984 kB / 0.9536 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002936/0.2817, allocations: 89.44 kB / 0.9537 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2817, allocations: 4 kB / 0.9537 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2817, allocations: 0 / 0.9537 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.2817, allocations: 0 / 0.9537 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001886/0.2819, allocations: 165.6 kB / 0.9539 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.2819, allocations: 7.984 kB / 0.9539 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.404e-05/0.282, allocations: 4 kB / 0.9539 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.282, allocations: 11.98 kB / 0.9539 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-06/0.2821, allocations: 0 / 0.9539 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.2821, allocations: 0 / 0.9539 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2821, allocations: 0 / 0.9539 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002899/0.2824, allocations: 167.5 kB / 0.9541 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.558e-05/0.2824, allocations: 77.11 kB / 0.9541 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.2824, allocations: 11.98 kB / 0.9541 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.839e-05/0.2825, allocations: 7.938 kB / 0.9542 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.778e-05/0.2826, allocations: 7.984 kB / 0.9542 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/0.2826, allocations: 0 / 0.9542 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.857e-05/0.2826, allocations: 83.28 kB / 0.9542 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.453e-06/0.2827, allocations: 0 / 0.9542 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002343/0.2829, allocations: 11.94 kB / 0.9543 GB, free: 4.238 MB / 0.7325 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.0001595/0.2831, allocations: 103.2 kB / 0.9544 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002659/0.2833, allocations: 47.95 kB / 0.9544 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2833, allocations: 0 / 0.9544 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.2835, allocations: 27.92 kB / 0.9544 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.2838, allocations: 10.31 kB / 0.9544 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003552/0.2842, allocations: 151.2 kB / 0.9546 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.2845, allocations: 0.6805 MB / 0.9552 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.533e-05/0.2845, allocations: 11.44 kB / 0.9553 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.2845, allocations: 0 / 0.9553 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of Templates: time 0.002532/0.287, allocations: 0.7361 MB / 0.956 GB, free: 2.418 MB / 0.7325 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches