Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001396/0.001396, allocations: 92.22 kB / 19.65 MB, free: 280 kB / 13.93 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.001158/0.001158, allocations: 169 kB / 23.02 MB, free: 1.555 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.991/0.991, allocations: 177.1 MB / 203.4 MB, free: 5.641 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.169/2.169, allocations: 429.5 MB / 0.6732 GB, free: 4.016 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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 0.8782 GB, free: 6.297 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.866e-05/3.036e-05, allocations: 9.688 kB / 0.8782 GB, free: 6.289 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002163/0.002193, allocations: 1.581 MB / 0.8797 GB, free: 4.715 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0003253/0.002518, allocations: 124.5 kB / 0.8798 GB, free: 4.594 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.565e-05/0.002554, allocations: 0.875 kB / 0.8798 GB, free: 4.594 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.128e-05/0.002585, allocations: 0 / 0.8798 GB, free: 4.594 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.741e-05/0.002633, allocations: 10.7 kB / 0.8798 GB, free: 4.586 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002506/0.002883, allocations: 19.92 kB / 0.8799 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.356e-05/0.002957, allocations: 35.41 kB / 0.8799 GB, free: 4.535 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.003057, allocations: 13.52 kB / 0.8799 GB, free: 4.523 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 5.132e-05/0.003109, allocations: 11.98 kB / 0.8799 GB, free: 4.512 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.496e-05/0.003153, allocations: 15.98 kB / 0.8799 GB, free: 4.496 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.691e-05/0.00317, allocations: 0 / 0.8799 GB, free: 4.496 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.086e-05/0.003241, allocations: 17.42 kB / 0.88 GB, free: 4.48 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.288e-05/0.003254, allocations: 7.922 kB / 0.88 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.178e-05/0.003276, allocations: 8 kB / 0.88 GB, free: 4.465 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001209/0.003397, allocations: 39.83 kB / 0.88 GB, free: 4.426 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.0034, allocations: 1.125 kB / 0.88 GB, free: 4.426 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.102e-06/0.003401, allocations: 0 / 0.88 GB, free: 4.426 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.003405, allocations: 0 / 0.88 GB, free: 4.426 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004244/0.00383, allocations: 368 kB / 0.8804 GB, free: 4.031 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.003876, allocations: 12.02 kB / 0.8804 GB, free: 4.02 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.598e-05/0.003922, allocations: 4.938 kB / 0.8804 GB, free: 4.016 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.004028, allocations: 116.5 kB / 0.8805 GB, free: 3.875 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.004053, allocations: 384 / 0.8805 GB, free: 3.875 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.004066, allocations: 384 / 0.8805 GB, free: 3.875 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001477/0.004214, allocations: 62.94 kB / 0.8806 GB, free: 3.805 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.004224, allocations: 192 / 0.8806 GB, free: 3.805 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.004234, allocations: 384 / 0.8806 GB, free: 3.805 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.004244, allocations: 4.375 kB / 0.8806 GB, free: 3.801 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.987e-05/0.004284, allocations: 19.88 kB / 0.8806 GB, free: 3.781 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003584/0.004642, allocations: 255.8 kB / 0.8808 GB, free: 3.496 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002033/0.004845, allocations: 51.09 kB / 0.8809 GB, free: 3.434 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.022e-05/0.004875, allocations: 11.75 kB / 0.8809 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.503e-05/0.00497, allocations: 15.94 kB / 0.8809 GB, free: 3.402 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.004996, allocations: 41.38 kB / 0.8809 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.342e-06/0.004997, allocations: 0 / 0.8809 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001735/0.00517, allocations: 57.58 kB / 0.881 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.005197, allocations: 55.41 kB / 0.881 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.004e-05/0.005267, allocations: 157.9 kB / 0.8812 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.00528, allocations: 29.69 kB / 0.8812 GB, free: 3.016 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.473e-05/0.005325, allocations: 130.9 kB / 0.8813 GB, free: 2.883 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.521e-05/0.00534, allocations: 3.953 kB / 0.8813 GB, free: 2.879 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.005371, allocations: 23.38 kB / 0.8814 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.005479, allocations: 496.1 kB / 0.8818 GB, free: 2.352 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.858e-05/0.005497, allocations: 4 kB / 0.8818 GB, free: 2.348 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.353e-05/0.005511, allocations: 7.938 kB / 0.8819 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.613e-05/0.005547, allocations: 15.69 kB / 0.8819 GB, free: 2.32 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.005549, allocations: 4 kB / 0.8819 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.713e-05/0.005616, allocations: 49.69 kB / 0.8819 GB, free: 2.262 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.005631, allocations: 7.938 kB / 0.8819 GB, free: 2.254 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.005635, allocations: 0 / 0.8819 GB, free: 2.254 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.005653, allocations: 3.984 kB / 0.8819 GB, free: 2.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.233e-05/0.005705, allocations: 8 kB / 0.8819 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.00571, allocations: 3.938 kB / 0.8819 GB, free: 2.238 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.042e-05/0.00573, allocations: 0 / 0.8819 GB, free: 2.238 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.005737, allocations: 7.938 kB / 0.882 GB, free: 2.23 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 (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 7.191e-05/0.005809, allocations: 164.6 kB / 0.8821 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.899e-05/0.005828, allocations: 7.953 kB / 0.8821 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.005939, allocations: 49.31 kB / 0.8822 GB, free: 1.992 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.005941, allocations: 4 kB / 0.8822 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.005944, allocations: 0 / 0.8822 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.005949, allocations: 4.547 kB / 0.8822 GB, free: 1.984 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.591e-05/0.006044, allocations: 112.6 kB / 0.8823 GB, free: 1.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.006046, allocations: 0 / 0.8823 GB, free: 1.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.109e-05/0.006077, allocations: 11.98 kB / 0.8823 GB, free: 1.828 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.006079, allocations: 0 / 0.8823 GB, free: 1.828 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-06/0.006085, allocations: 4 kB / 0.8823 GB, free: 1.824 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.006087, allocations: 3.938 kB / 0.8823 GB, free: 1.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.006088, allocations: 0 / 0.8823 GB, free: 1.82 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001064/0.006195, allocations: 199.9 kB / 0.8825 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.304e-06/0.006202, allocations: 3.984 kB / 0.8825 GB, free: 1.602 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.048e-05/0.006213, allocations: 0 / 0.8825 GB, free: 1.602 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.415e-05/0.006247, allocations: 7.938 kB / 0.8825 GB, free: 1.594 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.074e-05/0.006298, allocations: 11.98 kB / 0.8825 GB, free: 1.582 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-06/0.006302, allocations: 4 kB / 0.8825 GB, free: 1.578 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.765e-05/0.00634, allocations: 123.2 kB / 0.8826 GB, free: 1.457 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.00634, allocations: 0 / 0.8826 GB, free: 1.457 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001585/0.006498, allocations: 19.89 kB / 0.8827 GB, free: 1.438 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.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.0001277/0.006626, allocations: 107.2 kB / 0.8828 GB, free: 1.324 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.052e-05/0.006717, allocations: 23.61 kB / 0.8828 GB, free: 1.297 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.006718, allocations: 0 / 0.8828 GB, free: 1.297 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.626e-05/0.006744, allocations: 19.69 kB / 0.8828 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001921/0.006936, allocations: 4 kB / 0.8828 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000267/0.007203, allocations: 122.2 kB / 0.8829 GB, free: 1.121 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.296e-05/0.007236, allocations: 55.36 kB / 0.883 GB, free: 1.047 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.322e-05/0.007259, allocations: 11.89 kB / 0.883 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.57e-05/0.007285, allocations: 12.5 kB / 0.883 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of SimCode: time 7.21e-07/0.007286, allocations: 0 / 0.883 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of Templates: time 0.002613/0.009899, allocations: 0.7595 MB / 0.8837 GB, free: 276 kB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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: 5.450908829923719]