Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.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.001744/0.001744, allocations: 85.48 kB / 19.44 MB, free: 344 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.001936/0.001936, allocations: 173.6 kB / 22.76 MB, free: 1.664 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.562/1.562, allocations: 177.1 MB / 203.1 MB, free: 5.625 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.396/3.396, allocations: 429.5 MB / 0.6729 GB, free: 4.016 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.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0.875 kB / 0.8775 GB, free: 6.664 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.1e-05/2.237e-05, allocations: 2.312 kB / 0.8775 GB, free: 6.66 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002813/0.002836, allocations: 1.565 MB / 0.879 GB, free: 5.105 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.000384/0.00322, allocations: 136.7 kB / 0.8791 GB, free: 4.973 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.675e-05/0.003257, allocations: 0.5312 kB / 0.8791 GB, free: 4.973 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.408e-05/0.003281, allocations: 4.844 kB / 0.8791 GB, free: 4.969 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.491e-05/0.003336, allocations: 5.203 kB / 0.8791 GB, free: 4.965 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002924/0.003628, allocations: 39.83 kB / 0.8792 GB, free: 4.926 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.557e-05/0.003703, allocations: 39.38 kB / 0.8792 GB, free: 4.891 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.254e-05/0.003786, allocations: 8 kB / 0.8792 GB, free: 4.883 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 4.975e-05/0.003836, allocations: 21.11 kB / 0.8792 GB, free: 4.863 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.94e-05/0.003885, allocations: 19.97 kB / 0.8792 GB, free: 4.844 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.824e-05/0.003903, allocations: 4 kB / 0.8792 GB, free: 4.84 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.281e-05/0.003986, allocations: 17.06 kB / 0.8793 GB, free: 4.824 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.83e-05/0.004005, allocations: 11.98 kB / 0.8793 GB, free: 4.812 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.683e-05/0.004031, allocations: 11.94 kB / 0.8793 GB, free: 4.801 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001451/0.004176, allocations: 52.52 kB / 0.8793 GB, free: 4.75 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.004179, allocations: 3.938 kB / 0.8793 GB, free: 4.746 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.31e-07/0.004179, allocations: 2.125 kB / 0.8793 GB, free: 4.746 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.497e-06/0.004183, allocations: 0 / 0.8793 GB, free: 4.746 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000499/0.004682, allocations: 372.2 kB / 0.8797 GB, free: 4.344 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.004719, allocations: 12.03 kB / 0.8797 GB, free: 4.332 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.672e-05/0.004766, allocations: 8.891 kB / 0.8797 GB, free: 4.324 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.004883, allocations: 120 kB / 0.8798 GB, free: 4.184 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.004907, allocations: 4.375 kB / 0.8798 GB, free: 4.18 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.128e-06/0.004917, allocations: 384 / 0.8798 GB, free: 4.18 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.005093, allocations: 58.23 kB / 0.8799 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.005102, allocations: 192 / 0.8799 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.005111, allocations: 384 / 0.8799 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.005115, allocations: 384 / 0.8799 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001453/0.00526, allocations: 39.86 kB / 0.8799 GB, free: 4.078 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004387/0.005699, allocations: 280.6 kB / 0.8802 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003038/0.006003, allocations: 51.11 kB / 0.8802 GB, free: 3.707 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.746e-05/0.00608, allocations: 28.8 kB / 0.8803 GB, free: 3.676 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001167/0.006197, allocations: 19.92 kB / 0.8803 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.006229, allocations: 38.42 kB / 0.8803 GB, free: 3.609 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.00623, allocations: 4 kB / 0.8803 GB, free: 3.605 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0003154/0.006545, allocations: 74.62 kB / 0.8804 GB, free: 3.527 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.006587, allocations: 51.41 kB / 0.8805 GB, free: 3.465 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001365/0.006724, allocations: 169.9 kB / 0.8806 GB, free: 3.281 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.006746, allocations: 30.45 kB / 0.8806 GB, free: 3.246 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.17e-05/0.006828, allocations: 134.8 kB / 0.8808 GB, free: 3.109 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.413e-05/0.006842, allocations: 4.688 kB / 0.8808 GB, free: 3.105 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.499e-05/0.006887, allocations: 30.81 kB / 0.8808 GB, free: 3.07 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002552/0.007142, allocations: 496.1 kB / 0.8813 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.651e-05/0.007208, allocations: 19.88 kB / 0.8813 GB, free: 2.555 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.292e-05/0.007271, allocations: 19.98 kB / 0.8813 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001158/0.007387, allocations: 31.67 kB / 0.8814 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.007389, allocations: 0 / 0.8814 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001766/0.007565, allocations: 69.61 kB / 0.8814 GB, free: 2.426 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.007578, allocations: 4 kB / 0.8814 GB, free: 2.422 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.007582, allocations: 0.5938 kB / 0.8814 GB, free: 2.422 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.007594, allocations: 1.359 kB / 0.8814 GB, free: 2.422 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.965e-05/0.007664, allocations: 11.98 kB / 0.8814 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.137e-06/0.007668, allocations: 0 / 0.8814 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.091e-05/0.007709, allocations: 8.562 kB / 0.8814 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.007715, allocations: 1.781 kB / 0.8814 GB, free: 2.402 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 (falFac.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001201/0.007835, allocations: 168.5 kB / 0.8816 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.899e-05/0.007874, allocations: 7.891 kB / 0.8816 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002156/0.00809, allocations: 73.36 kB / 0.8817 GB, free: 2.137 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.008094, allocations: 4 kB / 0.8817 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.008097, allocations: 0 / 0.8817 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.0081, allocations: 0 / 0.8817 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002038/0.008303, allocations: 128.6 kB / 0.8818 GB, free: 1.973 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.008305, allocations: 0 / 0.8818 GB, free: 1.973 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.418e-05/0.008369, allocations: 11.98 kB / 0.8818 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.00837, allocations: 0 / 0.8818 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.008382, allocations: 3.938 kB / 0.8818 GB, free: 1.957 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.008383, allocations: 0 / 0.8818 GB, free: 1.957 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.008384, allocations: 0 / 0.8818 GB, free: 1.957 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002571/0.008641, allocations: 219.9 kB / 0.882 GB, free: 1.723 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.236e-06/0.008649, allocations: 3.953 kB / 0.882 GB, free: 1.719 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.008667, allocations: 7.922 kB / 0.882 GB, free: 1.711 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.75e-05/0.008734, allocations: 4 kB / 0.882 GB, free: 1.707 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.841e-05/0.008792, allocations: 7.984 kB / 0.8821 GB, free: 1.699 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-06/0.0088, allocations: 4 kB / 0.8821 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.574e-05/0.008875, allocations: 127.2 kB / 0.8822 GB, free: 1.57 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.008875, allocations: 0 / 0.8822 GB, free: 1.57 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002176/0.009093, allocations: 11.94 kB / 0.8822 GB, free: 1.559 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 (rea2Int.y,falFac.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.0001554/0.009248, allocations: 107.2 kB / 0.8823 GB, free: 1.445 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001911/0.00944, allocations: 47.55 kB / 0.8823 GB, free: 1.395 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.009441, allocations: 0 / 0.8823 GB, free: 1.395 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.816e-05/0.009529, allocations: 27.67 kB / 0.8824 GB, free: 1.363 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.009761, allocations: 7.984 kB / 0.8824 GB, free: 1.355 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003348/0.0101, allocations: 138.2 kB / 0.8825 GB, free: 1.191 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.894e-05/0.01016, allocations: 63.34 kB / 0.8826 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.714e-05/0.01019, allocations: 4 kB / 0.8826 GB, free: 1.105 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.396e-05/0.01023, allocations: 12.5 kB / 0.8826 GB, free: 1.094 MB / 0.8386 GB Notification: Performance of SimCode: time 4.6e-07/0.01023, allocations: 0 / 0.8826 GB, free: 1.094 MB / 0.8386 GB Notification: Performance of Templates: time 0.003731/0.01396, allocations: 0.7919 MB / 0.8834 GB, free: 324 kB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.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.503832848044112]