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.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.001811/0.001811, allocations: 116.4 kB / 17.08 MB, free: 5.977 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.001665/0.001665, allocations: 193.2 kB / 20.03 MB, free: 3.047 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.42/1.42, allocations: 222.9 MB / 245.7 MB, free: 4.223 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.853/2.853, allocations: 489.3 MB / 0.7687 GB, free: 3.758 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.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 0.001955/0.001955, allocations: 71.89 kB / 1.103 GB, free: 0.7461 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8913/0.8933, allocations: 163.8 MB / 1.263 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002254/0.8956, allocations: 1.519 MB / 1.264 GB, free: 6.953 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0003072/0.8959, allocations: 131.5 kB / 1.264 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.613e-05/0.8959, allocations: 0.7812 kB / 1.264 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.296e-05/0.8959, allocations: 0.7031 kB / 1.264 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.256e-05/0.896, allocations: 4.75 kB / 1.264 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001949/0.8962, allocations: 28.02 kB / 1.264 GB, free: 6.844 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.442e-05/0.8963, allocations: 35.06 kB / 1.264 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.935e-05/0.8964, allocations: 14.66 kB / 1.264 GB, free: 6.816 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.133e-05/0.8964, allocations: 10.66 kB / 1.264 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.085e-05/0.8965, allocations: 16.52 kB / 1.264 GB, free: 6.805 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.422e-05/0.8965, allocations: 2.625 kB / 1.264 GB, free: 6.805 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.708e-05/0.8966, allocations: 9.094 kB / 1.264 GB, free: 6.805 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.582e-05/0.8966, allocations: 6.859 kB / 1.264 GB, free: 6.801 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.676e-05/0.8966, allocations: 16.22 kB / 1.264 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.8967, allocations: 34.27 kB / 1.264 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.8968, allocations: 5.062 kB / 1.264 GB, free: 6.773 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.473e-06/0.8968, allocations: 0 / 1.264 GB, free: 6.773 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.8968, allocations: 0.6094 kB / 1.264 GB, free: 6.773 MB / 0.9981 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.0003773/0.8972, allocations: 342.6 kB / 1.265 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.8972, allocations: 9.922 kB / 1.265 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.793e-05/0.8972, allocations: 6.531 kB / 1.265 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.955e-05/0.8973, allocations: 167.3 kB / 1.265 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.8973, allocations: 2.062 kB / 1.265 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.411e-05/0.8974, allocations: 5.969 kB / 1.265 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001766/0.8975, allocations: 59.59 kB / 1.265 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.8976, allocations: 192 / 1.265 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.8976, allocations: 8.625 kB / 1.265 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.8976, allocations: 0.875 kB / 1.265 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001904/0.8978, allocations: 37.95 kB / 1.265 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002856/0.8981, allocations: 272.2 kB / 1.265 GB, free: 5.867 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003125/0.8984, allocations: 60.34 kB / 1.265 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.8985, allocations: 26.39 kB / 1.265 GB, free: 5.82 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.415e-05/0.8986, allocations: 81.61 kB / 1.265 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.243e-05/0.8986, allocations: 40 kB / 1.265 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/0.8986, allocations: 4.75 kB / 1.265 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0003796/0.899, allocations: 87.77 kB / 1.266 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.881e-05/0.899, allocations: 52.81 kB / 1.266 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.074e-05/0.8991, allocations: 101.6 kB / 1.266 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.895e-06/0.8991, allocations: 30.36 kB / 1.266 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.5e-05/0.8991, allocations: 82.38 kB / 1.266 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.405e-05/0.8992, allocations: 17.42 kB / 1.266 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.149e-05/0.8992, allocations: 14.25 kB / 1.266 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.7e-05/0.8992, allocations: 317.8 kB / 1.266 GB, free: 5.008 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.513e-05/0.8993, allocations: 20.08 kB / 1.266 GB, free: 5.004 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.597e-05/0.8994, allocations: 20.47 kB / 1.266 GB, free: 5 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001737/0.8996, allocations: 45.72 kB / 1.266 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.8996, allocations: 7.938 kB / 1.266 GB, free: 4.977 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002103/0.8998, allocations: 73.27 kB / 1.266 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.8998, allocations: 5.438 kB / 1.266 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.8999, allocations: 0.7812 kB / 1.266 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.8999, allocations: 0.7969 kB / 1.266 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.537e-05/0.9, allocations: 14.64 kB / 1.266 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.9, allocations: 5.391 kB / 1.266 GB, free: 4.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.859e-05/0.9, allocations: 13.55 kB / 1.266 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.503e-06/0.9001, allocations: 6.031 kB / 1.266 GB, free: 4.918 MB / 0.9981 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.649e-05/0.9001, allocations: 116.3 kB / 1.266 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.428e-05/0.9001, allocations: 1.688 kB / 1.266 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002536/0.9004, allocations: 82.75 kB / 1.266 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.9004, allocations: 0.6875 kB / 1.266 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.9004, allocations: 0 / 1.266 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.9004, allocations: 5.312 kB / 1.267 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.9005, allocations: 162.7 kB / 1.267 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.9005, allocations: 0.5625 kB / 1.267 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.714e-05/0.9006, allocations: 15.53 kB / 1.267 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.9006, allocations: 0.9375 kB / 1.267 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.9006, allocations: 0.5156 kB / 1.267 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.9007, allocations: 0.9375 kB / 1.267 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.9007, allocations: 0.5625 kB / 1.267 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000245/0.9009, allocations: 178 kB / 1.267 GB, free: 4.398 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.742e-05/0.9009, allocations: 82.62 kB / 1.267 GB, free: 4.301 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.901, allocations: 1.844 kB / 1.267 GB, free: 4.301 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.617e-05/0.901, allocations: 5.938 kB / 1.267 GB, free: 4.301 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.744e-05/0.9011, allocations: 8.953 kB / 1.267 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.9011, allocations: 1.5 kB / 1.267 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 1.985e-05/0.9011, allocations: 84.23 kB / 1.267 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9011, allocations: 4 kB / 1.267 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002215/0.9014, allocations: 7.094 kB / 1.267 GB, free: 4.215 MB / 0.9981 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.0001099/0.9015, allocations: 104.5 kB / 1.267 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002424/0.9017, allocations: 49.22 kB / 1.267 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.9017, allocations: 1 kB / 1.267 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.968e-05/0.9018, allocations: 24.27 kB / 1.267 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.9021, allocations: 10.58 kB / 1.267 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002548/0.9024, allocations: 143.3 kB / 1.267 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.988e-05/0.9025, allocations: 0.6817 MB / 1.268 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.782e-05/0.9025, allocations: 10.45 kB / 1.268 GB, free: 3.246 MB / 0.9981 GB Notification: Performance of SimCode: time 2.1e-07/0.9025, allocations: 3.938 kB / 1.268 GB, free: 3.242 MB / 0.9981 GB Notification: Performance of Templates: time 0.002385/0.9049, allocations: 0.7301 MB / 1.269 GB, free: 3.203 MB / 0.9981 GB " [Timeout remaining time 299] 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.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: 10.84615223784931]