Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 115.5 kB / 18.88 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002031/0.002031, allocations: 194.3 kB / 22.17 MB, free: 5.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 225.6 MB / 250.9 MB, free: 13.29 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.763/2.763, allocations: 476.7 MB / 0.7645 GB, free: 10.13 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_11_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_11_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002407/0.002407, allocations: 75.89 kB / 1.109 GB, free: 6.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7979/0.8003, allocations: 168.7 MB / 1.274 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001747/0.8021, allocations: 0.5811 MB / 1.275 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002844/0.8024, allocations: 51.8 kB / 1.275 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.661e-05/0.8024, allocations: 0 / 1.275 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.665e-05/0.8024, allocations: 0 / 1.275 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.032e-06/0.8024, allocations: 4 kB / 1.275 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.8026, allocations: 19.91 kB / 1.275 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 4.015e-05/0.8027, allocations: 4 kB / 1.275 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.524e-05/0.8027, allocations: 0 / 1.275 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.458e-05/0.8027, allocations: 3.938 kB / 1.275 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 2.453e-05/0.8027, allocations: 7.984 kB / 1.275 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.488e-06/0.8027, allocations: 0 / 1.275 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.021e-05/0.8028, allocations: 8 kB / 1.275 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.315e-06/0.8028, allocations: 0 / 1.275 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.816e-05/0.8028, allocations: 3.984 kB / 1.275 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 8.426e-05/0.8029, allocations: 11.98 kB / 1.275 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.8029, allocations: 4 kB / 1.275 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.342e-06/0.8029, allocations: 0 / 1.275 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.8029, allocations: 0 / 1.275 GB, free: 3.812 MB / 0.9669 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.0003613/0.8033, allocations: 326.1 kB / 1.275 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.8033, allocations: 8.031 kB / 1.275 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.761e-05/0.8034, allocations: 0.9375 kB / 1.275 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001324/0.8035, allocations: 164.3 kB / 1.275 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.8035, allocations: 4.375 kB / 1.275 GB, free: 3.234 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.8035, allocations: 4.375 kB / 1.275 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.8036, allocations: 30.27 kB / 1.275 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.8036, allocations: 192 / 1.275 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.8037, allocations: 11.92 kB / 1.275 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.8037, allocations: 3.938 kB / 1.275 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.331e-05/0.8037, allocations: 0 / 1.275 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001856/0.8039, allocations: 149.7 kB / 1.275 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 6.437e-05/0.8039, allocations: 22.59 kB / 1.275 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.427e-05/0.804, allocations: 16.92 kB / 1.275 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001824/0.8042, allocations: 77.11 kB / 1.276 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.8042, allocations: 34.56 kB / 1.276 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.8042, allocations: 0 / 1.276 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001571/0.8043, allocations: 49.56 kB / 1.276 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.8044, allocations: 51.41 kB / 1.276 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.13e-05/0.8044, allocations: 89.86 kB / 1.276 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.8045, allocations: 25.7 kB / 1.276 GB, free: 2.551 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.548e-05/0.8045, allocations: 84.27 kB / 1.276 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.8045, allocations: 4 kB / 1.276 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/0.8045, allocations: 9.719 kB / 1.276 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000174/0.8047, allocations: 318.8 kB / 1.276 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.32e-05/0.8047, allocations: 4 kB / 1.276 GB, free: 2.121 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.573e-06/0.8047, allocations: 0 / 1.276 GB, free: 2.121 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.338e-05/0.8048, allocations: 16.8 kB / 1.276 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.8048, allocations: 4.062 kB / 1.276 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.558e-05/0.8048, allocations: 45.64 kB / 1.276 GB, free: 2.047 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.8049, allocations: 4 kB / 1.276 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.8049, allocations: 0 / 1.276 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.8049, allocations: 3.938 kB / 1.276 GB, free: 2.039 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.71e-05/0.8049, allocations: 4 kB / 1.276 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.8049, allocations: 0 / 1.276 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.351e-05/0.805, allocations: 3.938 kB / 1.276 GB, free: 2.031 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.037e-06/0.805, allocations: 0 / 1.276 GB, free: 2.031 MB / 0.9669 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 9.081e-05/0.8051, allocations: 121.8 kB / 1.276 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-06/0.8051, allocations: 0 / 1.276 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.377e-05/0.8052, allocations: 48.69 kB / 1.276 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.8052, allocations: 0 / 1.276 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.8052, allocations: 0 / 1.276 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.8052, allocations: 0 / 1.276 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.8053, allocations: 153.7 kB / 1.277 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.8053, allocations: 0 / 1.277 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.391e-05/0.8053, allocations: 7.938 kB / 1.277 GB, free: 1.645 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.8053, allocations: 3.984 kB / 1.277 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.8053, allocations: 11.97 kB / 1.277 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.8053, allocations: 0 / 1.277 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.8053, allocations: 0 / 1.277 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.542e-05/0.8054, allocations: 65.06 kB / 1.277 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.493e-05/0.8055, allocations: 77.11 kB / 1.277 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.148e-05/0.8055, allocations: 7.938 kB / 1.277 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.009e-05/0.8055, allocations: 0 / 1.277 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.8055, allocations: 8.016 kB / 1.277 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.8055, allocations: 0 / 1.277 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.72e-05/0.8056, allocations: 75.28 kB / 1.277 GB, free: 1.363 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8056, allocations: 4 kB / 1.277 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001945/0.8058, allocations: 8 kB / 1.277 GB, free: 1.352 MB / 0.9669 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.0001773/0.8059, allocations: 103.8 kB / 1.277 GB, free: 1.242 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 8.325e-05/0.806, allocations: 11.98 kB / 1.277 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.806, allocations: 4.062 kB / 1.277 GB, free: 1.227 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.719e-05/0.806, allocations: 7.938 kB / 1.277 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.8062, allocations: 1.562 kB / 1.277 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002311/0.8064, allocations: 104.9 kB / 1.277 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004927/0.8069, allocations: 0.6729 MB / 1.278 GB, free: 400 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.571e-05/0.8069, allocations: 4 kB / 1.278 GB, free: 396 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.432e-05/0.8069, allocations: 7.438 kB / 1.278 GB, free: 388 kB / 0.9669 GB Notification: Performance of SimCode: time 3.31e-07/0.8069, allocations: 3.938 kB / 1.278 GB, free: 384 kB / 0.9669 GB Notification: Performance of Templates: time 0.002758/0.8097, allocations: 330.2 kB / 1.278 GB, free: 56 kB / 0.9669 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.718142461031675]