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.002275/0.002275, allocations: 85.48 kB / 19.44 MB, free: 340 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.002758/0.002758, allocations: 173.2 kB / 22.76 MB, free: 1.656 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.553/1.553, allocations: 177.1 MB / 203.1 MB, free: 5.598 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.464/3.464, allocations: 429.5 MB / 0.6729 GB, free: 3.988 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.503e-06/1.503e-06, allocations: 0 / 0.8774 GB, free: 6.645 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.569e-05/2.719e-05, allocations: 4.984 kB / 0.8775 GB, free: 6.641 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00283/0.002857, allocations: 1.554 MB / 0.879 GB, free: 5.098 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.00037/0.003227, allocations: 124.2 kB / 0.8791 GB, free: 4.977 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.746e-05/0.003265, allocations: 1.062 kB / 0.8791 GB, free: 4.977 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.288e-05/0.003287, allocations: 0 / 0.8791 GB, free: 4.977 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.897e-05/0.003346, allocations: 10 kB / 0.8791 GB, free: 4.969 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002499/0.003596, allocations: 25.14 kB / 0.8791 GB, free: 4.945 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.488e-05/0.003671, allocations: 29.34 kB / 0.8791 GB, free: 4.918 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.214e-05/0.003753, allocations: 7.984 kB / 0.8792 GB, free: 4.91 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 6.009e-05/0.003813, allocations: 21.75 kB / 0.8792 GB, free: 4.891 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.824e-05/0.003862, allocations: 11.94 kB / 0.8792 GB, free: 4.879 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.788e-05/0.00388, allocations: 4 kB / 0.8792 GB, free: 4.875 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.183e-05/0.003941, allocations: 11.98 kB / 0.8792 GB, free: 4.863 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.392e-05/0.003955, allocations: 4 kB / 0.8792 GB, free: 4.859 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.764e-05/0.003983, allocations: 18.75 kB / 0.8792 GB, free: 4.844 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.004108, allocations: 39.83 kB / 0.8793 GB, free: 4.805 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.004111, allocations: 0 / 0.8793 GB, free: 4.805 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.72e-07/0.004111, allocations: 0 / 0.8793 GB, free: 4.805 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.606e-06/0.004115, allocations: 0 / 0.8793 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.0005172/0.004632, allocations: 364.2 kB / 0.8796 GB, free: 4.41 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.004668, allocations: 8.031 kB / 0.8796 GB, free: 4.402 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.428e-05/0.004712, allocations: 5.656 kB / 0.8796 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.004838, allocations: 116.5 kB / 0.8797 GB, free: 4.258 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.004859, allocations: 10.03 kB / 0.8797 GB, free: 4.25 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.516e-06/0.004868, allocations: 384 / 0.8797 GB, free: 4.25 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000158/0.005026, allocations: 46.25 kB / 0.8798 GB, free: 4.199 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.005037, allocations: 8.109 kB / 0.8798 GB, free: 4.191 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.005046, allocations: 4.875 kB / 0.8798 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.005051, allocations: 2.062 kB / 0.8798 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001359/0.005187, allocations: 31.92 kB / 0.8798 GB, free: 4.156 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004146/0.005601, allocations: 263.8 kB / 0.8801 GB, free: 3.863 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.005897, allocations: 60.38 kB / 0.8801 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.393e-05/0.005971, allocations: 23.67 kB / 0.8802 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 8.426e-05/0.006055, allocations: 8 kB / 0.8802 GB, free: 3.758 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.006089, allocations: 42.98 kB / 0.8802 GB, free: 3.707 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.00609, allocations: 0 / 0.8802 GB, free: 3.707 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0003259/0.006416, allocations: 77.59 kB / 0.8803 GB, free: 3.625 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.006462, allocations: 59.41 kB / 0.8803 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.006585, allocations: 165.8 kB / 0.8805 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/0.006606, allocations: 25.7 kB / 0.8805 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.307e-05/0.006689, allocations: 138.9 kB / 0.8807 GB, free: 3.203 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.006706, allocations: 3.953 kB / 0.8807 GB, free: 3.199 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.831e-05/0.006754, allocations: 23.38 kB / 0.8807 GB, free: 3.168 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002475/0.007001, allocations: 0.4883 MB / 0.8812 GB, free: 2.668 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.488e-05/0.007066, allocations: 15.98 kB / 0.8812 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.255e-05/0.007119, allocations: 11.98 kB / 0.8812 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/0.007238, allocations: 36.14 kB / 0.8812 GB, free: 2.602 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.00724, allocations: 4 kB / 0.8812 GB, free: 2.598 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000179/0.007419, allocations: 65.67 kB / 0.8813 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.007432, allocations: 7.938 kB / 0.8813 GB, free: 2.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.007436, allocations: 48 / 0.8813 GB, free: 2.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.007452, allocations: 3.984 kB / 0.8813 GB, free: 2.516 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.109e-05/0.007523, allocations: 15.92 kB / 0.8813 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.007528, allocations: 0 / 0.8813 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.08e-05/0.007568, allocations: 4 kB / 0.8813 GB, free: 2.496 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.007577, allocations: 4 kB / 0.8813 GB, free: 2.492 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 0.000113/0.00769, allocations: 160.6 kB / 0.8815 GB, free: 2.324 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.972e-05/0.00772, allocations: 7.953 kB / 0.8815 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002173/0.007937, allocations: 73.28 kB / 0.8816 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.007942, allocations: 4 kB / 0.8816 GB, free: 2.23 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.007945, allocations: 0 / 0.8816 GB, free: 2.23 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.007947, allocations: 0 / 0.8816 GB, free: 2.23 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.008107, allocations: 116.6 kB / 0.8817 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.00811, allocations: 4 kB / 0.8817 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.848e-05/0.008168, allocations: 4 kB / 0.8817 GB, free: 2.074 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.00817, allocations: 4 kB / 0.8817 GB, free: 2.07 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.008177, allocations: 0 / 0.8817 GB, free: 2.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.875e-05/0.008196, allocations: 11.86 kB / 0.8817 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.008197, allocations: 4 kB / 0.8817 GB, free: 2.055 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/0.008455, allocations: 207.9 kB / 0.8819 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.581e-06/0.008461, allocations: 0 / 0.8819 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.008472, allocations: 0 / 0.8819 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.249e-05/0.008545, allocations: 11.88 kB / 0.8819 GB, free: 1.82 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.204e-05/0.008597, allocations: 11.98 kB / 0.8819 GB, free: 1.809 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.008601, allocations: 0 / 0.8819 GB, free: 1.809 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.524e-05/0.008676, allocations: 135.2 kB / 0.882 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.008676, allocations: 0 / 0.882 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002199/0.008896, allocations: 8 kB / 0.8821 GB, free: 1.668 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.0001461/0.009042, allocations: 99.19 kB / 0.8822 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002027/0.009245, allocations: 47.59 kB / 0.8822 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.009247, allocations: 0 / 0.8822 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.492e-05/0.009332, allocations: 27.67 kB / 0.8822 GB, free: 1.48 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.009551, allocations: 6.5 kB / 0.8822 GB, free: 1.477 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003097/0.009861, allocations: 126.2 kB / 0.8823 GB, free: 1.324 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.671e-05/0.009928, allocations: 63.34 kB / 0.8824 GB, free: 1.242 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.691e-05/0.009955, allocations: 432 / 0.8824 GB, free: 1.242 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.267e-05/0.009987, allocations: 16.5 kB / 0.8824 GB, free: 1.227 MB / 0.8386 GB Notification: Performance of SimCode: time 4.31e-07/0.009988, allocations: 0 / 0.8824 GB, free: 1.227 MB / 0.8386 GB Notification: Performance of Templates: time 0.003603/0.01359, allocations: 0.764 MB / 0.8832 GB, free: 488 kB / 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","/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.468866251059808]