Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009629/0.000963, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 173 kB / 16.92 MB, free: 6.652 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.398/1.398, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.785/2.785, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000325/0.0003251, allocations: 11.59 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2872, allocations: 159.6 MB / 1.059 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007701/0.288, allocations: 318.9 kB / 1.06 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003015/0.2883, allocations: 55.8 kB / 1.06 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.166e-05/0.2883, allocations: 3.938 kB / 1.06 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.202e-05/0.2884, allocations: 3.938 kB / 1.06 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.448e-06/0.2884, allocations: 0 / 1.06 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001933/0.2886, allocations: 8 kB / 1.06 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.038e-05/0.2886, allocations: 4 kB / 1.06 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.922e-05/0.2887, allocations: 11.97 kB / 1.06 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.556e-05/0.2887, allocations: 0 / 1.06 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.359e-05/0.2887, allocations: 0 / 1.06 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.03e-05/0.2888, allocations: 0 / 1.06 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.789e-05/0.2888, allocations: 8 kB / 1.06 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.167e-05/0.2888, allocations: 8 kB / 1.06 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.804e-05/0.2889, allocations: 25.7 kB / 1.06 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.217e-05/0.2889, allocations: 7.922 kB / 1.06 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.289, allocations: 0 / 1.06 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.804e-06/0.289, allocations: 4 kB / 1.06 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.456e-06/0.289, allocations: 0 / 1.06 GB, free: 4.484 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002754/0.2893, allocations: 307.5 kB / 1.06 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.2893, allocations: 16.03 kB / 1.06 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.844e-05/0.2893, allocations: 4.938 kB / 1.06 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.735e-05/0.2894, allocations: 164.4 kB / 1.06 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.2895, allocations: 8.375 kB / 1.06 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-06/0.2895, allocations: 384 / 1.06 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.87e-05/0.2896, allocations: 34.2 kB / 1.06 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.2896, allocations: 192 / 1.06 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.2896, allocations: 3.938 kB / 1.06 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2896, allocations: 0 / 1.06 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.246e-05/0.2897, allocations: 7.984 kB / 1.06 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001479/0.2898, allocations: 153.7 kB / 1.06 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.636e-05/0.2899, allocations: 22.61 kB / 1.06 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.407e-05/0.2899, allocations: 20.91 kB / 1.06 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001717/0.2901, allocations: 77.11 kB / 1.061 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.2901, allocations: 38.5 kB / 1.061 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.313e-06/0.2901, allocations: 0 / 1.061 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001441/0.2903, allocations: 45.62 kB / 1.061 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.2903, allocations: 51.53 kB / 1.061 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.355e-05/0.2904, allocations: 93.86 kB / 1.061 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.2904, allocations: 25.7 kB / 1.061 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.667e-05/0.2904, allocations: 80.14 kB / 1.061 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.68e-05/0.2904, allocations: 0 / 1.061 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.263e-05/0.2905, allocations: 13.72 kB / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.2906, allocations: 314.8 kB / 1.061 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-06/0.2906, allocations: 3.938 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.827e-05/0.2906, allocations: 11.92 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.083e-05/0.2907, allocations: 12.92 kB / 1.061 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2907, allocations: 0 / 1.061 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.337e-05/0.2907, allocations: 37.7 kB / 1.061 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.2907, allocations: 11.94 kB / 1.061 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.2908, allocations: 0 / 1.061 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.2908, allocations: 3.938 kB / 1.061 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.001e-05/0.2908, allocations: 3.984 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.2909, allocations: 4 kB / 1.061 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.669e-05/0.2909, allocations: 3.906 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-06/0.2909, allocations: 4.031 kB / 1.061 GB, free: 2.691 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.723e-05/0.291, allocations: 105.8 kB / 1.061 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.576e-06/0.291, allocations: 7.938 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.579e-05/0.2911, allocations: 45.03 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2911, allocations: 0 / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.2911, allocations: 4 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.2911, allocations: 0 / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.697e-05/0.2912, allocations: 153.6 kB / 1.062 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2912, allocations: 4.031 kB / 1.062 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.255e-05/0.2912, allocations: 4 kB / 1.062 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.2913, allocations: 0 / 1.062 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.2913, allocations: 3.938 kB / 1.062 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.2913, allocations: 0 / 1.062 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2913, allocations: 4 kB / 1.062 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.88e-05/0.2914, allocations: 69.05 kB / 1.062 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.99e-05/0.2914, allocations: 77.11 kB / 1.062 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.2914, allocations: 11.97 kB / 1.062 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.132e-05/0.2914, allocations: 0 / 1.062 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.28e-05/0.2915, allocations: 4 kB / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.2915, allocations: 3.984 kB / 1.062 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.278e-05/0.2915, allocations: 75.28 kB / 1.062 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2915, allocations: 0 / 1.062 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002078/0.2917, allocations: 4 kB / 1.062 GB, free: 2.027 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001541/0.2919, allocations: 107.2 kB / 1.062 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.674e-05/0.292, allocations: 12 kB / 1.062 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.292, allocations: 0 / 1.062 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.311e-05/0.292, allocations: 7.938 kB / 1.062 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.2921, allocations: 7.922 kB / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001975/0.2923, allocations: 111 kB / 1.062 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.2926, allocations: 0.6731 MB / 1.063 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.604e-05/0.2926, allocations: 15.36 kB / 1.063 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of SimCode: time 2.9e-07/0.2926, allocations: 128 / 1.063 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of Templates: time 0.001637/0.2942, allocations: 439.8 kB / 1.063 GB, free: 0.5977 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches