Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009537/0.0009537, allocations: 80.8 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.00129/0.00129, allocations: 165 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 0.977/0.977, allocations: 177.1 MB / 204.6 MB, free: 5.48 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.865/1.865, allocations: 377.9 MB / 0.624 GB, free: 8.367 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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_12_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_12_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0.7656 kB / 0.7601 GB, free: 6.59 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.481e-05/2.64e-05, allocations: 6.25 kB / 0.7601 GB, free: 6.582 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002093/0.00212, allocations: 0.6218 MB / 0.7607 GB, free: 5.98 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.000296/0.002415, allocations: 49.44 kB / 0.7607 GB, free: 5.934 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.818e-05/0.002434, allocations: 0 / 0.7607 GB, free: 5.934 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 1.8e-05/0.002452, allocations: 0.875 kB / 0.7607 GB, free: 5.934 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.624e-06/0.002459, allocations: 4 kB / 0.7607 GB, free: 5.93 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.002724, allocations: 9.156 kB / 0.7607 GB, free: 5.922 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 4.638e-05/0.00277, allocations: 0 / 0.7607 GB, free: 5.922 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 4.344e-05/0.002813, allocations: 5.766 kB / 0.7607 GB, free: 5.918 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 3.308e-05/0.002846, allocations: 8.656 kB / 0.7607 GB, free: 5.91 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 2.566e-05/0.002872, allocations: 3.984 kB / 0.7608 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.242e-05/0.002885, allocations: 0 / 0.7608 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 8.572e-05/0.00297, allocations: 13.34 kB / 0.7608 GB, free: 5.895 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 1.337e-05/0.002984, allocations: 5.125 kB / 0.7608 GB, free: 5.891 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 1.183e-05/0.002995, allocations: 0 / 0.7608 GB, free: 5.891 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 8.818e-05/0.003084, allocations: 11.98 kB / 0.7608 GB, free: 5.879 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.003086, allocations: 0.9688 kB / 0.7608 GB, free: 5.879 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.132e-06/0.003087, allocations: 0.6562 kB / 0.7608 GB, free: 5.879 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.003091, allocations: 0.9688 kB / 0.7608 GB, free: 5.879 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002506/0.003342, allocations: 212.8 kB / 0.761 GB, free: 5.645 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.003382, allocations: 8.031 kB / 0.761 GB, free: 5.637 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.678e-05/0.003409, allocations: 2.688 kB / 0.761 GB, free: 5.637 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.03e-05/0.003479, allocations: 113.8 kB / 0.7611 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.003491, allocations: 0.875 kB / 0.7611 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.729e-06/0.0035, allocations: 1.125 kB / 0.7611 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.358e-05/0.003584, allocations: 34.2 kB / 0.7611 GB, free: 5.461 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.003592, allocations: 1.219 kB / 0.7611 GB, free: 5.461 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-06/0.0036, allocations: 384 / 0.7611 GB, free: 5.461 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.003606, allocations: 384 / 0.7611 GB, free: 5.461 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.217e-05/0.003628, allocations: 9.609 kB / 0.7612 GB, free: 5.453 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.705e-05/0.003725, allocations: 58.84 kB / 0.7612 GB, free: 5.383 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.859e-05/0.003774, allocations: 22.58 kB / 0.7612 GB, free: 5.352 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.364e-05/0.003788, allocations: 4.859 kB / 0.7612 GB, free: 5.344 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001195/0.003907, allocations: 8.062 kB / 0.7612 GB, free: 5.336 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.003934, allocations: 35.72 kB / 0.7613 GB, free: 5.293 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.003935, allocations: 4 kB / 0.7613 GB, free: 5.289 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2): time 0.0001108/0.004046, allocations: 33.69 kB / 0.7613 GB, free: 5.25 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.004083, allocations: 52.16 kB / 0.7614 GB, free: 5.188 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.892e-05/0.004122, allocations: 98.72 kB / 0.7615 GB, free: 5.082 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.161e-05/0.004134, allocations: 26.55 kB / 0.7615 GB, free: 5.051 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.47e-05/0.004158, allocations: 80.14 kB / 0.7616 GB, free: 4.969 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.004178, allocations: 4.594 kB / 0.7616 GB, free: 4.965 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.642e-05/0.004215, allocations: 17.7 kB / 0.7616 GB, free: 4.941 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.28e-05/0.004308, allocations: 320.6 kB / 0.7619 GB, free: 4.621 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.385e-06/0.004316, allocations: 4 kB / 0.7619 GB, free: 4.617 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.422e-06/0.004322, allocations: 0 / 0.7619 GB, free: 4.617 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.938e-05/0.004352, allocations: 14.53 kB / 0.7619 GB, free: 4.602 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.004354, allocations: 0 / 0.7619 GB, free: 4.602 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.311e-05/0.004417, allocations: 37.69 kB / 0.7619 GB, free: 4.559 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.004428, allocations: 4.531 kB / 0.7619 GB, free: 4.555 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.004432, allocations: 0.875 kB / 0.7619 GB, free: 4.555 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.004445, allocations: 1.531 kB / 0.7619 GB, free: 4.555 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.721e-05/0.004492, allocations: 4 kB / 0.7619 GB, free: 4.551 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.696e-06/0.004495, allocations: 1.156 kB / 0.7619 GB, free: 4.551 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.215e-05/0.004507, allocations: 352 / 0.7619 GB, free: 4.551 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.068e-06/0.004511, allocations: 0 / 0.7619 GB, free: 4.551 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 (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.062e-05/0.004572, allocations: 119.6 kB / 0.7621 GB, free: 4.426 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.072e-06/0.004578, allocations: 3.938 kB / 0.7621 GB, free: 4.422 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.556e-05/0.004653, allocations: 44.81 kB / 0.7621 GB, free: 4.371 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.004655, allocations: 0 / 0.7621 GB, free: 4.371 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.004659, allocations: 6.734 kB / 0.7621 GB, free: 4.367 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.004663, allocations: 3.984 kB / 0.7621 GB, free: 4.363 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.091e-05/0.004734, allocations: 73.83 kB / 0.7622 GB, free: 4.273 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.004735, allocations: 0 / 0.7622 GB, free: 4.273 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.658e-05/0.004752, allocations: 0 / 0.7622 GB, free: 4.273 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.004756, allocations: 4.984 kB / 0.7622 GB, free: 4.27 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.407e-06/0.004759, allocations: 0 / 0.7622 GB, free: 4.27 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.00476, allocations: 1.781 kB / 0.7622 GB, free: 4.27 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.004762, allocations: 0 / 0.7622 GB, free: 4.27 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.473e-05/0.004826, allocations: 65 kB / 0.7623 GB, free: 4.188 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.01e-06/0.004831, allocations: 0 / 0.7623 GB, free: 4.188 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.648e-06/0.004841, allocations: 4.938 kB / 0.7623 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.664e-06/0.004849, allocations: 0 / 0.7623 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.645e-05/0.004875, allocations: 3.984 kB / 0.7623 GB, free: 4.18 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.004877, allocations: 1.656 kB / 0.7623 GB, free: 4.18 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 8.697e-06/0.004886, allocations: 4.859 kB / 0.7623 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6e-08/0.004886, allocations: 0.7188 kB / 0.7623 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001683/0.005054, allocations: 8 kB / 0.7623 GB, free: 4.164 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,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.0001377/0.005192, allocations: 82.55 kB / 0.7624 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 5.907e-05/0.005251, allocations: 17.72 kB / 0.7624 GB, free: 4.055 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.005255, allocations: 4 kB / 0.7624 GB, free: 4.051 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.323e-05/0.005269, allocations: 13.36 kB / 0.7624 GB, free: 4.035 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.6e-05/0.005325, allocations: 5.547 kB / 0.7624 GB, free: 4.031 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001768/0.005502, allocations: 87.81 kB / 0.7625 GB, free: 3.918 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.614e-05/0.005538, allocations: 55.86 kB / 0.7625 GB, free: 3.844 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.074e-05/0.005548, allocations: 3.062 kB / 0.7625 GB, free: 3.844 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.379e-05/0.005582, allocations: 51.38 kB / 0.7626 GB, free: 3.793 MB / 0.7136 GB Notification: Performance of SimCode: time 6.11e-07/0.005583, allocations: 0.6562 kB / 0.7626 GB, free: 3.793 MB / 0.7136 GB Notification: Performance of Templates: time 0.002008/0.007591, allocations: 374.4 kB / 0.7629 GB, free: 3.438 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/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: 4.858611943665892]