Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_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.001496/0.001496, allocations: 104.8 kB / 16.35 MB, free: 5.824 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.001677/0.001677, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.404/1.404, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.46/2.46, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 73.02 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2705, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002621/0.2732, allocations: 1.53 MB / 1.028 GB, free: 0.5156 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0003481/0.2736, allocations: 120.5 kB / 1.028 GB, free: 404 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.196e-05/0.2736, allocations: 0 / 1.028 GB, free: 404 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.548e-05/0.2737, allocations: 0 / 1.028 GB, free: 404 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.698e-05/0.2737, allocations: 3.938 kB / 1.028 GB, free: 400 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002055/0.2739, allocations: 27.92 kB / 1.028 GB, free: 372 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.5e-05/0.274, allocations: 23.98 kB / 1.028 GB, free: 348 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.652e-05/0.2741, allocations: 15.97 kB / 1.028 GB, free: 332 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 4.309e-05/0.2741, allocations: 15.94 kB / 1.028 GB, free: 316 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.808e-05/0.2742, allocations: 15.92 kB / 1.028 GB, free: 300 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.242e-05/0.2742, allocations: 4 kB / 1.028 GB, free: 296 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.724e-05/0.2743, allocations: 15.98 kB / 1.028 GB, free: 280 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.324e-05/0.2743, allocations: 4 kB / 1.028 GB, free: 276 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.653e-05/0.2743, allocations: 15.92 kB / 1.028 GB, free: 260 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 9.988e-05/0.2744, allocations: 35.83 kB / 1.028 GB, free: 224 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2744, allocations: 0 / 1.028 GB, free: 224 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2745, allocations: 0 / 1.028 GB, free: 224 kB / 0.795 GB Notification: Performance of Transformations before backend: time 8.516e-06/0.2745, allocations: 0 / 1.028 GB, free: 224 kB / 0.795 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.0004326/0.2749, allocations: 344.7 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2749, allocations: 12.03 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.079e-05/0.275, allocations: 8.828 kB / 1.029 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.28e-05/0.2751, allocations: 164.4 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.2751, allocations: 4.375 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.039e-05/0.2751, allocations: 384 / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001722/0.2753, allocations: 58.23 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.2753, allocations: 192 / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.2753, allocations: 11.92 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2753, allocations: 0 / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.2755, allocations: 43.91 kB / 1.029 GB, free: 15.49 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003406/0.2759, allocations: 257 kB / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003048/0.2762, allocations: 66.47 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.278e-05/0.2763, allocations: 28.84 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001064/0.2764, allocations: 85.09 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.2764, allocations: 38.44 kB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.2764, allocations: 0 / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003661/0.2768, allocations: 89.55 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.2769, allocations: 59.39 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.881e-05/0.2769, allocations: 97.86 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.2769, allocations: 29.7 kB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.107e-05/0.277, allocations: 88.12 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.356e-05/0.277, allocations: 7.844 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.619e-05/0.277, allocations: 21.7 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.021e-05/0.2771, allocations: 310.8 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.49e-05/0.2772, allocations: 31.97 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.719e-05/0.2773, allocations: 19.92 kB / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.2775, allocations: 44.81 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.2775, allocations: 3.938 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001994/0.2777, allocations: 73.66 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.2777, allocations: 8 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.2777, allocations: 0.5156 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.2778, allocations: 0 / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.055e-05/0.2778, allocations: 11.98 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.451e-06/0.2778, allocations: 0 / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.602e-05/0.2779, allocations: 7.984 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-06/0.2779, allocations: 4 kB / 1.03 GB, free: 13.98 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 (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 7.337e-05/0.278, allocations: 121.7 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.679e-05/0.278, allocations: 11.89 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000237/0.2783, allocations: 81.14 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2783, allocations: 0 / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2783, allocations: 0 / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.2783, allocations: 0 / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.2785, allocations: 165.6 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2785, allocations: 0 / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.789e-05/0.2786, allocations: 15.98 kB / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.2786, allocations: 4 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.2786, allocations: 0 / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.2786, allocations: 0 / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2786, allocations: 3.938 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002397/0.2788, allocations: 175.4 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.858e-05/0.2789, allocations: 77.11 kB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.2789, allocations: 4 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.984e-05/0.279, allocations: 11.98 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.488e-05/0.279, allocations: 4 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/0.279, allocations: 11.92 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.045e-05/0.2791, allocations: 75.28 kB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2791, allocations: 0 / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002217/0.2793, allocations: 8 kB / 1.031 GB, free: 13.12 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.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.0001282/0.2795, allocations: 103.2 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002161/0.2797, allocations: 47.89 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2797, allocations: 0 / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.2798, allocations: 27.97 kB / 1.031 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002418/0.28, allocations: 14.12 kB / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000253/0.2803, allocations: 109.5 kB / 1.031 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002044/0.2805, allocations: 0.6807 MB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.902e-05/0.2806, allocations: 7.984 kB / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.526e-05/0.2806, allocations: 11.44 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of SimCode: time 3.21e-07/0.2806, allocations: 0 / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of Templates: time 0.002666/0.2833, allocations: 0.7144 MB / 1.033 GB, free: 11.36 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches