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.00163/0.00163, allocations: 107.1 kB / 16.45 MB, free: 6.035 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.002005/0.002005, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.46/1.46, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.794/2.794, allocations: 476.7 MB / 0.7611 GB, free: 11.3 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002221/0.002221, allocations: 63.91 kB / 1.104 GB, free: 9.195 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7612/0.7634, allocations: 168.7 MB / 1.269 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001825/0.7653, allocations: 0.5836 MB / 1.269 GB, free: 4.582 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002781/0.7655, allocations: 53.69 kB / 1.269 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.133e-05/0.7656, allocations: 0 / 1.269 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.298e-05/0.7656, allocations: 0 / 1.269 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.553e-06/0.7656, allocations: 0 / 1.269 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002314/0.7658, allocations: 15.92 kB / 1.269 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.797e-05/0.7659, allocations: 8 kB / 1.269 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.099e-05/0.7659, allocations: 0 / 1.269 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.563e-05/0.7659, allocations: 7.922 kB / 1.269 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 2.216e-05/0.7659, allocations: 7.922 kB / 1.269 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.207e-06/0.766, allocations: 4 kB / 1.269 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.41e-05/0.766, allocations: 8 kB / 1.269 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.747e-06/0.766, allocations: 0 / 1.269 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.672e-05/0.7661, allocations: 0 / 1.269 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 8.346e-05/0.7661, allocations: 7.984 kB / 1.269 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.7661, allocations: 4 kB / 1.269 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.452e-06/0.7661, allocations: 7.938 kB / 1.269 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.7662, allocations: 0 / 1.269 GB, free: 4.461 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.0003353/0.7665, allocations: 319.4 kB / 1.27 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.7665, allocations: 12.03 kB / 1.27 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.153e-05/0.7666, allocations: 30.75 kB / 1.27 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.101e-05/0.7666, allocations: 0.9375 kB / 1.27 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.7667, allocations: 164.4 kB / 1.27 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.7667, allocations: 384 / 1.27 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.148e-05/0.7667, allocations: 4.375 kB / 1.27 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.978e-05/0.7668, allocations: 42.19 kB / 1.27 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.7668, allocations: 3.938 kB / 1.27 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-06/0.7668, allocations: 4 kB / 1.27 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.7668, allocations: 0 / 1.27 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.845e-05/0.7669, allocations: 0 / 1.27 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001646/0.767, allocations: 153.6 kB / 1.27 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.233e-05/0.7671, allocations: 22.59 kB / 1.27 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.971e-05/0.7671, allocations: 12.92 kB / 1.27 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001671/0.7673, allocations: 77.11 kB / 1.27 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.7673, allocations: 42.5 kB / 1.27 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.7673, allocations: 0 / 1.27 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001408/0.7675, allocations: 41.62 kB / 1.27 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.7675, allocations: 51.41 kB / 1.27 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.486e-05/0.7675, allocations: 93.86 kB / 1.271 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.7676, allocations: 25.83 kB / 1.271 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.25e-05/0.7676, allocations: 84.14 kB / 1.271 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.7676, allocations: 4 kB / 1.271 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.917e-05/0.7677, allocations: 13.7 kB / 1.271 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002241/0.7679, allocations: 314.8 kB / 1.271 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.062e-05/0.7679, allocations: 4 kB / 1.271 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.482e-06/0.7679, allocations: 0 / 1.271 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.556e-05/0.7679, allocations: 20.8 kB / 1.271 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.7679, allocations: 4.062 kB / 1.271 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.42e-05/0.768, allocations: 45.64 kB / 1.271 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.768, allocations: 4 kB / 1.271 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.768, allocations: 7.875 kB / 1.271 GB, free: 2.641 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.768, allocations: 3.938 kB / 1.271 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.175e-05/0.7681, allocations: 4 kB / 1.271 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.7681, allocations: 0 / 1.271 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.246e-05/0.7681, allocations: 0 / 1.271 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.7681, allocations: 4 kB / 1.271 GB, free: 2.629 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 7.764e-05/0.7682, allocations: 109.9 kB / 1.271 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.512e-06/0.7682, allocations: 0 / 1.271 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002005/0.7684, allocations: 52.69 kB / 1.271 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.7684, allocations: 0 / 1.271 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.7684, allocations: 0 / 1.271 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.7684, allocations: 0 / 1.271 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001182/0.7685, allocations: 153.7 kB / 1.271 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.7685, allocations: 0 / 1.271 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.283e-05/0.7685, allocations: 4 kB / 1.271 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.7685, allocations: 4.031 kB / 1.271 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.742e-05/0.7686, allocations: 3.938 kB / 1.271 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.7686, allocations: 0 / 1.271 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.7686, allocations: 0 / 1.271 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.976e-05/0.7687, allocations: 65.06 kB / 1.271 GB, free: 2.16 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.396e-05/0.7687, allocations: 81.11 kB / 1.271 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.081e-05/0.7687, allocations: 3.938 kB / 1.271 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.415e-05/0.7688, allocations: 3.984 kB / 1.271 GB, free: 2.055 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.885e-05/0.7688, allocations: 4.031 kB / 1.271 GB, free: 2.051 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-06/0.7688, allocations: 0 / 1.271 GB, free: 2.051 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001139/0.7689, allocations: 79.28 kB / 1.272 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of sort global known variables: time 6e-08/0.7689, allocations: 0 / 1.272 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002033/0.7691, allocations: 4 kB / 1.272 GB, free: 1.969 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.0004227/0.7695, allocations: 0.6091 MB / 1.272 GB, free: 1.328 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 8.354e-05/0.7696, allocations: 15.92 kB / 1.272 GB, free: 1.312 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.7696, allocations: 0 / 1.272 GB, free: 1.312 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.718e-05/0.7696, allocations: 4 kB / 1.272 GB, free: 1.309 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.7698, allocations: 4 kB / 1.272 GB, free: 1.305 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003305/0.7701, allocations: 118.5 kB / 1.272 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.7704, allocations: 0.6729 MB / 1.273 GB, free: 460 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.952e-05/0.7704, allocations: 12.12 kB / 1.273 GB, free: 448 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.472e-05/0.7705, allocations: 11.44 kB / 1.273 GB, free: 436 kB / 0.9669 GB Notification: Performance of SimCode: time 3.3e-07/0.7705, allocations: 0 / 1.273 GB, free: 436 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02311/0.7936, allocations: 1.073 MB / 1.274 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.09/8.884, allocations: 3.703 kB / 1.274 GB, free: 15.44 MB / 0.9825 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 420.0] 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: 14.974244232289493]