Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001874/0.001874, allocations: 79.7 kB / 20.23 MB, free: 4.184 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.001976/0.001976, allocations: 157.3 kB / 23.55 MB, free: 0.8711 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.544/1.544, allocations: 177.1 MB / 203.9 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.197/3.197, allocations: 377.8 MB / 0.6232 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 5.33e-06/5.33e-06, allocations: 5.094 kB / 0.8109 GB, free: 2.051 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.226e-05/3.759e-05, allocations: 6.25 kB / 0.8109 GB, free: 2.043 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002253/0.00229, allocations: 0.595 MB / 0.8114 GB, free: 1.473 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0002991/0.002589, allocations: 47.8 kB / 0.8115 GB, free: 1.426 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.893e-05/0.002608, allocations: 2.531 kB / 0.8115 GB, free: 1.426 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 1.244e-05/0.002621, allocations: 0 / 0.8115 GB, free: 1.426 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 5.821e-06/0.002626, allocations: 0 / 0.8115 GB, free: 1.426 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.002875, allocations: 11.94 kB / 0.8115 GB, free: 1.414 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 4.775e-05/0.002922, allocations: 8.641 kB / 0.8115 GB, free: 1.406 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 4.065e-05/0.002963, allocations: 4.922 kB / 0.8115 GB, free: 1.402 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 3.059e-05/0.002994, allocations: 0 / 0.8115 GB, free: 1.402 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 2.456e-05/0.003018, allocations: 8.625 kB / 0.8115 GB, free: 1.395 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.00303, allocations: 0 / 0.8115 GB, free: 1.395 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 8.182e-05/0.003111, allocations: 8.906 kB / 0.8115 GB, free: 1.387 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 1.318e-05/0.003125, allocations: 3.984 kB / 0.8115 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 1.39e-05/0.003138, allocations: 0 / 0.8115 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.003239, allocations: 16.58 kB / 0.8116 GB, free: 1.367 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.003245, allocations: 4.969 kB / 0.8116 GB, free: 1.363 MB / 0.7605 GB Notification: Performance of FrontEnd: time 7.71e-07/0.003245, allocations: 0 / 0.8116 GB, free: 1.363 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.00325, allocations: 0 / 0.8116 GB, free: 1.363 MB / 0.7605 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.0004753/0.003726, allocations: 337.2 kB / 0.8119 GB, free: 0.9961 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.003769, allocations: 8.031 kB / 0.8119 GB, free: 0.9883 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.942e-05/0.003818, allocations: 9.719 kB / 0.8119 GB, free: 0.9805 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.003943, allocations: 104.6 kB / 0.812 GB, free: 0.8516 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.003957, allocations: 1.625 kB / 0.812 GB, free: 0.8516 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.003969, allocations: 4.312 kB / 0.812 GB, free: 0.8477 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.004082, allocations: 34.25 kB / 0.812 GB, free: 0.8086 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.004092, allocations: 2.219 kB / 0.812 GB, free: 0.8086 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.004101, allocations: 384 / 0.812 GB, free: 0.8086 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.004109, allocations: 4.375 kB / 0.812 GB, free: 0.8047 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.538e-05/0.004154, allocations: 3.938 kB / 0.812 GB, free: 0.8008 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002187/0.004373, allocations: 112.6 kB / 0.8122 GB, free: 0.6562 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 8.953e-05/0.004463, allocations: 32.02 kB / 0.8122 GB, free: 0.6133 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.638e-05/0.004499, allocations: 19.69 kB / 0.8122 GB, free: 0.5898 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001391/0.004638, allocations: 5.625 kB / 0.8122 GB, free: 0.5859 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.184e-05/0.00469, allocations: 33.39 kB / 0.8122 GB, free: 0.543 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=2): time 1.302e-06/0.004691, allocations: 3.938 kB / 0.8122 GB, free: 0.5391 MB / 0.7605 GB Notification: Performance of matching and sorting (n=2): time 0.0001993/0.004891, allocations: 45.69 kB / 0.8123 GB, free: 500 kB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/0.004945, allocations: 52.94 kB / 0.8123 GB, free: 436 kB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.00506, allocations: 142.2 kB / 0.8125 GB, free: 280 kB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.005085, allocations: 25.7 kB / 0.8125 GB, free: 248 kB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 8.828e-05/0.005173, allocations: 126.9 kB / 0.8126 GB, free: 116 kB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.005196, allocations: 5.609 kB / 0.8126 GB, free: 112 kB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-05/0.005254, allocations: 27.36 kB / 0.8126 GB, free: 76 kB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0003698/0.005624, allocations: 496.1 kB / 0.8131 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.793e-05/0.005642, allocations: 7.938 kB / 0.8131 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.768e-06/0.005652, allocations: 0.9688 kB / 0.8131 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.166e-05/0.005703, allocations: 21.31 kB / 0.8132 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.005706, allocations: 0 / 0.8132 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.982e-05/0.005805, allocations: 37.69 kB / 0.8132 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.005821, allocations: 4 kB / 0.8132 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.005826, allocations: 0.5625 kB / 0.8132 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.005844, allocations: 4 kB / 0.8132 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.146e-05/0.005906, allocations: 0.6875 kB / 0.8132 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.00591, allocations: 0.5 kB / 0.8132 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.445e-05/0.005935, allocations: 11.88 kB / 0.8132 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-06/0.00594, allocations: 0.6875 kB / 0.8132 GB, free: 15.48 MB / 0.7761 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 0.0001582/0.006098, allocations: 157.6 kB / 0.8134 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.775e-05/0.006116, allocations: 7.984 kB / 0.8134 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.006231, allocations: 37.39 kB / 0.8134 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.006236, allocations: 5.375 kB / 0.8134 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.00624, allocations: 0 / 0.8134 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.006243, allocations: 0 / 0.8134 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001473/0.00639, allocations: 120.5 kB / 0.8135 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.006391, allocations: 1.219 kB / 0.8135 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.066e-05/0.006422, allocations: 4 kB / 0.8135 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.006424, allocations: 0 / 0.8135 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.006429, allocations: 0.5625 kB / 0.8135 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.006431, allocations: 4 kB / 0.8135 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.006432, allocations: 0.8125 kB / 0.8135 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000144/0.006576, allocations: 81.12 kB / 0.8136 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.967e-06/0.006585, allocations: 4 kB / 0.8136 GB, free: 15 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.168e-05/0.006597, allocations: 3.938 kB / 0.8136 GB, free: 15 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.567e-05/0.006612, allocations: 0.9375 kB / 0.8136 GB, free: 15 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.26e-05/0.006655, allocations: 7.969 kB / 0.8136 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.006662, allocations: 5.344 kB / 0.8136 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.501e-05/0.006737, allocations: 119.2 kB / 0.8137 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of sort global known variables: time 9e-08/0.006737, allocations: 0 / 0.8137 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003129/0.00705, allocations: 4 kB / 0.8137 GB, free: 14.87 MB / 0.7761 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.000195/0.007245, allocations: 104.4 kB / 0.8138 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001066/0.007351, allocations: 25.55 kB / 0.8139 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.007353, allocations: 0 / 0.8139 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.046e-05/0.007383, allocations: 11.69 kB / 0.8139 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001836/0.007567, allocations: 4 kB / 0.8139 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000282/0.007849, allocations: 90.2 kB / 0.814 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.305e-05/0.007932, allocations: 59.34 kB / 0.814 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.333e-05/0.007945, allocations: 3.438 kB / 0.814 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.869e-05/0.007974, allocations: 12.5 kB / 0.814 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of SimCode: time 4.41e-07/0.007974, allocations: 0 / 0.814 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of Templates: time 0.00379/0.01176, allocations: 351.8 kB / 0.8144 GB, free: 14.17 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.09472851397004]