Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001873/0.001873, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.002354/0.002354, allocations: 161 kB / 23.01 MB, free: 4.602 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.451/1.451, allocations: 177.2 MB / 203.4 MB, free: 8.902 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.816/2.816, allocations: 377.9 MB / 0.6228 GB, free: 12.61 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002298/0.002298, allocations: 59.91 kB / 0.9819 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8453/0.8476, allocations: 176.1 MB / 1.154 GB, free: 33.34 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002459/0.85, allocations: 1.544 MB / 1.155 GB, free: 32.28 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0003661/0.8504, allocations: 124.9 kB / 1.156 GB, free: 32.2 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.761e-05/0.8504, allocations: 0 / 1.156 GB, free: 32.2 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.004e-05/0.8505, allocations: 7.938 kB / 1.156 GB, free: 32.19 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 3.739e-05/0.8505, allocations: 0 / 1.156 GB, free: 32.19 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.8507, allocations: 26.91 kB / 1.156 GB, free: 32.18 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 6.951e-05/0.8508, allocations: 30.53 kB / 1.156 GB, free: 32.16 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.8509, allocations: 6.891 kB / 1.156 GB, free: 32.16 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 4.031e-05/0.851, allocations: 16.7 kB / 1.156 GB, free: 32.15 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 4.942e-05/0.851, allocations: 13 kB / 1.156 GB, free: 32.15 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.392e-05/0.851, allocations: 10.53 kB / 1.156 GB, free: 32.14 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 5.926e-05/0.8511, allocations: 15.55 kB / 1.156 GB, free: 32.14 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.398e-05/0.8511, allocations: 0 / 1.156 GB, free: 32.14 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.428e-05/0.8511, allocations: 21.8 kB / 1.156 GB, free: 32.12 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001091/0.8512, allocations: 30.2 kB / 1.156 GB, free: 32.11 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.8512, allocations: 2.812 kB / 1.156 GB, free: 32.11 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.873e-06/0.8512, allocations: 0 / 1.156 GB, free: 32.11 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.8512, allocations: 0 / 1.156 GB, free: 32.11 MB / 1.076 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.0003989/0.8516, allocations: 268.4 kB / 1.156 GB, free: 31.84 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.8517, allocations: 9.75 kB / 1.156 GB, free: 31.84 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.025e-05/0.8517, allocations: 3.344 kB / 1.156 GB, free: 31.84 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.833e-05/0.8518, allocations: 112.4 kB / 1.156 GB, free: 31.71 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.033e-05/0.8518, allocations: 384 / 1.156 GB, free: 31.71 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.8518, allocations: 10.62 kB / 1.156 GB, free: 31.7 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/0.852, allocations: 60.7 kB / 1.156 GB, free: 31.66 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.852, allocations: 192 / 1.156 GB, free: 31.66 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.852, allocations: 3.938 kB / 1.156 GB, free: 31.66 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.852, allocations: 0 / 1.156 GB, free: 31.66 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.8522, allocations: 36.67 kB / 1.156 GB, free: 31.66 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002732/0.8525, allocations: 202.5 kB / 1.156 GB, free: 31.45 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.8528, allocations: 65.2 kB / 1.156 GB, free: 31.41 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.252e-05/0.8529, allocations: 30.3 kB / 1.156 GB, free: 31.39 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 8.004e-05/0.853, allocations: 2.594 kB / 1.156 GB, free: 31.39 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.418e-05/0.853, allocations: 33.28 kB / 1.157 GB, free: 31.36 MB / 1.076 GB Notification: Performance of pre-optimization done (n=3): time 1.193e-06/0.853, allocations: 0 / 1.157 GB, free: 31.36 MB / 1.076 GB Notification: Performance of matching and sorting (n=3): time 0.0003641/0.8533, allocations: 93.14 kB / 1.157 GB, free: 31.31 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.11e-05/0.8534, allocations: 55.34 kB / 1.157 GB, free: 31.25 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.015e-05/0.8534, allocations: 107.2 kB / 1.157 GB, free: 31.14 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 7.724e-06/0.8534, allocations: 25.7 kB / 1.157 GB, free: 31.11 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.872e-05/0.8534, allocations: 90.92 kB / 1.157 GB, free: 31.02 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.476e-05/0.8535, allocations: 7.891 kB / 1.157 GB, free: 31.01 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.999e-05/0.8535, allocations: 22.81 kB / 1.157 GB, free: 30.99 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.583e-05/0.8535, allocations: 310.8 kB / 1.157 GB, free: 30.68 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.865e-05/0.8536, allocations: 21.94 kB / 1.157 GB, free: 30.68 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.853e-05/0.8537, allocations: 30.3 kB / 1.157 GB, free: 30.66 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.8539, allocations: 42.55 kB / 1.157 GB, free: 30.65 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.8539, allocations: 0 / 1.157 GB, free: 30.65 MB / 1.076 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000208/0.8541, allocations: 83.88 kB / 1.157 GB, free: 30.6 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.8541, allocations: 2.75 kB / 1.157 GB, free: 30.6 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.8541, allocations: 2.812 kB / 1.157 GB, free: 30.6 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.8541, allocations: 0 / 1.157 GB, free: 30.6 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.648e-05/0.8542, allocations: 9.203 kB / 1.157 GB, free: 30.6 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.8542, allocations: 6.906 kB / 1.157 GB, free: 30.6 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.589e-05/0.8542, allocations: 10.47 kB / 1.157 GB, free: 30.59 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.8543, allocations: 0 / 1.157 GB, free: 30.59 MB / 1.076 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 5.341e-05/0.8543, allocations: 113.2 kB / 1.157 GB, free: 30.48 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.8543, allocations: 7.031 kB / 1.158 GB, free: 30.47 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002414/0.8546, allocations: 81.3 kB / 1.158 GB, free: 30.42 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.8546, allocations: 2.938 kB / 1.158 GB, free: 30.42 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.8546, allocations: 3.938 kB / 1.158 GB, free: 30.41 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.8546, allocations: 4 kB / 1.158 GB, free: 30.41 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.821e-05/0.8547, allocations: 110.7 kB / 1.158 GB, free: 30.28 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.8547, allocations: 0 / 1.158 GB, free: 30.28 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.221e-05/0.8548, allocations: 15.83 kB / 1.158 GB, free: 30.28 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.8548, allocations: 0 / 1.158 GB, free: 30.28 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.8548, allocations: 7.234 kB / 1.158 GB, free: 30.27 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.8548, allocations: 0 / 1.158 GB, free: 30.27 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.8548, allocations: 0 / 1.158 GB, free: 30.27 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002204/0.855, allocations: 167.2 kB / 1.158 GB, free: 30.14 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 7.163e-06/0.855, allocations: 7.938 kB / 1.158 GB, free: 30.13 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.855, allocations: 0 / 1.158 GB, free: 30.13 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.725e-05/0.8551, allocations: 8.859 kB / 1.158 GB, free: 30.13 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.161e-05/0.8551, allocations: 10.31 kB / 1.158 GB, free: 30.12 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.8551, allocations: 0 / 1.158 GB, free: 30.12 MB / 1.076 GB Notification: Performance of sorting global known variables: time 2.198e-05/0.8552, allocations: 81.53 kB / 1.158 GB, free: 30.05 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.8552, allocations: 3.938 kB / 1.158 GB, free: 30.05 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002286/0.8554, allocations: 8.188 kB / 1.158 GB, free: 30.05 MB / 1.076 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.0001349/0.8555, allocations: 104 kB / 1.158 GB, free: 29.95 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000232/0.8558, allocations: 46.06 kB / 1.158 GB, free: 29.94 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.8558, allocations: 0 / 1.158 GB, free: 29.94 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 9.192e-05/0.8559, allocations: 28.77 kB / 1.158 GB, free: 29.93 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.8561, allocations: 4.906 kB / 1.158 GB, free: 29.93 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002781/0.8564, allocations: 125.8 kB / 1.158 GB, free: 29.81 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.906e-05/0.8564, allocations: 60.53 kB / 1.158 GB, free: 29.74 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 2.722e-05/0.8565, allocations: 7.094 kB / 1.158 GB, free: 29.74 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.547e-05/0.8565, allocations: 11.19 kB / 1.158 GB, free: 29.73 MB / 1.076 GB Notification: Performance of SimCode: time 3.01e-07/0.8565, allocations: 0 / 1.158 GB, free: 29.73 MB / 1.076 GB Notification: Performance of Templates: time 0.003131/0.8596, allocations: 0.7256 MB / 1.159 GB, free: 29.64 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.518766414024867]