Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001075/0.001075, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.001271/0.001271, allocations: 173 kB / 23.36 MB, free: 1.133 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.047/1.047, allocations: 177.1 MB / 203.8 MB, free: 5.484 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.375/2.375, allocations: 438.8 MB / 0.6826 GB, free: 13.58 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 3.938 kB / 0.8386 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.267e-05/1.421e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0009968/0.001011, allocations: 0.6071 MB / 0.8392 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.000203/0.001214, allocations: 51.8 kB / 0.8393 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.603e-05/0.00123, allocations: 0 / 0.8393 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 1.245e-05/0.001242, allocations: 0 / 0.8393 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 5.931e-06/0.001248, allocations: 0 / 0.8393 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002004/0.001449, allocations: 8 kB / 0.8393 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 4.178e-05/0.001491, allocations: 7.984 kB / 0.8393 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 3.389e-05/0.001525, allocations: 3.984 kB / 0.8393 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 2.622e-05/0.001551, allocations: 11.94 kB / 0.8393 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 1.61e-05/0.001567, allocations: 0 / 0.8393 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.006e-05/0.001577, allocations: 0 / 0.8393 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 6.992e-05/0.001647, allocations: 15.92 kB / 0.8393 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 9.888e-06/0.001657, allocations: 0 / 0.8393 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 9.317e-06/0.001666, allocations: 0 / 0.8393 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 6.916e-05/0.001735, allocations: 19.92 kB / 0.8393 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.001737, allocations: 0 / 0.8393 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.102e-06/0.001738, allocations: 0 / 0.8393 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.246e-06/0.001741, allocations: 0 / 0.8393 GB, free: 13.42 MB / 0.8073 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.0001845/0.001926, allocations: 209.1 kB / 0.8395 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.001959, allocations: 16.62 kB / 0.8396 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.983e-05/0.001979, allocations: 0.9375 kB / 0.8396 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.107e-05/0.00203, allocations: 105.8 kB / 0.8397 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.002039, allocations: 384 / 0.8397 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.664e-06/0.002047, allocations: 4.375 kB / 0.8397 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.758e-05/0.002104, allocations: 30.27 kB / 0.8397 GB, free: 13 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-06/0.00211, allocations: 192 / 0.8397 GB, free: 13 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.02e-06/0.002115, allocations: 4.375 kB / 0.8397 GB, free: 13 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.00212, allocations: 384 / 0.8397 GB, free: 13 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.717e-05/0.002137, allocations: 7.875 kB / 0.8397 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.643e-05/0.002213, allocations: 72.97 kB / 0.8398 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.204e-05/0.002255, allocations: 18.61 kB / 0.8398 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.619e-05/0.002272, allocations: 16.84 kB / 0.8398 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/0.002372, allocations: 4 kB / 0.8398 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.002396, allocations: 34.56 kB / 0.8398 GB, free: 12.81 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 1.323e-06/0.002397, allocations: 0 / 0.8398 GB, free: 12.81 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 9.572e-05/0.002493, allocations: 41.62 kB / 0.8399 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.002525, allocations: 51.41 kB / 0.8399 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.267e-05/0.002557, allocations: 89.86 kB / 0.84 GB, free: 12.61 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 9.368e-06/0.002567, allocations: 29.83 kB / 0.84 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.172e-05/0.002589, allocations: 84.14 kB / 0.8401 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.002606, allocations: 3.938 kB / 0.8401 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/0.002633, allocations: 17.7 kB / 0.8401 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.234e-05/0.002715, allocations: 318.8 kB / 0.8405 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.835e-06/0.002723, allocations: 4 kB / 0.8405 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.993e-06/0.00273, allocations: 4 kB / 0.8405 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.74e-05/0.002757, allocations: 8.859 kB / 0.8405 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.002759, allocations: 0 / 0.8405 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.13e-05/0.002811, allocations: 41.69 kB / 0.8405 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.002823, allocations: 12.03 kB / 0.8405 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.002828, allocations: 0 / 0.8405 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.002842, allocations: 0 / 0.8405 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.363e-05/0.002886, allocations: 4 kB / 0.8405 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.695e-06/0.002888, allocations: 0 / 0.8405 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.158e-05/0.0029, allocations: 0 / 0.8405 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-06/0.002903, allocations: 0 / 0.8405 GB, free: 12.05 MB / 0.8073 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 6.183e-05/0.002965, allocations: 117.8 kB / 0.8406 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.01e-06/0.00297, allocations: 0 / 0.8406 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.485e-05/0.003035, allocations: 40.8 kB / 0.8407 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.003036, allocations: 0 / 0.8407 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.00304, allocations: 3.984 kB / 0.8407 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.003042, allocations: 4 kB / 0.8407 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.217e-05/0.003104, allocations: 65.84 kB / 0.8407 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.003105, allocations: 0 / 0.8407 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.324e-05/0.003118, allocations: 4 kB / 0.8407 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.00312, allocations: 0 / 0.8407 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-06/0.003124, allocations: 0 / 0.8407 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.003125, allocations: 0 / 0.8407 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.003127, allocations: 11.92 kB / 0.8408 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.866e-05/0.003186, allocations: 65.09 kB / 0.8408 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 4.349e-06/0.00319, allocations: 0 / 0.8408 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.634e-06/0.003198, allocations: 0 / 0.8408 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.293e-06/0.003205, allocations: 0 / 0.8408 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.609e-05/0.003231, allocations: 11.92 kB / 0.8408 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.003234, allocations: 0 / 0.8408 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 7.715e-06/0.003242, allocations: 4.859 kB / 0.8408 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of sort global known variables: time 9e-08/0.003242, allocations: 0 / 0.8408 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001607/0.003402, allocations: 4 kB / 0.8408 GB, free: 11.67 MB / 0.8073 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.0001227/0.003525, allocations: 92.45 kB / 0.8409 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 4.989e-05/0.003575, allocations: 12.84 kB / 0.8409 GB, free: 11.56 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.003577, allocations: 0 / 0.8409 GB, free: 11.56 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.341e-05/0.00359, allocations: 12.84 kB / 0.841 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.859e-05/0.003639, allocations: 7.938 kB / 0.841 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001603/0.003799, allocations: 87.77 kB / 0.841 GB, free: 11.42 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.96e-05/0.003829, allocations: 51.36 kB / 0.8411 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.122e-05/0.00384, allocations: 0 / 0.8411 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.454e-05/0.003875, allocations: 55.38 kB / 0.8411 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of SimCode: time 4.11e-07/0.003875, allocations: 4.125 kB / 0.8412 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of Templates: time 0.002011/0.005886, allocations: 367.4 kB / 0.8415 GB, free: 10.94 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_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.25328792212531]