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.0009717/0.0009717, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001618/0.001618, allocations: 177.4 kB / 23.36 MB, free: 1.129 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.022/1.022, allocations: 177.2 MB / 203.8 MB, free: 5.469 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.572/2.572, allocations: 438.8 MB / 0.6827 GB, free: 13.61 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.663e-06/1.663e-06, allocations: 0 / 0.8387 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.056e-05/2.222e-05, allocations: 2.312 kB / 0.8387 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001354/0.001377, allocations: 0.6651 MB / 0.8393 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.000215/0.001592, allocations: 51.8 kB / 0.8394 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.574e-05/0.001607, allocations: 0 / 0.8394 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 1.532e-05/0.001623, allocations: 0 / 0.8394 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.162e-06/0.001629, allocations: 0 / 0.8394 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001965/0.001825, allocations: 11.94 kB / 0.8394 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 4.311e-05/0.001868, allocations: 7.984 kB / 0.8394 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 3.611e-05/0.001905, allocations: 0 / 0.8394 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 3.154e-05/0.001936, allocations: 3.984 kB / 0.8394 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 1.82e-05/0.001954, allocations: 4 kB / 0.8394 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.035e-05/0.001965, allocations: 4 kB / 0.8394 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 9.319e-05/0.002058, allocations: 15.92 kB / 0.8394 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.021e-05/0.002068, allocations: 0 / 0.8394 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.101e-05/0.002079, allocations: 4 kB / 0.8394 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 7.675e-05/0.002156, allocations: 15.97 kB / 0.8394 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.043e-06/0.002158, allocations: 0 / 0.8394 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of FrontEnd: time 9.51e-07/0.002159, allocations: 0 / 0.8394 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.206e-06/0.002162, allocations: 0 / 0.8394 GB, free: 13.36 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.0001832/0.002345, allocations: 209.1 kB / 0.8396 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.002376, allocations: 12.62 kB / 0.8396 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.169e-05/0.002397, allocations: 4.922 kB / 0.8397 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.338e-05/0.002451, allocations: 109.7 kB / 0.8398 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.002461, allocations: 4.375 kB / 0.8398 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.689e-06/0.002465, allocations: 384 / 0.8398 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.186e-05/0.002527, allocations: 34.27 kB / 0.8398 GB, free: 12.94 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.002535, allocations: 192 / 0.8398 GB, free: 12.94 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.581e-06/0.00254, allocations: 384 / 0.8398 GB, free: 12.94 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.002544, allocations: 384 / 0.8398 GB, free: 12.94 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.675e-05/0.002561, allocations: 7.922 kB / 0.8398 GB, free: 12.93 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.309e-05/0.002634, allocations: 65 kB / 0.8399 GB, free: 12.85 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 3.658e-05/0.002671, allocations: 22.55 kB / 0.8399 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.096e-05/0.002682, allocations: 12.92 kB / 0.8399 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 9.538e-05/0.002777, allocations: 7.984 kB / 0.8399 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.002799, allocations: 34.56 kB / 0.8399 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 7.22e-07/0.0028, allocations: 0 / 0.8399 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 8.849e-05/0.002888, allocations: 33.7 kB / 0.84 GB, free: 12.71 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.606e-05/0.002914, allocations: 51.41 kB / 0.84 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.901e-05/0.002943, allocations: 93.84 kB / 0.8401 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 9.378e-06/0.002953, allocations: 29.64 kB / 0.8401 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.031e-05/0.002973, allocations: 84.14 kB / 0.8402 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.002991, allocations: 8.047 kB / 0.8402 GB, free: 12.42 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.051e-05/0.003011, allocations: 17.72 kB / 0.8402 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.719e-05/0.003089, allocations: 314.8 kB / 0.8405 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.531e-06/0.003094, allocations: 0 / 0.8405 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.422e-06/0.003101, allocations: 4 kB / 0.8405 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.753e-05/0.003128, allocations: 12.84 kB / 0.8406 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.00313, allocations: 0 / 0.8406 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.782e-05/0.003168, allocations: 33.7 kB / 0.8406 GB, free: 12.02 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/0.003178, allocations: 4 kB / 0.8406 GB, free: 12.02 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.003183, allocations: 0 / 0.8406 GB, free: 12.02 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.003195, allocations: 4.094 kB / 0.8406 GB, free: 12.02 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.118e-05/0.003236, allocations: 15.92 kB / 0.8406 GB, free: 12 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.676e-06/0.00324, allocations: 3.984 kB / 0.8406 GB, free: 12 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.606e-06/0.003249, allocations: 3.938 kB / 0.8406 GB, free: 11.99 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.357e-06/0.003252, allocations: 0 / 0.8406 GB, free: 11.99 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 4.994e-05/0.003302, allocations: 117.8 kB / 0.8407 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.948e-06/0.003306, allocations: 0 / 0.8407 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.582e-05/0.003362, allocations: 36.84 kB / 0.8408 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.003364, allocations: 4 kB / 0.8408 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.003365, allocations: 32 / 0.8408 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.003368, allocations: 4 kB / 0.8408 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.856e-05/0.003416, allocations: 61.84 kB / 0.8408 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.003418, allocations: 4 kB / 0.8408 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.686e-06/0.003427, allocations: 0 / 0.8408 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.003428, allocations: 0 / 0.8408 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-06/0.003434, allocations: 11.98 kB / 0.8409 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.92e-07/0.003434, allocations: 3.938 kB / 0.8409 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.003435, allocations: 0 / 0.8409 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.588e-05/0.003481, allocations: 61.06 kB / 0.8409 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-06/0.003486, allocations: 3.984 kB / 0.8409 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.312e-06/0.003492, allocations: 4.031 kB / 0.8409 GB, free: 11.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.45e-06/0.003497, allocations: 8 kB / 0.8409 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.034e-05/0.003518, allocations: 0 / 0.8409 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-06/0.00352, allocations: 0 / 0.8409 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 6.252e-06/0.003526, allocations: 4.859 kB / 0.8409 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.003526, allocations: 0 / 0.8409 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001003/0.003626, allocations: 4 kB / 0.8409 GB, free: 11.61 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 9.349e-05/0.00372, allocations: 88.41 kB / 0.841 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 4.379e-05/0.003763, allocations: 20.8 kB / 0.841 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.003765, allocations: 0 / 0.841 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.005e-05/0.003775, allocations: 8.859 kB / 0.8411 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.771e-05/0.003823, allocations: 7.938 kB / 0.8411 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001276/0.003951, allocations: 79.83 kB / 0.8411 GB, free: 11.37 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.813e-05/0.003979, allocations: 51.36 kB / 0.8412 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.163e-05/0.00399, allocations: 4 kB / 0.8412 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.455e-05/0.004015, allocations: 47.38 kB / 0.8412 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of SimCode: time 4.91e-07/0.004015, allocations: 3.938 kB / 0.8412 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of Templates: time 0.001713/0.005728, allocations: 384.6 kB / 0.8416 GB, free: 10.87 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 -s gbode -gbm=radauIIA3 -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.432085477281362]