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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 84.73 kB / 19.44 MB, free: 360 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 157.7 kB / 22.75 MB, free: 1.684 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.496/1.496, allocations: 177.1 MB / 203.1 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.156/3.156, allocations: 429.6 MB / 0.673 GB, free: 3.887 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0.875 kB / 0.8776 GB, free: 6.496 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.487e-05/2.678e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.492 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003049/0.003076, allocations: 1.552 MB / 0.8791 GB, free: 4.953 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0003883/0.003464, allocations: 124.2 kB / 0.8792 GB, free: 4.832 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.644e-05/0.003501, allocations: 0.875 kB / 0.8792 GB, free: 4.832 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.702e-05/0.003528, allocations: 0 / 0.8792 GB, free: 4.832 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.855e-05/0.003576, allocations: 10.8 kB / 0.8792 GB, free: 4.824 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002377/0.003814, allocations: 23.92 kB / 0.8793 GB, free: 4.801 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.788e-05/0.003892, allocations: 37.48 kB / 0.8793 GB, free: 4.766 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 7.958e-05/0.003971, allocations: 1.125 kB / 0.8793 GB, free: 4.766 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 6.896e-05/0.00404, allocations: 19.98 kB / 0.8793 GB, free: 4.746 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.022e-05/0.004091, allocations: 15.92 kB / 0.8793 GB, free: 4.73 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.746e-05/0.004108, allocations: 5 kB / 0.8793 GB, free: 4.727 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.627e-05/0.004174, allocations: 15.97 kB / 0.8793 GB, free: 4.711 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.56e-05/0.00419, allocations: 4 kB / 0.8794 GB, free: 4.707 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.14e-05/0.004221, allocations: 12.7 kB / 0.8794 GB, free: 4.695 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.004346, allocations: 32.58 kB / 0.8794 GB, free: 4.664 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.004348, allocations: 0 / 0.8794 GB, free: 4.664 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.61e-07/0.004348, allocations: 3.438 kB / 0.8794 GB, free: 4.664 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.004352, allocations: 0 / 0.8794 GB, free: 4.664 MB / 0.8386 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.0004984/0.004851, allocations: 274.3 kB / 0.8797 GB, free: 4.363 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.004888, allocations: 12.03 kB / 0.8797 GB, free: 4.352 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.358e-05/0.004932, allocations: 0.9375 kB / 0.8797 GB, free: 4.352 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.005063, allocations: 109.8 kB / 0.8798 GB, free: 4.219 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.005083, allocations: 384 / 0.8798 GB, free: 4.219 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/0.005098, allocations: 8.312 kB / 0.8798 GB, free: 4.211 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002092/0.005307, allocations: 62.81 kB / 0.8798 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.005315, allocations: 1.25 kB / 0.8798 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.005325, allocations: 384 / 0.8798 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.005329, allocations: 384 / 0.8798 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002038/0.005533, allocations: 46.02 kB / 0.8799 GB, free: 4.102 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003894/0.005922, allocations: 204.5 kB / 0.8801 GB, free: 3.871 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000345/0.006267, allocations: 59.28 kB / 0.8801 GB, free: 3.805 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.006375, allocations: 32.89 kB / 0.8802 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 8.371e-05/0.006459, allocations: 4 kB / 0.8802 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.006495, allocations: 38.55 kB / 0.8802 GB, free: 3.719 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.006496, allocations: 0 / 0.8802 GB, free: 3.719 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0004308/0.006927, allocations: 93.58 kB / 0.8803 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.006975, allocations: 59.28 kB / 0.8804 GB, free: 3.551 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.755e-05/0.007073, allocations: 105.8 kB / 0.8805 GB, free: 3.438 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.007094, allocations: 33.7 kB / 0.8805 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.835e-05/0.007152, allocations: 80.14 kB / 0.8806 GB, free: 3.316 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.997e-05/0.007172, allocations: 7.953 kB / 0.8806 GB, free: 3.309 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.105e-05/0.007213, allocations: 17.7 kB / 0.8806 GB, free: 3.285 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001735/0.007386, allocations: 314.8 kB / 0.8809 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.36e-05/0.00748, allocations: 15.98 kB / 0.8809 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.507e-05/0.007575, allocations: 23.97 kB / 0.8809 GB, free: 2.93 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001887/0.007764, allocations: 48.81 kB / 0.881 GB, free: 2.879 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.007766, allocations: 0 / 0.881 GB, free: 2.879 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002535/0.008019, allocations: 73.59 kB / 0.881 GB, free: 2.801 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.008035, allocations: 7.938 kB / 0.8811 GB, free: 2.793 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.00804, allocations: 4 kB / 0.8811 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.008058, allocations: 0 / 0.8811 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.316e-05/0.008152, allocations: 15.98 kB / 0.8811 GB, free: 2.773 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.008156, allocations: 0 / 0.8811 GB, free: 2.773 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.389e-05/0.00822, allocations: 11.98 kB / 0.8811 GB, free: 2.762 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.008226, allocations: 0 / 0.8811 GB, free: 2.762 MB / 0.8386 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 9.412e-05/0.00832, allocations: 109.8 kB / 0.8812 GB, free: 2.645 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.933e-05/0.00835, allocations: 3.953 kB / 0.8812 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002888/0.008638, allocations: 93.27 kB / 0.8813 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.008641, allocations: 0 / 0.8813 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.008644, allocations: 0 / 0.8813 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.008647, allocations: 3.938 kB / 0.8813 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.008814, allocations: 109.3 kB / 0.8814 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.008815, allocations: 4 kB / 0.8814 GB, free: 2.395 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.065e-05/0.008896, allocations: 11.98 kB / 0.8814 GB, free: 2.383 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.008898, allocations: 0 / 0.8814 GB, free: 2.383 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.008906, allocations: 4 kB / 0.8814 GB, free: 2.379 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.00891, allocations: 3.938 kB / 0.8814 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.008911, allocations: 0.5625 kB / 0.8814 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/0.009212, allocations: 167.5 kB / 0.8816 GB, free: 2.195 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.173e-05/0.009223, allocations: 8.031 kB / 0.8816 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.009236, allocations: 7.938 kB / 0.8816 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.385e-05/0.00933, allocations: 11.92 kB / 0.8816 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.013e-05/0.00938, allocations: 4 kB / 0.8816 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-06/0.009389, allocations: 4 kB / 0.8816 GB, free: 2.16 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.985e-05/0.009439, allocations: 79.27 kB / 0.8817 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7e-08/0.009439, allocations: 3.938 kB / 0.8817 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002436/0.009682, allocations: 12 kB / 0.8817 GB, free: 2.066 MB / 0.8386 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.0001588/0.009841, allocations: 103.2 kB / 0.8818 GB, free: 1.957 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002395/0.01008, allocations: 43.95 kB / 0.8818 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01008, allocations: 0 / 0.8818 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.01019, allocations: 23.97 kB / 0.8819 GB, free: 1.891 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.01046, allocations: 10.5 kB / 0.8819 GB, free: 1.883 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003393/0.0108, allocations: 124.5 kB / 0.882 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.672e-05/0.01086, allocations: 59.36 kB / 0.882 GB, free: 1.656 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.417e-05/0.0109, allocations: 7.984 kB / 0.8821 GB, free: 1.648 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.795e-05/0.01094, allocations: 16.5 kB / 0.8821 GB, free: 1.633 MB / 0.8386 GB Notification: Performance of SimCode: time 6.81e-07/0.01094, allocations: 0 / 0.8821 GB, free: 1.633 MB / 0.8386 GB Notification: Performance of Templates: time 0.003697/0.01463, allocations: 0.7491 MB / 0.8828 GB, free: 0.8906 MB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.082395284087397]