Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.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.001423/0.001423, allocations: 80.77 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001765/0.001765, allocations: 164.5 kB / 22.46 MB, free: 5.375 MB / 14.72 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.445/1.445, allocations: 177.1 MB / 202.8 MB, free: 9.148 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.651/2.651, allocations: 359 MB / 0.6037 GB, free: 14.94 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 0.951 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.427e-05/2.58e-05, allocations: 2.281 kB / 0.951 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00161/0.001635, allocations: 0.6021 MB / 0.9516 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002402/0.001876, allocations: 47.75 kB / 0.9516 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.119e-05/0.001897, allocations: 0 / 0.9516 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.027e-05/0.001907, allocations: 0 / 0.9516 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.791e-06/0.001913, allocations: 0 / 0.9516 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002066/0.002119, allocations: 7.984 kB / 0.9517 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 3.499e-05/0.002154, allocations: 0 / 0.9517 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.163e-05/0.002196, allocations: 8 kB / 0.9517 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.634e-05/0.002222, allocations: 3.984 kB / 0.9517 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.196e-05/0.002244, allocations: 0 / 0.9517 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.002255, allocations: 4 kB / 0.9517 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.503e-05/0.00233, allocations: 11.98 kB / 0.9517 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.101e-05/0.002341, allocations: 4 kB / 0.9517 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.338e-05/0.002355, allocations: 0 / 0.9517 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 8.437e-05/0.002439, allocations: 15.91 kB / 0.9517 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.002441, allocations: 7.875 kB / 0.9517 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of FrontEnd: time 6.11e-07/0.002442, allocations: 0 / 0.9517 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.336e-06/0.002445, allocations: 0 / 0.9517 GB, free: 10.77 MB / 0.8575 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.0003098/0.002755, allocations: 242.4 kB / 0.9519 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.002788, allocations: 8.031 kB / 0.9519 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.045e-05/0.002819, allocations: 4.938 kB / 0.952 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.221e-05/0.002911, allocations: 105.8 kB / 0.9521 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.002922, allocations: 4.375 kB / 0.9521 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.663e-06/0.002929, allocations: 384 / 0.9521 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.945e-05/0.003028, allocations: 34.27 kB / 0.9521 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.003037, allocations: 192 / 0.9521 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.652e-06/0.003043, allocations: 384 / 0.9521 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.003047, allocations: 384 / 0.9521 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.597e-05/0.003083, allocations: 11.92 kB / 0.9521 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001353/0.003218, allocations: 93.33 kB / 0.9522 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.156e-05/0.00328, allocations: 38.53 kB / 0.9522 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.88e-05/0.003299, allocations: 4.859 kB / 0.9522 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001243/0.003423, allocations: 8.047 kB / 0.9522 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.003453, allocations: 30.56 kB / 0.9523 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.003454, allocations: 4 kB / 0.9523 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001563/0.00361, allocations: 45.59 kB / 0.9523 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.003655, allocations: 51.41 kB / 0.9524 GB, free: 9.961 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.282e-05/0.003708, allocations: 89.86 kB / 0.9525 GB, free: 9.863 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.003727, allocations: 29.69 kB / 0.9525 GB, free: 9.828 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.23e-05/0.003769, allocations: 80.14 kB / 0.9526 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.003794, allocations: 12.12 kB / 0.9526 GB, free: 9.734 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.419e-05/0.003828, allocations: 9.719 kB / 0.9526 GB, free: 9.719 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.00398, allocations: 318.8 kB / 0.9529 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.152e-05/0.003991, allocations: 0 / 0.9529 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.284e-06/0.003998, allocations: 0 / 0.9529 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.763e-05/0.004036, allocations: 24.78 kB / 0.9529 GB, free: 9.371 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.004038, allocations: 0 / 0.9529 GB, free: 9.371 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.904e-05/0.004107, allocations: 41.64 kB / 0.9529 GB, free: 9.324 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.004126, allocations: 4 kB / 0.953 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.00413, allocations: 4.094 kB / 0.953 GB, free: 9.316 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.004145, allocations: 4 kB / 0.953 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.154e-05/0.004196, allocations: 4 kB / 0.953 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.0042, allocations: 0 / 0.953 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.035e-05/0.00422, allocations: 7.922 kB / 0.953 GB, free: 9.301 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.388e-06/0.004225, allocations: 4 kB / 0.953 GB, free: 9.297 MB / 0.8575 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 8.233e-05/0.004307, allocations: 105.8 kB / 0.9531 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.306e-06/0.004316, allocations: 0 / 0.9531 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.539e-05/0.004411, allocations: 48.78 kB / 0.9531 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.004413, allocations: 0 / 0.9531 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.004416, allocations: 4.031 kB / 0.9531 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.004419, allocations: 4 kB / 0.9531 GB, free: 9.121 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.004532, allocations: 101.2 kB / 0.9532 GB, free: 8.992 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.004533, allocations: 0 / 0.9532 GB, free: 8.992 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.689e-05/0.00456, allocations: 7.938 kB / 0.9532 GB, free: 8.984 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.004562, allocations: 0 / 0.9532 GB, free: 8.984 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.201e-06/0.004568, allocations: 0 / 0.9532 GB, free: 8.984 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.00457, allocations: 0 / 0.9532 GB, free: 8.984 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.004574, allocations: 3.984 kB / 0.9532 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.305e-05/0.004667, allocations: 65.08 kB / 0.9533 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.619e-06/0.004671, allocations: 4.031 kB / 0.9533 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.232e-05/0.004684, allocations: 3.984 kB / 0.9533 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.345e-05/0.004697, allocations: 4 kB / 0.9533 GB, free: 8.887 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.501e-05/0.004722, allocations: 4 kB / 0.9533 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.004724, allocations: 0 / 0.9533 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.353e-05/0.004768, allocations: 75.28 kB / 0.9534 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of sort global known variables: time 8.1e-08/0.004768, allocations: 0 / 0.9534 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000188/0.004956, allocations: 4 kB / 0.9534 GB, free: 8.805 MB / 0.8575 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.0001514/0.005108, allocations: 111.1 kB / 0.9535 GB, free: 8.688 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 7.893e-05/0.005186, allocations: 19.92 kB / 0.9535 GB, free: 8.668 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.005188, allocations: 0 / 0.9535 GB, free: 8.668 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.816e-05/0.005206, allocations: 8 kB / 0.9535 GB, free: 8.66 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.005333, allocations: 0 / 0.9535 GB, free: 8.66 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002244/0.005557, allocations: 84.91 kB / 0.9536 GB, free: 8.551 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.228e-05/0.00561, allocations: 55.36 kB / 0.9537 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.166e-05/0.005621, allocations: 0 / 0.9537 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.034e-05/0.005642, allocations: 16.5 kB / 0.9537 GB, free: 8.461 MB / 0.8575 GB Notification: Performance of SimCode: time 4.01e-07/0.005642, allocations: 0 / 0.9537 GB, free: 8.461 MB / 0.8575 GB Notification: Performance of Templates: time 0.002685/0.008327, allocations: 349.3 kB / 0.954 GB, free: 8.121 MB / 0.8575 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.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: 7.501912426203489]