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.0009166/0.0009166, allocations: 93.06 kB / 19.65 MB, free: 276 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.0009084/0.0009084, allocations: 169 kB / 23.02 MB, free: 1.543 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.9176/0.9176, allocations: 177.1 MB / 203.4 MB, free: 5.656 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.043/2.043, allocations: 429.5 MB / 0.6732 GB, free: 4.047 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.563e-06/1.563e-06, allocations: 0 / 0.8782 GB, free: 6.285 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.641e-05/2.797e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.281 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.005353/0.005381, allocations: 1.591 MB / 0.8797 GB, free: 4.699 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0002891/0.00567, allocations: 120.5 kB / 0.8798 GB, free: 4.582 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.011e-05/0.0057, allocations: 1.781 kB / 0.8798 GB, free: 4.582 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.745e-05/0.005727, allocations: 0 / 0.8798 GB, free: 4.582 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.401e-05/0.005771, allocations: 5.688 kB / 0.8799 GB, free: 4.578 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002188/0.00599, allocations: 27.91 kB / 0.8799 GB, free: 4.551 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 6.625e-05/0.006056, allocations: 30.45 kB / 0.8799 GB, free: 4.523 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 7.978e-05/0.006136, allocations: 3.984 kB / 0.8799 GB, free: 4.52 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 4.692e-05/0.006183, allocations: 23.97 kB / 0.8799 GB, free: 4.496 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.104e-05/0.006224, allocations: 17.05 kB / 0.8799 GB, free: 4.48 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.00624, allocations: 4 kB / 0.88 GB, free: 4.477 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.509e-05/0.006295, allocations: 8 kB / 0.88 GB, free: 4.469 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.403e-05/0.006309, allocations: 9.047 kB / 0.88 GB, free: 4.461 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 1.892e-05/0.006328, allocations: 8 kB / 0.88 GB, free: 4.453 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001063/0.006434, allocations: 39.77 kB / 0.88 GB, free: 4.414 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.006436, allocations: 1.094 kB / 0.88 GB, free: 4.414 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.11e-07/0.006437, allocations: 0 / 0.88 GB, free: 4.414 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.827e-06/0.006441, allocations: 0 / 0.88 GB, free: 4.414 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.0003466/0.006787, allocations: 361.6 kB / 0.8804 GB, free: 4.023 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.006823, allocations: 12.03 kB / 0.8804 GB, free: 4.012 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.702e-05/0.00686, allocations: 3.406 kB / 0.8804 GB, free: 4.012 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.021e-05/0.00694, allocations: 120.5 kB / 0.8805 GB, free: 3.867 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.006959, allocations: 384 / 0.8805 GB, free: 3.867 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-06/0.006969, allocations: 4.375 kB / 0.8805 GB, free: 3.863 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003146/0.01012, allocations: 58.94 kB / 0.8806 GB, free: 3.797 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.01012, allocations: 4.188 kB / 0.8806 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.01013, allocations: 6.375 kB / 0.8806 GB, free: 3.789 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.01014, allocations: 384 / 0.8806 GB, free: 3.789 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.868e-05/0.01018, allocations: 11.92 kB / 0.8806 GB, free: 3.777 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002832/0.01046, allocations: 263.8 kB / 0.8808 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.01064, allocations: 43.77 kB / 0.8809 GB, free: 3.43 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.559e-05/0.01066, allocations: 15.69 kB / 0.8809 GB, free: 3.41 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 6.907e-05/0.01073, allocations: 13.64 kB / 0.8809 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.01075, allocations: 41.39 kB / 0.8809 GB, free: 3.348 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.01075, allocations: 0 / 0.8809 GB, free: 3.348 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001573/0.01091, allocations: 53.72 kB / 0.881 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.611e-05/0.01094, allocations: 51.91 kB / 0.881 GB, free: 3.227 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.677e-05/0.011, allocations: 170 kB / 0.8812 GB, free: 3.043 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/0.01101, allocations: 31.52 kB / 0.8812 GB, free: 3.008 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.01117, allocations: 130.9 kB / 0.8814 GB, free: 2.875 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.429e-05/0.01119, allocations: 3.953 kB / 0.8814 GB, free: 2.871 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.14e-05/0.01122, allocations: 19.38 kB / 0.8814 GB, free: 2.844 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.01132, allocations: 0.4923 MB / 0.8819 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.806e-05/0.01134, allocations: 5.125 kB / 0.8819 GB, free: 2.336 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.353e-05/0.01135, allocations: 4 kB / 0.8819 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.873e-05/0.01139, allocations: 21.28 kB / 0.8819 GB, free: 2.309 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.01139, allocations: 3.984 kB / 0.8819 GB, free: 2.305 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.899e-05/0.01146, allocations: 37.7 kB / 0.8819 GB, free: 2.262 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.01148, allocations: 11.92 kB / 0.8819 GB, free: 2.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.01148, allocations: 4 kB / 0.8819 GB, free: 2.246 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.01149, allocations: 4 kB / 0.8819 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.852e-05/0.01154, allocations: 8 kB / 0.8819 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.01154, allocations: 3.938 kB / 0.882 GB, free: 2.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.342e-05/0.01157, allocations: 4 kB / 0.882 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.01157, allocations: 3.984 kB / 0.882 GB, free: 2.223 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 6.026e-05/0.01163, allocations: 156.6 kB / 0.8821 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.154e-05/0.01165, allocations: 3.953 kB / 0.8821 GB, free: 2.055 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.164e-05/0.01175, allocations: 57.31 kB / 0.8822 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.01175, allocations: 7.984 kB / 0.8822 GB, free: 1.98 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.01175, allocations: 0 / 0.8822 GB, free: 1.98 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-06/0.01175, allocations: 0 / 0.8822 GB, free: 1.98 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.01186, allocations: 112.6 kB / 0.8823 GB, free: 1.836 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.01186, allocations: 3.984 kB / 0.8823 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.069e-05/0.01189, allocations: 8 kB / 0.8823 GB, free: 1.824 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.01189, allocations: 0 / 0.8823 GB, free: 1.824 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.0119, allocations: 4 kB / 0.8823 GB, free: 1.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.0119, allocations: 3.938 kB / 0.8823 GB, free: 1.816 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.0119, allocations: 3.938 kB / 0.8823 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001005/0.01201, allocations: 191.9 kB / 0.8825 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.681e-06/0.01201, allocations: 8 kB / 0.8825 GB, free: 1.598 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.638e-06/0.01202, allocations: 0 / 0.8825 GB, free: 1.598 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.744e-05/0.01207, allocations: 3.938 kB / 0.8825 GB, free: 1.594 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.2e-05/0.01211, allocations: 16.34 kB / 0.8825 GB, free: 1.578 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-06/0.01212, allocations: 4 kB / 0.8825 GB, free: 1.574 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.398e-05/0.01215, allocations: 127.2 kB / 0.8826 GB, free: 1.449 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7e-08/0.01215, allocations: 0 / 0.8826 GB, free: 1.449 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002179/0.01237, allocations: 15.89 kB / 0.8827 GB, free: 1.434 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.0001083/0.01248, allocations: 99.23 kB / 0.8828 GB, free: 1.328 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.797e-05/0.01256, allocations: 35.61 kB / 0.8828 GB, free: 1.289 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.01256, allocations: 0 / 0.8828 GB, free: 1.289 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.662e-05/0.01259, allocations: 15.69 kB / 0.8828 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.01281, allocations: 4 kB / 0.8828 GB, free: 1.266 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003265/0.01607, allocations: 122.2 kB / 0.8829 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.401e-05/0.01611, allocations: 55.36 kB / 0.883 GB, free: 1.043 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.426e-05/0.01613, allocations: 7.953 kB / 0.883 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.819e-05/0.01616, allocations: 12.5 kB / 0.883 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of SimCode: time 6.11e-07/0.01616, allocations: 0 / 0.883 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of Templates: time 0.00261/0.01877, allocations: 0.8003 MB / 0.8838 GB, free: 240 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.1663565542548895]