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.0009665/0.0009665, allocations: 80.92 kB / 20.75 MB, free: 3.742 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.0009708/0.0009708, allocations: 161 kB / 24.17 MB, free: 332 kB / 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.009/1.009, allocations: 177.1 MB / 204.6 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.986/1.986, allocations: 377.9 MB / 0.624 GB, free: 8.375 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 0.7601 GB, free: 6.605 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.248e-05/2.404e-05, allocations: 2.312 kB / 0.7601 GB, free: 6.602 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.0027/0.002724, allocations: 1.636 MB / 0.7617 GB, free: 4.977 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0004439/0.003168, allocations: 125.4 kB / 0.7618 GB, free: 4.855 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.914e-05/0.003227, allocations: 4 kB / 0.7618 GB, free: 4.852 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 4.516e-05/0.003272, allocations: 3.938 kB / 0.7618 GB, free: 4.848 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.032e-05/0.003342, allocations: 2.734 kB / 0.7618 GB, free: 4.848 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002784/0.003621, allocations: 27.84 kB / 0.7618 GB, free: 4.82 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 8.91e-05/0.00371, allocations: 32.78 kB / 0.7618 GB, free: 4.793 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.003812, allocations: 12.84 kB / 0.7619 GB, free: 4.781 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 6.761e-05/0.00388, allocations: 16.86 kB / 0.7619 GB, free: 4.766 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 5.537e-05/0.003935, allocations: 14.22 kB / 0.7619 GB, free: 4.754 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/0.003956, allocations: 0.6562 kB / 0.7619 GB, free: 4.754 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 9.875e-05/0.004055, allocations: 15.97 kB / 0.7619 GB, free: 4.738 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.629e-05/0.004081, allocations: 9.812 kB / 0.7619 GB, free: 4.73 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 1.772e-05/0.004099, allocations: 9.297 kB / 0.7619 GB, free: 4.723 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.004214, allocations: 33.75 kB / 0.762 GB, free: 4.691 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.004217, allocations: 5.031 kB / 0.762 GB, free: 4.688 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.373e-06/0.004218, allocations: 0 / 0.762 GB, free: 4.688 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.028e-06/0.004222, allocations: 0 / 0.762 GB, free: 4.688 MB / 0.7136 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.0005802/0.004802, allocations: 230.2 kB / 0.7622 GB, free: 4.438 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.004839, allocations: 13.81 kB / 0.7622 GB, free: 4.426 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.785e-05/0.004866, allocations: 0.9375 kB / 0.7622 GB, free: 4.426 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.973e-05/0.004956, allocations: 121.6 kB / 0.7623 GB, free: 4.281 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.004973, allocations: 384 / 0.7623 GB, free: 4.281 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-06/0.004982, allocations: 9.25 kB / 0.7623 GB, free: 4.273 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001222/0.005104, allocations: 56.16 kB / 0.7624 GB, free: 4.211 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.005113, allocations: 192 / 0.7624 GB, free: 4.211 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-06/0.005119, allocations: 384 / 0.7624 GB, free: 4.211 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.005125, allocations: 5.125 kB / 0.7624 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.393e-05/0.005149, allocations: 7.938 kB / 0.7624 GB, free: 4.199 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002297/0.005378, allocations: 153.2 kB / 0.7625 GB, free: 4.035 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001575/0.005536, allocations: 43.31 kB / 0.7626 GB, free: 3.984 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.738e-05/0.005553, allocations: 5.516 kB / 0.7626 GB, free: 3.977 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 7.718e-05/0.00563, allocations: 12.5 kB / 0.7626 GB, free: 3.965 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.005656, allocations: 39.31 kB / 0.7626 GB, free: 3.918 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.763e-06/0.005658, allocations: 0 / 0.7626 GB, free: 3.918 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001391/0.005797, allocations: 54.89 kB / 0.7627 GB, free: 3.859 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.005831, allocations: 51.41 kB / 0.7627 GB, free: 3.797 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.372e-05/0.005885, allocations: 99.92 kB / 0.7628 GB, free: 3.688 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.005896, allocations: 30.55 kB / 0.7629 GB, free: 3.652 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.658e-05/0.005933, allocations: 88.09 kB / 0.7629 GB, free: 3.562 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.005953, allocations: 11.92 kB / 0.7629 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.399e-05/0.005987, allocations: 16.34 kB / 0.763 GB, free: 3.531 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.752e-05/0.006074, allocations: 310.8 kB / 0.7633 GB, free: 3.219 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.409e-05/0.006088, allocations: 4 kB / 0.7633 GB, free: 3.215 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.235e-05/0.006101, allocations: 7.984 kB / 0.7633 GB, free: 3.207 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.165e-05/0.006132, allocations: 16.84 kB / 0.7633 GB, free: 3.188 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.006134, allocations: 0.9844 kB / 0.7633 GB, free: 3.188 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.073e-05/0.006194, allocations: 44.06 kB / 0.7633 GB, free: 3.141 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.006208, allocations: 4 kB / 0.7633 GB, free: 3.137 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.006215, allocations: 3.984 kB / 0.7633 GB, free: 3.133 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.006229, allocations: 7.938 kB / 0.7633 GB, free: 3.125 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.624e-05/0.006285, allocations: 8 kB / 0.7634 GB, free: 3.117 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.445e-06/0.006288, allocations: 0 / 0.7634 GB, free: 3.117 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.028e-05/0.006308, allocations: 5.625 kB / 0.7634 GB, free: 3.113 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.79e-06/0.006314, allocations: 3.984 kB / 0.7634 GB, free: 3.109 MB / 0.7136 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 6.482e-05/0.006379, allocations: 110.6 kB / 0.7635 GB, free: 2.992 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.588e-05/0.006395, allocations: 0 / 0.7635 GB, free: 2.992 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.924e-05/0.006484, allocations: 50.39 kB / 0.7635 GB, free: 2.941 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.006487, allocations: 3.938 kB / 0.7635 GB, free: 2.938 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.00649, allocations: 0.9688 kB / 0.7635 GB, free: 2.938 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.006494, allocations: 7.938 kB / 0.7635 GB, free: 2.93 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.117e-05/0.006585, allocations: 61.91 kB / 0.7636 GB, free: 2.852 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.006586, allocations: 2.438 kB / 0.7636 GB, free: 2.852 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.493e-05/0.006621, allocations: 11.98 kB / 0.7636 GB, free: 2.84 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.006622, allocations: 0 / 0.7636 GB, free: 2.84 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.188e-06/0.006626, allocations: 2.75 kB / 0.7636 GB, free: 2.84 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.006627, allocations: 0 / 0.7636 GB, free: 2.84 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.006628, allocations: 0 / 0.7636 GB, free: 2.84 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.87e-05/0.006707, allocations: 136 kB / 0.7637 GB, free: 2.691 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.064e-05/0.006718, allocations: 15.95 kB / 0.7637 GB, free: 2.676 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.798e-06/0.006728, allocations: 4 kB / 0.7638 GB, free: 2.672 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.144e-05/0.006759, allocations: 0 / 0.7638 GB, free: 2.672 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.079e-05/0.0068, allocations: 10.95 kB / 0.7638 GB, free: 2.664 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.079e-06/0.006805, allocations: 7.938 kB / 0.7638 GB, free: 2.656 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.189e-05/0.006817, allocations: 12.84 kB / 0.7638 GB, free: 2.641 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6e-08/0.006817, allocations: 3.938 kB / 0.7638 GB, free: 2.637 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001375/0.006954, allocations: 12 kB / 0.7638 GB, free: 2.625 MB / 0.7136 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.0001237/0.007078, allocations: 83.17 kB / 0.7639 GB, free: 2.535 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 7.131e-05/0.007149, allocations: 20.8 kB / 0.7639 GB, free: 2.512 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.007153, allocations: 0 / 0.7639 GB, free: 2.512 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.126e-05/0.007174, allocations: 12.84 kB / 0.7639 GB, free: 2.496 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001374/0.007312, allocations: 7.938 kB / 0.7639 GB, free: 2.488 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002281/0.00754, allocations: 117.4 kB / 0.764 GB, free: 2.348 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.358e-05/0.007573, allocations: 59.28 kB / 0.7641 GB, free: 2.27 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.282e-05/0.007596, allocations: 5.312 kB / 0.7641 GB, free: 2.266 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.567e-05/0.007642, allocations: 55.97 kB / 0.7641 GB, free: 2.211 MB / 0.7136 GB Notification: Performance of SimCode: time 5.41e-07/0.007642, allocations: 0.7188 kB / 0.7641 GB, free: 2.211 MB / 0.7136 GB Notification: Performance of Templates: time 0.002536/0.01018, allocations: 0.7518 MB / 0.7649 GB, free: 1.492 MB / 0.7136 GB " [Timeout remaining time 300] 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_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: 4.955028483178467]