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.0009457/0.0009457, allocations: 94.66 kB / 15.06 MB, free: 1.086 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.001257/0.001257, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.521/1.521, allocations: 223.3 MB / 240 MB, free: 5.211 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.765/2.765, allocations: 437.7 MB / 0.7117 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003498, allocations: 8 kB / 0.8722 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7737/0.7741, allocations: 153.8 MB / 1.022 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001965/0.7762, allocations: 1.244 MB / 1.024 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0003755/0.7766, allocations: 104.6 kB / 1.024 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.472e-05/0.7766, allocations: 0 / 1.024 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.779e-05/0.7766, allocations: 4 kB / 1.024 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.144e-05/0.7767, allocations: 7.922 kB / 1.024 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002129/0.7769, allocations: 16 kB / 1.024 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.265e-05/0.777, allocations: 23.92 kB / 1.024 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.7771, allocations: 11.97 kB / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.278e-05/0.7772, allocations: 11.94 kB / 1.024 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.286e-05/0.7772, allocations: 15.98 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.7773, allocations: 0 / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.975e-05/0.7773, allocations: 11.98 kB / 1.024 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.315e-05/0.7774, allocations: 3.938 kB / 1.024 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.48e-05/0.7774, allocations: 29.7 kB / 1.024 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.7775, allocations: 19.95 kB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.7775, allocations: 0 / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.748e-06/0.7775, allocations: 7.984 kB / 1.024 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.7776, allocations: 0 / 1.024 GB, free: 14.53 MB / 0.7794 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.0005529/0.7781, allocations: 347.3 kB / 1.024 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.7782, allocations: 8.562 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.561e-05/0.7782, allocations: 4 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.7784, allocations: 166.9 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.088e-05/0.7784, allocations: 7.938 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.7784, allocations: 3.984 kB / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002195/0.7787, allocations: 81.55 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.7787, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.7787, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.7787, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000184/0.7789, allocations: 51.95 kB / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005268/0.7794, allocations: 264.9 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.7798, allocations: 66.47 kB / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.563e-05/0.7799, allocations: 32.91 kB / 1.025 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001319/0.78, allocations: 81.09 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.78, allocations: 38.56 kB / 1.025 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/0.7801, allocations: 0 / 1.025 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003905/0.7804, allocations: 109.6 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.7805, allocations: 55.41 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.807e-05/0.7806, allocations: 97.86 kB / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.7806, allocations: 25.7 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.859e-05/0.7807, allocations: 92.03 kB / 1.025 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.7807, allocations: 8 kB / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-06/0.7807, allocations: 3.938 kB / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.7808, allocations: 310.8 kB / 1.026 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.687e-05/0.7809, allocations: 23.98 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.865e-05/0.781, allocations: 27.97 kB / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.653e-05/0.7811, allocations: 27.98 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.7811, allocations: 3.953 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002048/0.7813, allocations: 81.56 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.7814, allocations: 11.98 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.7814, allocations: 0 / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.7814, allocations: 0 / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.712e-05/0.7815, allocations: 15.98 kB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.7815, allocations: 0 / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.506e-05/0.7816, allocations: 8 kB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.7816, allocations: 4 kB / 1.026 GB, free: 12.28 MB / 0.7794 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 (fac.y,rea2Int.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.344e-05/0.7817, allocations: 113.8 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.559e-05/0.7817, allocations: 11.88 kB / 1.026 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002777/0.782, allocations: 93.66 kB / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.782, allocations: 0 / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.782, allocations: 4.047 kB / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.782, allocations: 7.984 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.7822, allocations: 157.7 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.7822, allocations: 0 / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.489e-05/0.7823, allocations: 19.94 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.7823, allocations: 0 / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.7823, allocations: 0 / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.7823, allocations: 0 / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.7823, allocations: 0 / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002693/0.7826, allocations: 187.4 kB / 1.026 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.456e-05/0.7827, allocations: 89.03 kB / 1.026 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.7827, allocations: 7.953 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.977e-05/0.7828, allocations: 12 kB / 1.026 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.776e-05/0.7828, allocations: 3.984 kB / 1.026 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.7828, allocations: 4 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.695e-05/0.7829, allocations: 79.28 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7829, allocations: 0 / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002464/0.7831, allocations: 8 kB / 1.027 GB, free: 11.4 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.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000164/0.7833, allocations: 111.2 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002308/0.7835, allocations: 63.89 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.7836, allocations: 0 / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.038e-05/0.7837, allocations: 27.97 kB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.784, allocations: 11.69 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003094/0.7843, allocations: 116.6 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002987/0.7846, allocations: 0.677 MB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.615e-05/0.7846, allocations: 4 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.233e-05/0.7847, allocations: 11.44 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.7847, allocations: 0 / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of Templates: time 0.003574/0.7882, allocations: 0.5899 MB / 1.028 GB, free: 9.734 MB / 0.7794 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches