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.001406/0.001406, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001133/0.001133, allocations: 173 kB / 23.49 MB, free: 1.059 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 0.9756/0.9756, allocations: 177.1 MB / 203.8 MB, free: 5.617 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.067/2.067, allocations: 429.5 MB / 0.6736 GB, free: 4.051 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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.373e-06/1.373e-06, allocations: 0 / 0.8782 GB, free: 6.586 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.898e-05/3.036e-05, allocations: 3.078 kB / 0.8782 GB, free: 6.582 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001249/0.001279, allocations: 0.6195 MB / 0.8788 GB, free: 5.984 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0002348/0.001514, allocations: 40.75 kB / 0.8789 GB, free: 5.945 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.949e-05/0.001534, allocations: 0 / 0.8789 GB, free: 5.945 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 1.737e-05/0.001551, allocations: 0 / 0.8789 GB, free: 5.945 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.532e-06/0.001557, allocations: 0 / 0.8789 GB, free: 5.945 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002668/0.001824, allocations: 15.92 kB / 0.8789 GB, free: 5.93 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 4.759e-05/0.001872, allocations: 0.7656 kB / 0.8789 GB, free: 5.93 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 4.751e-05/0.001919, allocations: 7.984 kB / 0.8789 GB, free: 5.922 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 2.999e-05/0.001949, allocations: 0 / 0.8789 GB, free: 5.922 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 2.117e-05/0.001971, allocations: 9.531 kB / 0.8789 GB, free: 5.914 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.293e-05/0.001983, allocations: 0 / 0.8789 GB, free: 5.914 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.238e-05/0.002056, allocations: 17 kB / 0.8789 GB, free: 5.898 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.014e-05/0.002066, allocations: 0.6562 kB / 0.8789 GB, free: 5.898 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 1.447e-05/0.00208, allocations: 0 / 0.8789 GB, free: 5.898 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 8.646e-05/0.002167, allocations: 13.81 kB / 0.8789 GB, free: 5.887 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.002169, allocations: 0 / 0.8789 GB, free: 5.887 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.232e-06/0.00217, allocations: 0 / 0.8789 GB, free: 5.887 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.002174, allocations: 1.094 kB / 0.8789 GB, free: 5.887 MB / 0.8386 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.0002447/0.002419, allocations: 341 kB / 0.8793 GB, free: 5.516 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.002454, allocations: 8.031 kB / 0.8793 GB, free: 5.508 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.484e-05/0.002489, allocations: 2 kB / 0.8793 GB, free: 5.508 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.948e-05/0.002548, allocations: 112.6 kB / 0.8794 GB, free: 5.371 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.002559, allocations: 1.25 kB / 0.8794 GB, free: 5.371 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.805e-06/0.002567, allocations: 1.031 kB / 0.8794 GB, free: 5.371 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.495e-05/0.002651, allocations: 38.78 kB / 0.8794 GB, free: 5.328 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.002658, allocations: 192 / 0.8794 GB, free: 5.328 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.714e-06/0.002666, allocations: 1.719 kB / 0.8794 GB, free: 5.328 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.002672, allocations: 384 / 0.8794 GB, free: 5.328 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.627e-05/0.002698, allocations: 7.938 kB / 0.8794 GB, free: 5.32 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002346/0.002933, allocations: 117.6 kB / 0.8795 GB, free: 5.172 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.591e-05/0.002978, allocations: 28.77 kB / 0.8796 GB, free: 5.133 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.703e-05/0.002995, allocations: 11.67 kB / 0.8796 GB, free: 5.117 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001259/0.003121, allocations: 4.062 kB / 0.8796 GB, free: 5.113 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.766e-05/0.003139, allocations: 45.27 kB / 0.8796 GB, free: 5.059 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.00314, allocations: 1.312 kB / 0.8796 GB, free: 5.059 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001239/0.003264, allocations: 45.64 kB / 0.8797 GB, free: 5.008 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.664e-05/0.003291, allocations: 51.94 kB / 0.8797 GB, free: 4.945 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.815e-05/0.003329, allocations: 142.2 kB / 0.8799 GB, free: 4.793 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.634e-06/0.003336, allocations: 26.89 kB / 0.8799 GB, free: 4.762 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.409e-05/0.00336, allocations: 126.9 kB / 0.88 GB, free: 4.633 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.91e-05/0.00338, allocations: 11.94 kB / 0.88 GB, free: 4.621 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.267e-05/0.003402, allocations: 18.84 kB / 0.88 GB, free: 4.598 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.839e-05/0.003501, allocations: 0.4883 MB / 0.8805 GB, free: 4.098 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.142e-05/0.003512, allocations: 3.984 kB / 0.8805 GB, free: 4.094 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.123e-06/0.003519, allocations: 3.938 kB / 0.8805 GB, free: 4.09 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.643e-05/0.003556, allocations: 19.69 kB / 0.8805 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.003557, allocations: 0 / 0.8805 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.491e-05/0.003602, allocations: 33.7 kB / 0.8806 GB, free: 4.027 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.003617, allocations: 8.891 kB / 0.8806 GB, free: 4.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.003628, allocations: 4 kB / 0.8806 GB, free: 4.016 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.00364, allocations: 0 / 0.8806 GB, free: 4.016 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.53e-05/0.003696, allocations: 8.219 kB / 0.8806 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.003701, allocations: 0 / 0.8806 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.088e-05/0.003711, allocations: 3.938 kB / 0.8806 GB, free: 4.004 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.157e-06/0.003716, allocations: 0 / 0.8806 GB, free: 4.004 MB / 0.8386 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.196e-05/0.003778, allocations: 164.5 kB / 0.8807 GB, free: 3.832 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.687e-06/0.003781, allocations: 0 / 0.8807 GB, free: 3.832 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.747e-05/0.003859, allocations: 44.84 kB / 0.8808 GB, free: 3.781 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.003861, allocations: 0 / 0.8808 GB, free: 3.781 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.217e-06/0.003864, allocations: 0 / 0.8808 GB, free: 3.781 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.003867, allocations: 0 / 0.8808 GB, free: 3.781 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.24e-05/0.00393, allocations: 120.6 kB / 0.8809 GB, free: 3.629 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.003931, allocations: 3.984 kB / 0.8809 GB, free: 3.625 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.146e-05/0.003943, allocations: 4 kB / 0.8809 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.003945, allocations: 0 / 0.8809 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-06/0.00395, allocations: 0 / 0.8809 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.82e-07/0.00395, allocations: 0 / 0.8809 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.003952, allocations: 0 / 0.8809 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.686e-05/0.004009, allocations: 84.31 kB / 0.881 GB, free: 3.516 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.927e-06/0.004013, allocations: 3.938 kB / 0.881 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.816e-06/0.004021, allocations: 0 / 0.881 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.178e-06/0.004026, allocations: 0 / 0.881 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.864e-05/0.004054, allocations: 8.031 kB / 0.881 GB, free: 3.504 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-06/0.004056, allocations: 0 / 0.881 GB, free: 3.504 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.049e-05/0.004086, allocations: 119.9 kB / 0.8811 GB, free: 3.387 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.004086, allocations: 0 / 0.8811 GB, free: 3.387 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001214/0.004208, allocations: 4 kB / 0.8811 GB, free: 3.383 MB / 0.8386 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.0001217/0.004329, allocations: 111.2 kB / 0.8812 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 6.647e-05/0.004396, allocations: 11.69 kB / 0.8812 GB, free: 3.25 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.004397, allocations: 3.938 kB / 0.8812 GB, free: 3.246 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.299e-05/0.00441, allocations: 19.73 kB / 0.8813 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.656e-05/0.004507, allocations: 7.531 kB / 0.8813 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001823/0.004689, allocations: 89.36 kB / 0.8814 GB, free: 3.102 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.725e-05/0.004716, allocations: 51.36 kB / 0.8814 GB, free: 3.031 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.294e-05/0.004729, allocations: 7.984 kB / 0.8814 GB, free: 3.023 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.536e-05/0.004745, allocations: 8.5 kB / 0.8814 GB, free: 3.016 MB / 0.8386 GB Notification: Performance of SimCode: time 6.01e-07/0.004745, allocations: 0 / 0.8814 GB, free: 3.016 MB / 0.8386 GB Notification: Performance of Templates: time 0.001855/0.0066, allocations: 358.1 kB / 0.8818 GB, free: 2.672 MB / 0.8386 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.315730169881135]