Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 80.55 kB / 19.96 MB, free: 4.602 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 177.2 kB / 23.23 MB, free: 1.328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9204/0.9204, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.863/1.863, allocations: 389.6 MB / 0.6343 GB, free: 12.58 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_13_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_13_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 1.001 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.132e-05/1.286e-05, allocations: 2.281 kB / 1.001 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001688/0.001701, allocations: 1.531 MB / 1.002 GB, free: 11.98 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002939/0.001994, allocations: 128.3 kB / 1.002 GB, free: 11.86 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.387e-05/0.002028, allocations: 3.938 kB / 1.002 GB, free: 11.86 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.38e-05/0.002052, allocations: 0 / 1.002 GB, free: 11.86 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 3.81e-05/0.00209, allocations: 3.938 kB / 1.002 GB, free: 11.85 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.002312, allocations: 31.91 kB / 1.002 GB, free: 11.82 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 6.201e-05/0.002374, allocations: 27.92 kB / 1.002 GB, free: 11.79 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.232e-05/0.002466, allocations: 3.984 kB / 1.002 GB, free: 11.79 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 5.402e-05/0.00252, allocations: 23.92 kB / 1.002 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.371e-05/0.002564, allocations: 11.98 kB / 1.002 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.002579, allocations: 4 kB / 1.002 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.426e-05/0.002633, allocations: 11.98 kB / 1.002 GB, free: 11.74 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.21e-05/0.002645, allocations: 7.984 kB / 1.002 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.688e-05/0.002662, allocations: 8 kB / 1.002 GB, free: 11.72 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 9.926e-05/0.002761, allocations: 43.81 kB / 1.002 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.002763, allocations: 7.938 kB / 1.002 GB, free: 11.67 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.62e-07/0.002764, allocations: 0 / 1.002 GB, free: 11.67 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.166e-06/0.002767, allocations: 0 / 1.002 GB, free: 11.67 MB / 0.9636 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.0003106/0.003078, allocations: 270.3 kB / 1.003 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.003111, allocations: 13.34 kB / 1.003 GB, free: 11.36 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.789e-05/0.003138, allocations: 30.75 kB / 1.003 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.087e-05/0.003159, allocations: 4.922 kB / 1.003 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.429e-05/0.003224, allocations: 109.8 kB / 1.003 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.003241, allocations: 4.375 kB / 1.003 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.165e-06/0.003249, allocations: 4.375 kB / 1.003 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001191/0.003368, allocations: 58.22 kB / 1.003 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.003376, allocations: 4.188 kB / 1.003 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.003383, allocations: 384 / 1.003 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.003387, allocations: 4.125 kB / 1.003 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.552e-05/0.003483, allocations: 43.89 kB / 1.003 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002603/0.003743, allocations: 224.1 kB / 1.003 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000189/0.003932, allocations: 62.59 kB / 1.003 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.717e-05/0.003979, allocations: 24.78 kB / 1.003 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 6.38e-05/0.004043, allocations: 15.92 kB / 1.003 GB, free: 10.69 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.541e-05/0.004058, allocations: 34.56 kB / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.004059, allocations: 3.938 kB / 1.003 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.000208/0.004267, allocations: 85.64 kB / 1.003 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.428e-05/0.004292, allocations: 51.41 kB / 1.003 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.975e-05/0.004341, allocations: 105.8 kB / 1.004 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 8.416e-06/0.00435, allocations: 25.7 kB / 1.004 GB, free: 10.35 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.767e-05/0.004388, allocations: 92.09 kB / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.242e-05/0.0044, allocations: 3.953 kB / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.004425, allocations: 21.7 kB / 1.004 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.004537, allocations: 310.8 kB / 1.004 GB, free: 9.91 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.778e-05/0.004585, allocations: 23.97 kB / 1.004 GB, free: 9.887 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.75e-05/0.004622, allocations: 15.98 kB / 1.004 GB, free: 9.871 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.405e-05/0.004706, allocations: 52.75 kB / 1.004 GB, free: 9.816 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.004708, allocations: 3.938 kB / 1.004 GB, free: 9.812 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001042/0.004812, allocations: 78.06 kB / 1.004 GB, free: 9.73 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.004822, allocations: 4 kB / 1.004 GB, free: 9.727 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.004826, allocations: 0 / 1.004 GB, free: 9.727 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.004838, allocations: 4 kB / 1.004 GB, free: 9.723 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.835e-05/0.004876, allocations: 11.98 kB / 1.004 GB, free: 9.711 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.004881, allocations: 3.984 kB / 1.004 GB, free: 9.707 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.506e-05/0.004906, allocations: 15.92 kB / 1.004 GB, free: 9.691 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-06/0.004911, allocations: 4 kB / 1.004 GB, free: 9.688 MB / 0.9636 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 5.27e-05/0.004964, allocations: 113.9 kB / 1.004 GB, free: 9.566 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.306e-05/0.004977, allocations: 7.938 kB / 1.004 GB, free: 9.559 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001402/0.005117, allocations: 81.27 kB / 1.004 GB, free: 9.465 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.005119, allocations: 0 / 1.004 GB, free: 9.465 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.005123, allocations: 0 / 1.004 GB, free: 9.465 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.005126, allocations: 0 / 1.004 GB, free: 9.465 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.598e-05/0.005222, allocations: 136.7 kB / 1.005 GB, free: 9.289 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-07/0.005222, allocations: 0 / 1.005 GB, free: 9.289 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.004e-05/0.005252, allocations: 15.92 kB / 1.005 GB, free: 9.273 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.005254, allocations: 0 / 1.005 GB, free: 9.273 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-06/0.00526, allocations: 3.938 kB / 1.005 GB, free: 9.27 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.005262, allocations: 4 kB / 1.005 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.21e-07/0.005262, allocations: 0 / 1.005 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001298/0.005392, allocations: 171.4 kB / 1.005 GB, free: 9.082 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 6.282e-06/0.005398, allocations: 7.938 kB / 1.005 GB, free: 9.074 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.025e-06/0.005406, allocations: 4 kB / 1.005 GB, free: 9.07 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.759e-05/0.005444, allocations: 7.984 kB / 1.005 GB, free: 9.062 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.119e-05/0.005485, allocations: 7.984 kB / 1.005 GB, free: 9.055 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.005488, allocations: 0 / 1.005 GB, free: 9.055 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.315e-05/0.005511, allocations: 83.28 kB / 1.005 GB, free: 8.973 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.005511, allocations: 0 / 1.005 GB, free: 8.973 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001447/0.005655, allocations: 8 kB / 1.005 GB, free: 8.965 MB / 0.9636 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.0003027/0.005958, allocations: 0.7085 MB / 1.006 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001177/0.006076, allocations: 47.89 kB / 1.006 GB, free: 8.184 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 9.11e-07/0.006077, allocations: 0 / 1.006 GB, free: 8.184 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 4.572e-05/0.006123, allocations: 27.97 kB / 1.006 GB, free: 8.156 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001753/0.006298, allocations: 0 / 1.006 GB, free: 8.156 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002956/0.006594, allocations: 146.6 kB / 1.006 GB, free: 7.973 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.851e-05/0.006632, allocations: 71.22 kB / 1.006 GB, free: 7.883 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 1.982e-05/0.006652, allocations: 4 kB / 1.006 GB, free: 7.879 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.935e-05/0.006681, allocations: 16.5 kB / 1.006 GB, free: 7.863 MB / 0.9636 GB Notification: Performance of SimCode: time 5.91e-07/0.006682, allocations: 3.938 kB / 1.006 GB, free: 7.859 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07693/0.08362, allocations: 2.269 MB / 1.008 GB, free: 5.727 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.011/7.094, allocations: 1.891 kB / 1.008 GB, free: 5.727 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_13_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_13_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_13_Buildings.Utilities.Math.Examples.Factorial.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Utilities_Math_Examples_Factorial.fmu) > Buildings_13_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Utilities.Math.Examples.Factorial_fmpy.pipe ; mkfifo Buildings_13_Buildings.Utilities.Math.Examples.Factorial_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Math.Examples.Factorial_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Utilities.Math.Examples.Factorial_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Utilities.Math.Examples.Factorial_fmpy_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 ../Buildings_13_Buildings_Utilities_Math_Examples_Factorial.fmu) > Buildings_13_Buildings.Utilities.Math.Examples.Factorial_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.718233264051378]