Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_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.001693/0.001692, allocations: 107.6 kB / 16.36 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.001995/0.001994, allocations: 187.6 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.32/1.32, 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 10.1.0-maint.10.0.x/package.mo): time 2.426/2.426, allocations: 437.1 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 63.97 kB / 0.8707 GB, free: 1.492 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2903, allocations: 151.6 MB / 1.019 GB, free: 9.898 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002659/0.293, allocations: 1.509 MB / 1.02 GB, free: 8.371 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0003379/0.2934, allocations: 124.5 kB / 1.02 GB, free: 8.246 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.136e-05/0.2934, allocations: 0 / 1.02 GB, free: 8.246 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.677e-05/0.2934, allocations: 3.938 kB / 1.02 GB, free: 8.242 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.144e-05/0.2935, allocations: 11.92 kB / 1.02 GB, free: 8.23 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.2937, allocations: 23.92 kB / 1.02 GB, free: 8.207 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.332e-05/0.2938, allocations: 31.92 kB / 1.02 GB, free: 8.176 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.2939, allocations: 8 kB / 1.02 GB, free: 8.168 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 5.124e-05/0.294, allocations: 19.91 kB / 1.02 GB, free: 8.148 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.815e-05/0.294, allocations: 11.98 kB / 1.02 GB, free: 8.137 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.293e-05/0.294, allocations: 7.938 kB / 1.02 GB, free: 8.129 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.818e-05/0.2941, allocations: 8 kB / 1.02 GB, free: 8.121 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.361e-05/0.2941, allocations: 11.98 kB / 1.02 GB, free: 8.109 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.864e-05/0.2942, allocations: 11.94 kB / 1.021 GB, free: 8.098 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000101/0.2943, allocations: 35.88 kB / 1.021 GB, free: 8.062 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2943, allocations: 0 / 1.021 GB, free: 8.062 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2943, allocations: 0 / 1.021 GB, free: 8.062 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.2943, allocations: 0 / 1.021 GB, free: 8.062 MB / 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.000435/0.2947, allocations: 347.4 kB / 1.021 GB, free: 7.672 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2948, allocations: 8.922 kB / 1.021 GB, free: 7.664 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.535e-05/0.2948, allocations: 8.844 kB / 1.021 GB, free: 7.656 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.2949, allocations: 164.4 kB / 1.021 GB, free: 7.457 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.295, allocations: 4.359 kB / 1.021 GB, free: 7.453 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.295, allocations: 4.375 kB / 1.021 GB, free: 7.449 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001747/0.2952, allocations: 58.17 kB / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.2952, allocations: 4.188 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.2952, allocations: 3.938 kB / 1.021 GB, free: 7.379 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.2952, allocations: 0 / 1.021 GB, free: 7.379 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.2954, allocations: 35.95 kB / 1.021 GB, free: 7.344 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003578/0.2957, allocations: 269 kB / 1.021 GB, free: 7.031 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002975/0.2961, allocations: 62.47 kB / 1.021 GB, free: 6.961 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.058e-05/0.2962, allocations: 24.83 kB / 1.021 GB, free: 6.934 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001092/0.2963, allocations: 81.11 kB / 1.022 GB, free: 6.836 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.2963, allocations: 38.56 kB / 1.022 GB, free: 6.789 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.2963, allocations: 4 kB / 1.022 GB, free: 6.785 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0003434/0.2967, allocations: 93.53 kB / 1.022 GB, free: 6.688 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.2967, allocations: 55.34 kB / 1.022 GB, free: 6.621 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.299e-05/0.2968, allocations: 105.8 kB / 1.022 GB, free: 6.508 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.2968, allocations: 25.7 kB / 1.022 GB, free: 6.477 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.111e-05/0.2968, allocations: 85.67 kB / 1.022 GB, free: 6.391 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.2969, allocations: 19.83 kB / 1.022 GB, free: 6.371 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.47e-05/0.2969, allocations: 13.72 kB / 1.022 GB, free: 6.352 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 8.742e-05/0.297, allocations: 318.8 kB / 1.022 GB, free: 6.031 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.591e-05/0.2971, allocations: 15.98 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.454e-05/0.2972, allocations: 19.97 kB / 1.022 GB, free: 5.996 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.2973, allocations: 48.83 kB / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.2973, allocations: 7.875 kB / 1.022 GB, free: 5.938 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001934/0.2975, allocations: 77.58 kB / 1.022 GB, free: 5.855 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.2976, allocations: 8 kB / 1.022 GB, free: 5.848 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.2976, allocations: 0 / 1.022 GB, free: 5.848 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.2976, allocations: 0 / 1.022 GB, free: 5.848 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.702e-05/0.2977, allocations: 11.98 kB / 1.022 GB, free: 5.836 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.2977, allocations: 4 kB / 1.022 GB, free: 5.832 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.209e-05/0.2977, allocations: 4 kB / 1.022 GB, free: 5.828 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.2978, allocations: 3.984 kB / 1.022 GB, free: 5.824 MB / 0.795 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.48e-05/0.2978, allocations: 113.8 kB / 1.023 GB, free: 5.703 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.522e-05/0.2978, allocations: 3.906 kB / 1.023 GB, free: 5.699 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000236/0.2981, allocations: 85.14 kB / 1.023 GB, free: 5.609 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.2981, allocations: 8 kB / 1.023 GB, free: 5.602 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2981, allocations: 0 / 1.023 GB, free: 5.602 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2981, allocations: 3.938 kB / 1.023 GB, free: 5.598 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001435/0.2983, allocations: 161.6 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2983, allocations: 4 kB / 1.023 GB, free: 5.387 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.089e-05/0.2984, allocations: 8.547 kB / 1.023 GB, free: 5.379 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.2984, allocations: 4 kB / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.2984, allocations: 0 / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2984, allocations: 0 / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2984, allocations: 0 / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002343/0.2986, allocations: 183.4 kB / 1.023 GB, free: 5.18 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 2.779e-05/0.2987, allocations: 77.11 kB / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.2987, allocations: 0 / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.019e-05/0.2988, allocations: 7.938 kB / 1.023 GB, free: 5.078 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.578e-05/0.2988, allocations: 7.984 kB / 1.023 GB, free: 5.07 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.2988, allocations: 0 / 1.023 GB, free: 5.07 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.806e-05/0.2989, allocations: 91.27 kB / 1.023 GB, free: 4.98 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.523e-06/0.2989, allocations: 0 / 1.023 GB, free: 4.98 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002217/0.2991, allocations: 11.94 kB / 1.023 GB, free: 4.969 MB / 0.795 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.0001325/0.2992, allocations: 100 kB / 1.023 GB, free: 4.863 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002162/0.2995, allocations: 43.95 kB / 1.023 GB, free: 4.82 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2995, allocations: 0 / 1.023 GB, free: 4.82 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 9.485e-05/0.2996, allocations: 31.97 kB / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002436/0.2998, allocations: 7.875 kB / 1.023 GB, free: 4.781 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002662/0.3001, allocations: 121.5 kB / 1.024 GB, free: 4.637 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000199/0.3003, allocations: 0.6768 MB / 1.024 GB, free: 3.934 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.889e-05/0.3003, allocations: 4 kB / 1.024 GB, free: 3.93 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.472e-05/0.3004, allocations: 11.44 kB / 1.024 GB, free: 3.918 MB / 0.795 GB Notification: Performance of SimCode: time 2.51e-07/0.3004, allocations: 7.938 kB / 1.024 GB, free: 3.91 MB / 0.795 GB Notification: Performance of Templates: time 0.00268/0.3031, allocations: 0.697 MB / 1.025 GB, free: 3.219 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches