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.001427/0.001427, allocations: 112.9 kB / 17.54 MB, free: 4.641 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.00144/0.00144, allocations: 189.9 kB / 20.71 MB, free: 1.484 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.283/1.283, allocations: 225.6 MB / 249.3 MB, free: 3.188 MB / 190.1 MB " [Timeout remaining time 179] 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.48/2.48, allocations: 476.7 MB / 0.7628 GB, free: 15.16 MB / 0.6075 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.001766/0.001766, allocations: 67.89 kB / 1.107 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.747/0.7488, allocations: 168.7 MB / 1.271 GB, free: 7.688 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001511/0.7503, allocations: 0.6049 MB / 1.272 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002196/0.7505, allocations: 46.22 kB / 1.272 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.4e-05/0.7505, allocations: 0 / 1.272 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.059e-05/0.7505, allocations: 2.734 kB / 1.272 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.879e-06/0.7505, allocations: 0 / 1.272 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001935/0.7507, allocations: 14.42 kB / 1.272 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.066e-05/0.7508, allocations: 7.312 kB / 1.272 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.52e-05/0.7508, allocations: 2 kB / 1.272 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.21e-05/0.7508, allocations: 4.797 kB / 1.272 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 1.776e-05/0.7508, allocations: 2.016 kB / 1.272 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 7.214e-06/0.7508, allocations: 0 / 1.272 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.45e-05/0.7509, allocations: 11.17 kB / 1.272 GB, free: 7.297 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.516e-06/0.7509, allocations: 0.8438 kB / 1.272 GB, free: 7.297 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.056e-05/0.7509, allocations: 5.453 kB / 1.272 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 7.281e-05/0.751, allocations: 14.66 kB / 1.272 GB, free: 7.285 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.751, allocations: 0 / 1.272 GB, free: 7.285 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.272e-06/0.751, allocations: 4.75 kB / 1.272 GB, free: 7.281 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.751, allocations: 0 / 1.272 GB, free: 7.281 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0001975/0.7512, allocations: 317.5 kB / 1.272 GB, free: 6.93 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.7513, allocations: 9.25 kB / 1.272 GB, free: 6.93 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.229e-05/0.7513, allocations: 35.62 kB / 1.272 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.822e-05/0.7513, allocations: 1.594 kB / 1.272 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.503e-05/0.7513, allocations: 165.5 kB / 1.273 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.7513, allocations: 1.125 kB / 1.273 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.833e-06/0.7514, allocations: 2.562 kB / 1.273 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.522e-05/0.7514, allocations: 34.58 kB / 1.273 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.7514, allocations: 3.938 kB / 1.273 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-06/0.7514, allocations: 1.312 kB / 1.273 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.7514, allocations: 0.6875 kB / 1.273 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3e-05/0.7515, allocations: 4.016 kB / 1.273 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.471e-05/0.7516, allocations: 152.9 kB / 1.273 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.942e-05/0.7516, allocations: 28.41 kB / 1.273 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.562e-05/0.7516, allocations: 11.95 kB / 1.273 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000117/0.7517, allocations: 81.39 kB / 1.273 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.521e-05/0.7518, allocations: 32.12 kB / 1.273 GB, free: 6.277 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.7518, allocations: 0.9375 kB / 1.273 GB, free: 6.277 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001225/0.7519, allocations: 44.47 kB / 1.273 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.081e-05/0.7519, allocations: 52.44 kB / 1.273 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.056e-05/0.7519, allocations: 90.47 kB / 1.273 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.292e-06/0.7519, allocations: 30.52 kB / 1.273 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.366e-06/0.7519, allocations: 84.27 kB / 1.273 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.462e-05/0.7519, allocations: 9 kB / 1.273 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.352e-05/0.752, allocations: 17.28 kB / 1.273 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.635e-05/0.752, allocations: 312.8 kB / 1.274 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.133e-05/0.752, allocations: 2.266 kB / 1.274 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.276e-06/0.752, allocations: 2.609 kB / 1.274 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.854e-05/0.7521, allocations: 14.91 kB / 1.274 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.7521, allocations: 4.062 kB / 1.274 GB, free: 5.602 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.872e-05/0.7521, allocations: 36.73 kB / 1.274 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.7521, allocations: 4.969 kB / 1.274 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.7521, allocations: 3.938 kB / 1.274 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.7521, allocations: 0.6875 kB / 1.274 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.392e-05/0.7522, allocations: 8.156 kB / 1.274 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.7522, allocations: 0.8125 kB / 1.274 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.237e-05/0.7522, allocations: 1.031 kB / 1.274 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-06/0.7522, allocations: 0.9062 kB / 1.274 GB, free: 5.562 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 (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 3.941e-05/0.7522, allocations: 115.3 kB / 1.274 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.832e-06/0.7523, allocations: 1.5 kB / 1.274 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.253e-05/0.7523, allocations: 47.22 kB / 1.274 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.7523, allocations: 0.75 kB / 1.274 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.7523, allocations: 4.688 kB / 1.274 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.7523, allocations: 4.688 kB / 1.274 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.412e-05/0.7524, allocations: 149.6 kB / 1.274 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.7524, allocations: 0.5156 kB / 1.274 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.106e-05/0.7524, allocations: 3.828 kB / 1.274 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.7524, allocations: 4.75 kB / 1.274 GB, free: 5.195 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.7524, allocations: 5.359 kB / 1.274 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.7524, allocations: 3.938 kB / 1.274 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.7524, allocations: 0.9062 kB / 1.274 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.063e-05/0.7525, allocations: 61.11 kB / 1.274 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.39e-05/0.7525, allocations: 79.02 kB / 1.274 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.045e-05/0.7525, allocations: 5.156 kB / 1.274 GB, free: 5.023 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.074e-05/0.7525, allocations: 8.938 kB / 1.274 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.772e-05/0.7525, allocations: 2.281 kB / 1.274 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.7525, allocations: 0.7812 kB / 1.274 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.839e-06/0.7526, allocations: 79.22 kB / 1.274 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4e-08/0.7526, allocations: 0.8438 kB / 1.274 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001723/0.7527, allocations: 4.047 kB / 1.274 GB, free: 4.938 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,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.0002427/0.753, allocations: 0.6126 MB / 1.275 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 7.755e-05/0.753, allocations: 16.38 kB / 1.275 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.753, allocations: 0 / 1.275 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.496e-05/0.7531, allocations: 5.234 kB / 1.275 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001164/0.7532, allocations: 1.281 kB / 1.275 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002303/0.7534, allocations: 118.6 kB / 1.275 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.419e-05/0.7535, allocations: 0.6764 MB / 1.276 GB, free: 3.48 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.147e-05/0.7535, allocations: 2.703 kB / 1.276 GB, free: 3.48 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.768e-05/0.7535, allocations: 10.41 kB / 1.276 GB, free: 3.473 MB / 0.9981 GB Notification: Performance of SimCode: time 2.91e-07/0.7535, allocations: 0 / 1.276 GB, free: 3.473 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02326/0.7768, allocations: 1.046 MB / 1.277 GB, free: 3.125 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.896/7.673, allocations: 7.594 kB / 1.277 GB, free: 3.125 MB / 0.9981 GB " [Timeout remaining time 292] (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 --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/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] "" Variables in the reference:time,fac Variables in the result:fac,n,time [Calling sys.exit(0), Time elapsed: 12.898899124000309]