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.001435/0.001435, allocations: 108.2 kB / 17.54 MB, free: 4.746 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.001466/0.001466, allocations: 186.7 kB / 20.71 MB, free: 1.586 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.335/1.335, allocations: 225.6 MB / 249.3 MB, free: 3.176 MB / 190.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.553/2.553, allocations: 476.7 MB / 0.7628 GB, free: 15.29 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.001837/0.001837, allocations: 75.88 kB / 1.107 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7869/0.7887, allocations: 168.7 MB / 1.271 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001542/0.7903, allocations: 0.6091 MB / 1.272 GB, free: 7.352 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002231/0.7905, allocations: 45.17 kB / 1.272 GB, free: 7.324 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.691e-05/0.7905, allocations: 0.75 kB / 1.272 GB, free: 7.324 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.045e-05/0.7905, allocations: 4 kB / 1.272 GB, free: 7.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.651e-06/0.7905, allocations: 0 / 1.272 GB, free: 7.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.7908, allocations: 14.3 kB / 1.272 GB, free: 7.312 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.208e-05/0.7908, allocations: 3.078 kB / 1.272 GB, free: 7.312 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.097e-05/0.7908, allocations: 2.234 kB / 1.272 GB, free: 7.312 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.22e-05/0.7908, allocations: 5.547 kB / 1.272 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.025e-05/0.7909, allocations: 7.297 kB / 1.272 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.827e-06/0.7909, allocations: 0.7188 kB / 1.272 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.532e-05/0.7909, allocations: 5.438 kB / 1.272 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.646e-06/0.791, allocations: 5.781 kB / 1.272 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.633e-05/0.791, allocations: 2.953 kB / 1.272 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 7.752e-05/0.791, allocations: 14.03 kB / 1.272 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.791, allocations: 0.9375 kB / 1.272 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7911, allocations: 0.7188 kB / 1.272 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.7911, allocations: 3.938 kB / 1.272 GB, free: 7.289 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.0002085/0.7913, allocations: 316.1 kB / 1.272 GB, free: 6.938 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.7913, allocations: 9.938 kB / 1.272 GB, free: 6.938 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.41e-05/0.7913, allocations: 31.47 kB / 1.272 GB, free: 6.898 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.404e-05/0.7913, allocations: 2.234 kB / 1.272 GB, free: 6.898 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.648e-05/0.7914, allocations: 161.5 kB / 1.273 GB, free: 6.703 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.7914, allocations: 5.156 kB / 1.273 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.422e-06/0.7914, allocations: 1.906 kB / 1.273 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.203e-05/0.7915, allocations: 35.73 kB / 1.273 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.7915, allocations: 3.938 kB / 1.273 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-06/0.7915, allocations: 4 kB / 1.273 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.7915, allocations: 0.8125 kB / 1.273 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.3e-05/0.7915, allocations: 4.75 kB / 1.273 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.602e-05/0.7916, allocations: 149.2 kB / 1.273 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.095e-05/0.7917, allocations: 28.73 kB / 1.273 GB, free: 6.434 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.467e-05/0.7917, allocations: 7.469 kB / 1.273 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00012/0.7918, allocations: 86.16 kB / 1.273 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.499e-05/0.7918, allocations: 31.44 kB / 1.273 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 9.31e-07/0.7918, allocations: 0 / 1.273 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001176/0.7919, allocations: 48.72 kB / 1.273 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.276e-05/0.792, allocations: 53.03 kB / 1.273 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.976e-05/0.792, allocations: 94.7 kB / 1.273 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.871e-06/0.792, allocations: 25.7 kB / 1.273 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.736e-06/0.792, allocations: 80.89 kB / 1.273 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.711e-05/0.792, allocations: 8.922 kB / 1.273 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/0.792, allocations: 13.02 kB / 1.273 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.417e-05/0.7921, allocations: 312.9 kB / 1.274 GB, free: 5.633 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.207e-05/0.7921, allocations: 1.922 kB / 1.274 GB, free: 5.633 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.926e-06/0.7921, allocations: 6.953 kB / 1.274 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.721e-05/0.7921, allocations: 18.19 kB / 1.274 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.7921, allocations: 0.7031 kB / 1.274 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.893e-05/0.7922, allocations: 43.75 kB / 1.274 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.7922, allocations: 5.594 kB / 1.274 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.7922, allocations: 4.688 kB / 1.274 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.7922, allocations: 3.938 kB / 1.274 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.648e-05/0.7922, allocations: 5.172 kB / 1.274 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.7922, allocations: 0.9062 kB / 1.274 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.367e-05/0.7923, allocations: 4.031 kB / 1.274 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.927e-06/0.7923, allocations: 0.8438 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.515e-05/0.7923, allocations: 112.7 kB / 1.274 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.244e-06/0.7923, allocations: 0.9062 kB / 1.274 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.333e-05/0.7924, allocations: 46.52 kB / 1.274 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.7924, allocations: 1.406 kB / 1.274 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.7924, allocations: 3.984 kB / 1.274 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.7924, allocations: 0.9062 kB / 1.274 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.948e-05/0.7924, allocations: 149.8 kB / 1.274 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.7924, allocations: 0 / 1.274 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.216e-05/0.7925, allocations: 4.625 kB / 1.274 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.7925, allocations: 0 / 1.274 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.7925, allocations: 5.516 kB / 1.274 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.7925, allocations: 0.9375 kB / 1.274 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.7925, allocations: 0 / 1.274 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.596e-05/0.7925, allocations: 69.23 kB / 1.274 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.362e-05/0.7925, allocations: 81.94 kB / 1.274 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.047e-05/0.7926, allocations: 6.469 kB / 1.274 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.548e-06/0.7926, allocations: 0 / 1.274 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.118e-05/0.7926, allocations: 2.938 kB / 1.274 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.7926, allocations: 1.062 kB / 1.274 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.148e-06/0.7926, allocations: 75.28 kB / 1.274 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/0.7926, allocations: 0 / 1.274 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001687/0.7928, allocations: 4.406 kB / 1.274 GB, free: 4.953 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.0002297/0.793, allocations: 0.6221 MB / 1.275 GB, free: 4.336 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 7.614e-05/0.7931, allocations: 7.672 kB / 1.275 GB, free: 4.336 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.7931, allocations: 0 / 1.275 GB, free: 4.336 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.474e-05/0.7931, allocations: 5.375 kB / 1.275 GB, free: 4.336 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001156/0.7932, allocations: 4.281 kB / 1.275 GB, free: 4.336 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002327/0.7934, allocations: 125.1 kB / 1.275 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.038e-05/0.7935, allocations: 0.6725 MB / 1.276 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.158e-05/0.7935, allocations: 2.469 kB / 1.276 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.653e-05/0.7935, allocations: 9.406 kB / 1.276 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of SimCode: time 3.81e-07/0.7935, allocations: 3.938 kB / 1.276 GB, free: 3.48 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02107/0.8146, allocations: 1.046 MB / 1.277 GB, free: 3.137 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.961/7.775, allocations: 5.312 kB / 1.277 GB, free: 3.133 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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 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.csv","/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] Reference file matches [Calling sys.exit(0), Time elapsed: 13.258363478998945]