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.001007/0.001007, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.001001/0.001001, allocations: 177 kB / 23.36 MB, free: 1.133 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 1.006/1.006, allocations: 177.1 MB / 203.8 MB, free: 5.477 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.509/2.509, allocations: 438.8 MB / 0.6827 GB, free: 13.58 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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.432e-06/1.432e-06, allocations: 0 / 0.8386 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.833e-05/1.976e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002407/0.002427, allocations: 1.627 MB / 0.8402 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0003614/0.002788, allocations: 127.5 kB / 0.8403 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.461e-05/0.002823, allocations: 0 / 0.8403 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.438e-05/0.002847, allocations: 3.938 kB / 0.8403 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 4.04e-05/0.002887, allocations: 0 / 0.8403 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002019/0.003089, allocations: 27.86 kB / 0.8404 GB, free: 12.37 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 6.29e-05/0.003152, allocations: 27.92 kB / 0.8404 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 7.604e-05/0.003228, allocations: 19.97 kB / 0.8404 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.00434, allocations: 15.92 kB / 0.8404 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 6.971e-05/0.004409, allocations: 11.98 kB / 0.8404 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.004429, allocations: 4 kB / 0.8404 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.004537, allocations: 16 kB / 0.8405 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.884e-05/0.004556, allocations: 7.969 kB / 0.8405 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.17e-05/0.004577, allocations: 11.94 kB / 0.8405 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.004724, allocations: 35.83 kB / 0.8405 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.004727, allocations: 0 / 0.8405 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.502e-06/0.004729, allocations: 0 / 0.8405 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.004733, allocations: 0 / 0.8405 GB, free: 12.22 MB / 0.8073 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.0002971/0.00503, allocations: 237 kB / 0.8407 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.005061, allocations: 8.625 kB / 0.8407 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.712e-05/0.005088, allocations: 8.938 kB / 0.8408 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.87e-05/0.005167, allocations: 113.7 kB / 0.8409 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.005184, allocations: 8.375 kB / 0.8409 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.204e-06/0.005191, allocations: 4.375 kB / 0.8409 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001063/0.005297, allocations: 58.94 kB / 0.8409 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.005305, allocations: 192 / 0.8409 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.112e-06/0.005311, allocations: 384 / 0.8409 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.005316, allocations: 384 / 0.8409 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.633e-05/0.005343, allocations: 23.8 kB / 0.841 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002091/0.005552, allocations: 152.3 kB / 0.8411 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.005682, allocations: 34.62 kB / 0.8411 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.616e-05/0.005699, allocations: 16.84 kB / 0.8411 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 5.405e-05/0.005753, allocations: 4 kB / 0.8412 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.877e-05/0.005771, allocations: 30.56 kB / 0.8412 GB, free: 11.44 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.005772, allocations: 3.938 kB / 0.8412 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0001073/0.00588, allocations: 45.62 kB / 0.8412 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001571/0.006037, allocations: 51.41 kB / 0.8413 GB, free: 11.32 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.477e-05/0.006092, allocations: 114.7 kB / 0.8414 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 9.908e-06/0.006102, allocations: 25.7 kB / 0.8414 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.585e-05/0.006127, allocations: 80.14 kB / 0.8415 GB, free: 11.08 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.006147, allocations: 7.953 kB / 0.8415 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.006173, allocations: 21.69 kB / 0.8415 GB, free: 11.05 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.813e-05/0.006241, allocations: 314.8 kB / 0.8418 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.267e-06/0.00625, allocations: 0 / 0.8418 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.696e-06/0.006259, allocations: 4 kB / 0.8418 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.741e-05/0.006287, allocations: 20.78 kB / 0.8418 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.006288, allocations: 0 / 0.8418 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 4.445e-05/0.006332, allocations: 41.69 kB / 0.8419 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.006344, allocations: 10.66 kB / 0.8419 GB, free: 10.65 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.006348, allocations: 0 / 0.8419 GB, free: 10.65 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.00636, allocations: 4.453 kB / 0.8419 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.412e-05/0.006404, allocations: 15.98 kB / 0.8419 GB, free: 10.63 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.996e-06/0.006407, allocations: 3.984 kB / 0.8419 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.814e-05/0.006425, allocations: 3.953 kB / 0.8419 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-06/0.00643, allocations: 4 kB / 0.8419 GB, free: 10.62 MB / 0.8073 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 4.823e-05/0.006478, allocations: 105.8 kB / 0.842 GB, free: 10.5 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.792e-05/0.006496, allocations: 11.92 kB / 0.842 GB, free: 10.49 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.599e-05/0.006562, allocations: 49.36 kB / 0.8421 GB, free: 10.44 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.006564, allocations: 3.938 kB / 0.8421 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.006565, allocations: 0 / 0.8421 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.006568, allocations: 4 kB / 0.8421 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.814e-05/0.006646, allocations: 77.88 kB / 0.8422 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.006647, allocations: 3.938 kB / 0.8422 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.583e-05/0.006673, allocations: 7.984 kB / 0.8422 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.82e-07/0.006673, allocations: 0 / 0.8422 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.038e-06/0.006677, allocations: 0 / 0.8422 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.9e-07/0.006678, allocations: 4 kB / 0.8422 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.006679, allocations: 0 / 0.8422 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.609e-05/0.006745, allocations: 139.4 kB / 0.8423 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 7.273e-06/0.006752, allocations: 7.938 kB / 0.8423 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.014e-06/0.006759, allocations: 0 / 0.8423 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.273e-05/0.006792, allocations: 11.98 kB / 0.8423 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.38e-05/0.006825, allocations: 0 / 0.8423 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.006831, allocations: 11.92 kB / 0.8423 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 9.819e-06/0.006841, allocations: 8.859 kB / 0.8423 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7.1e-08/0.006841, allocations: 0 / 0.8423 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001253/0.006966, allocations: 8 kB / 0.8424 GB, free: 10.12 MB / 0.8073 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.0001008/0.007067, allocations: 84.41 kB / 0.8424 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 5.463e-05/0.007121, allocations: 16.84 kB / 0.8425 GB, free: 10.01 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.007124, allocations: 3.938 kB / 0.8425 GB, free: 10 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.869e-05/0.007142, allocations: 16.86 kB / 0.8425 GB, free: 9.984 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001227/0.007265, allocations: 11.98 kB / 0.8425 GB, free: 9.973 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001835/0.007449, allocations: 100.8 kB / 0.8426 GB, free: 9.848 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.125e-05/0.00748, allocations: 59.3 kB / 0.8426 GB, free: 9.77 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.926e-05/0.007499, allocations: 3.984 kB / 0.8426 GB, free: 9.766 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.995e-05/0.007539, allocations: 55.38 kB / 0.8427 GB, free: 9.711 MB / 0.8073 GB Notification: Performance of SimCode: time 6.11e-07/0.00754, allocations: 8 kB / 0.8427 GB, free: 9.703 MB / 0.8073 GB Notification: Performance of Templates: time 0.002145/0.009685, allocations: 0.7601 MB / 0.8434 GB, free: 8.953 MB / 0.8073 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 -s gbode -gbm=radauIIA3 -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.446617761161178]