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.001146/0.001146, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 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.001341/0.001341, allocations: 173 kB / 23.49 MB, free: 1.062 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 0.9626/0.9626, allocations: 177.1 MB / 203.8 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] 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 2.193/2.193, allocations: 429.5 MB / 0.6736 GB, free: 4.059 MB / 0.6355 GB " [Timeout remaining time 177] 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.883e-06/1.883e-06, allocations: 0 / 0.8782 GB, free: 6.664 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.783e-05/3.971e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.66 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002622/0.002662, allocations: 1.574 MB / 0.8797 GB, free: 5.094 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0003738/0.003036, allocations: 125.1 kB / 0.8798 GB, free: 4.973 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.332e-05/0.003079, allocations: 0.9375 kB / 0.8798 GB, free: 4.973 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.797e-05/0.003107, allocations: 0 / 0.8798 GB, free: 4.973 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.748e-05/0.003155, allocations: 6.844 kB / 0.8799 GB, free: 4.969 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002583/0.003413, allocations: 27.91 kB / 0.8799 GB, free: 4.941 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.6e-05/0.003489, allocations: 29.67 kB / 0.8799 GB, free: 4.914 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.417e-05/0.003583, allocations: 9.016 kB / 0.8799 GB, free: 4.906 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 5.704e-05/0.00364, allocations: 15.98 kB / 0.8799 GB, free: 4.891 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.54e-05/0.003695, allocations: 15.92 kB / 0.8799 GB, free: 4.875 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.761e-05/0.003713, allocations: 5.125 kB / 0.88 GB, free: 4.871 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.603e-05/0.003779, allocations: 11.98 kB / 0.88 GB, free: 4.859 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.377e-05/0.003793, allocations: 7.984 kB / 0.88 GB, free: 4.852 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.126e-05/0.003814, allocations: 5.125 kB / 0.88 GB, free: 4.848 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.003952, allocations: 43.77 kB / 0.88 GB, free: 4.805 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.003956, allocations: 0 / 0.88 GB, free: 4.805 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.72e-07/0.003957, allocations: 1.031 kB / 0.88 GB, free: 4.805 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.003962, allocations: 0 / 0.88 GB, free: 4.805 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.0003932/0.004355, allocations: 365.4 kB / 0.8804 GB, free: 4.41 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.004395, allocations: 12.03 kB / 0.8804 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.42e-05/0.004439, allocations: 2.562 kB / 0.8804 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.829e-05/0.004537, allocations: 116.5 kB / 0.8805 GB, free: 4.258 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.004562, allocations: 4.359 kB / 0.8805 GB, free: 4.254 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.004572, allocations: 4.375 kB / 0.8805 GB, free: 4.25 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.004724, allocations: 59.97 kB / 0.8806 GB, free: 4.184 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.004732, allocations: 4.125 kB / 0.8806 GB, free: 4.18 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.004746, allocations: 4.375 kB / 0.8806 GB, free: 4.176 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.004755, allocations: 1.469 kB / 0.8806 GB, free: 4.176 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.248e-05/0.004797, allocations: 19.92 kB / 0.8806 GB, free: 4.156 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003022/0.005099, allocations: 252.5 kB / 0.8808 GB, free: 3.875 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001802/0.00528, allocations: 47.7 kB / 0.8809 GB, free: 3.816 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.67e-05/0.005306, allocations: 19.67 kB / 0.8809 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 8.072e-05/0.005387, allocations: 13.59 kB / 0.8809 GB, free: 3.781 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.005408, allocations: 33.39 kB / 0.8809 GB, free: 3.738 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.00541, allocations: 0 / 0.8809 GB, free: 3.738 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001697/0.005579, allocations: 57.58 kB / 0.881 GB, free: 3.676 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.005608, allocations: 54.56 kB / 0.881 GB, free: 3.613 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.424e-05/0.005682, allocations: 157.9 kB / 0.8812 GB, free: 3.441 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.005694, allocations: 37.64 kB / 0.8812 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.15e-05/0.005736, allocations: 126.9 kB / 0.8814 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.497e-05/0.005751, allocations: 3.953 kB / 0.8814 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.027e-05/0.005781, allocations: 27.36 kB / 0.8814 GB, free: 3.23 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.005893, allocations: 496.1 kB / 0.8819 GB, free: 2.734 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.777e-05/0.005911, allocations: 3.938 kB / 0.8819 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.356e-05/0.005924, allocations: 9.359 kB / 0.8819 GB, free: 2.723 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.649e-05/0.005961, allocations: 19.69 kB / 0.8819 GB, free: 2.699 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.005963, allocations: 0 / 0.8819 GB, free: 2.699 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.632e-05/0.006029, allocations: 46.19 kB / 0.8819 GB, free: 2.648 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.006043, allocations: 7.938 kB / 0.8819 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.006049, allocations: 1.562 kB / 0.8819 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.006061, allocations: 0 / 0.8819 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.965e-05/0.006111, allocations: 11.98 kB / 0.882 GB, free: 2.629 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.006116, allocations: 3.938 kB / 0.882 GB, free: 2.625 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.008e-05/0.006136, allocations: 5.062 kB / 0.882 GB, free: 2.621 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.608e-06/0.006141, allocations: 0 / 0.882 GB, free: 2.621 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 6.5e-05/0.006206, allocations: 165.1 kB / 0.8821 GB, free: 2.449 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.525e-05/0.006221, allocations: 3.953 kB / 0.8821 GB, free: 2.445 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.006323, allocations: 61.28 kB / 0.8822 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.006325, allocations: 0 / 0.8822 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.006329, allocations: 0 / 0.8822 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.006331, allocations: 0 / 0.8822 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.501e-05/0.006426, allocations: 116.6 kB / 0.8823 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.00643, allocations: 4 kB / 0.8823 GB, free: 2.223 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.933e-05/0.006459, allocations: 7.984 kB / 0.8823 GB, free: 2.215 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.006461, allocations: 0 / 0.8823 GB, free: 2.215 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.006469, allocations: 4 kB / 0.8823 GB, free: 2.211 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.006471, allocations: 7.938 kB / 0.8823 GB, free: 2.203 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.006473, allocations: 3.938 kB / 0.8823 GB, free: 2.199 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001211/0.006594, allocations: 187.9 kB / 0.8825 GB, free: 1.996 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.003e-06/0.006601, allocations: 8 kB / 0.8825 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.047e-05/0.006611, allocations: 0 / 0.8825 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.568e-05/0.006647, allocations: 7.922 kB / 0.8825 GB, free: 1.98 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.006694, allocations: 11.94 kB / 0.8825 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.006697, allocations: 0 / 0.8825 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.528e-05/0.006733, allocations: 127.2 kB / 0.8826 GB, free: 1.844 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.006733, allocations: 4 kB / 0.8826 GB, free: 1.84 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001567/0.006889, allocations: 19.89 kB / 0.8827 GB, free: 1.82 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.0001251/0.007014, allocations: 95.25 kB / 0.8828 GB, free: 1.719 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.725e-05/0.007102, allocations: 27.61 kB / 0.8828 GB, free: 1.688 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.007103, allocations: 0 / 0.8828 GB, free: 1.688 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.6e-05/0.007129, allocations: 19.67 kB / 0.8828 GB, free: 1.664 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001817/0.007311, allocations: 6.5 kB / 0.8828 GB, free: 1.66 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000268/0.007579, allocations: 122.3 kB / 0.8829 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.513e-05/0.007614, allocations: 59.34 kB / 0.883 GB, free: 1.434 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.194e-05/0.007636, allocations: 3.953 kB / 0.883 GB, free: 1.43 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.633e-05/0.007662, allocations: 12.5 kB / 0.883 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of SimCode: time 9.32e-07/0.007663, allocations: 0 / 0.883 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of Templates: time 0.002535/0.0102, allocations: 0.7538 MB / 0.8837 GB, free: 0.6758 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.3586729830130935]