Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Utilities.Math.Functions.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.0008283/0.0008283, allocations: 80.52 kB / 19.95 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.0008084/0.0008084, allocations: 173.2 kB / 23.24 MB, free: 1.324 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.8731/0.8731, allocations: 177.1 MB / 203.5 MB, free: 5.734 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.902/1.902, allocations: 389.6 MB / 0.6343 GB, free: 12.59 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.Functions.Examples.Factorial,fileNamePrefix="Buildings_13_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_13_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.535e-06/2.535e-06, allocations: 0 / 1.001 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.367e-05/2.62e-05, allocations: 6.281 kB / 1.001 GB, free: 13.47 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.007091/0.007117, allocations: 0.6032 MB / 1.001 GB, free: 12.87 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002967/0.007414, allocations: 39.88 kB / 1.001 GB, free: 12.83 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.202e-05/0.007436, allocations: 0 / 1.001 GB, free: 12.83 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 1.481e-05/0.007451, allocations: 0 / 1.001 GB, free: 12.83 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.163e-06/0.007458, allocations: 0 / 1.001 GB, free: 12.83 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002683/0.007727, allocations: 23.84 kB / 1.001 GB, free: 12.81 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 5.034e-05/0.007777, allocations: 4 kB / 1.001 GB, free: 12.8 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 4.55e-05/0.007822, allocations: 0 / 1.001 GB, free: 12.8 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 2.958e-05/0.007852, allocations: 0 / 1.001 GB, free: 12.8 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 2.403e-05/0.007876, allocations: 7.984 kB / 1.001 GB, free: 12.8 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.00789, allocations: 4 kB / 1.001 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 8.753e-05/0.007978, allocations: 8 kB / 1.001 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 9.988e-06/0.007988, allocations: 0 / 1.001 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.633e-05/0.008004, allocations: 0 / 1.001 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001077/0.008112, allocations: 15.97 kB / 1.001 GB, free: 12.77 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.008117, allocations: 0 / 1.001 GB, free: 12.77 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.933e-06/0.008118, allocations: 0 / 1.001 GB, free: 12.77 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.008123, allocations: 3.938 kB / 1.001 GB, free: 12.77 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002773/0.0084, allocations: 238.5 kB / 1.002 GB, free: 12.5 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.008446, allocations: 9.344 kB / 1.002 GB, free: 12.49 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.582e-05/0.008482, allocations: 38.75 kB / 1.002 GB, free: 12.45 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.591e-05/0.008508, allocations: 0.9375 kB / 1.002 GB, free: 12.45 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.072e-05/0.008578, allocations: 105.8 kB / 1.002 GB, free: 12.32 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.008589, allocations: 384 / 1.002 GB, free: 12.32 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.924e-06/0.008597, allocations: 384 / 1.002 GB, free: 12.32 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.483e-05/0.008692, allocations: 38.19 kB / 1.002 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.0087, allocations: 192 / 1.002 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.008708, allocations: 4.312 kB / 1.002 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.008713, allocations: 4.125 kB / 1.002 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.571e-05/0.008749, allocations: 8 kB / 1.002 GB, free: 12.26 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001245/0.008874, allocations: 116.8 kB / 1.002 GB, free: 12.1 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 5.87e-05/0.008932, allocations: 30.59 kB / 1.002 GB, free: 12.06 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.11e-05/0.008953, allocations: 12.91 kB / 1.002 GB, free: 12.05 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001391/0.009093, allocations: 7.938 kB / 1.002 GB, free: 12.04 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.945e-05/0.009112, allocations: 30.56 kB / 1.002 GB, free: 12 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.009113, allocations: 0 / 1.002 GB, free: 12 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2): time 0.0001449/0.009258, allocations: 41.69 kB / 1.002 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.146e-05/0.009289, allocations: 55.34 kB / 1.002 GB, free: 11.89 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.372e-05/0.009323, allocations: 89.86 kB / 1.002 GB, free: 11.79 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.009334, allocations: 29.7 kB / 1.002 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 2.209e-05/0.009356, allocations: 84.27 kB / 1.002 GB, free: 11.67 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.009379, allocations: 7.891 kB / 1.002 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.05e-05/0.009409, allocations: 21.7 kB / 1.002 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.002112/0.01152, allocations: 310.8 kB / 1.003 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.139e-05/0.01154, allocations: 0 / 1.003 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.539e-05/0.01156, allocations: 7.938 kB / 1.003 GB, free: 11.31 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.27e-05/0.0116, allocations: 12.86 kB / 1.003 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.0116, allocations: 0 / 1.003 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.408e-05/0.01168, allocations: 37.69 kB / 1.003 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.01169, allocations: 12.09 kB / 1.003 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.0117, allocations: 0 / 1.003 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.01171, allocations: 3.938 kB / 1.003 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.643e-05/0.01178, allocations: 4 kB / 1.003 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.01178, allocations: 3.938 kB / 1.003 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.344e-05/0.0118, allocations: 0 / 1.003 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.0118, allocations: 8 kB / 1.003 GB, free: 11.22 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 (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 5.839e-05/0.01186, allocations: 116.4 kB / 1.003 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.901e-06/0.01187, allocations: 0 / 1.003 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.736e-05/0.01195, allocations: 44.84 kB / 1.003 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.01196, allocations: 4.031 kB / 1.003 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.01196, allocations: 3.938 kB / 1.003 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.01197, allocations: 0 / 1.003 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.624e-05/0.01204, allocations: 120.8 kB / 1.003 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.01204, allocations: 0 / 1.003 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.509e-05/0.01206, allocations: 0 / 1.003 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.01206, allocations: 4 kB / 1.003 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.01207, allocations: 0 / 1.003 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.01207, allocations: 0 / 1.003 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.01207, allocations: 3.938 kB / 1.003 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.271e-05/0.01213, allocations: 73 kB / 1.003 GB, free: 10.78 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 5.761e-06/0.01214, allocations: 4 kB / 1.003 GB, free: 10.78 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.746e-06/0.01215, allocations: 0 / 1.003 GB, free: 10.78 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.662e-06/0.01215, allocations: 0 / 1.003 GB, free: 10.78 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.232e-05/0.01219, allocations: 11.92 kB / 1.003 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.01219, allocations: 4 kB / 1.003 GB, free: 10.76 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.22e-05/0.01221, allocations: 75.28 kB / 1.003 GB, free: 10.69 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.01221, allocations: 0 / 1.003 GB, free: 10.69 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002001/0.01241, allocations: 4 kB / 1.003 GB, free: 10.68 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,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.0003297/0.01274, allocations: 0.6008 MB / 1.004 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 6.979e-05/0.01281, allocations: 8 kB / 1.004 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01281, allocations: 0 / 1.004 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 1.208e-05/0.01283, allocations: 7.984 kB / 1.004 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.01296, allocations: 7.938 kB / 1.004 GB, free: 10.03 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000295/0.01325, allocations: 110.6 kB / 1.004 GB, free: 9.883 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.036e-05/0.0133, allocations: 59.34 kB / 1.004 GB, free: 9.805 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 1.089e-05/0.01331, allocations: 0 / 1.004 GB, free: 9.805 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.253e-05/0.01333, allocations: 16.5 kB / 1.004 GB, free: 9.789 MB / 0.9636 GB Notification: Performance of SimCode: time 5.31e-07/0.01333, allocations: 4.125 kB / 1.004 GB, free: 9.785 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07841/0.09174, allocations: 1.704 MB / 1.006 GB, free: 8.211 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.98/7.072, allocations: 6.875 kB / 1.006 GB, free: 8.207 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu) > Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_fmpy.pipe ; mkfifo Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_fmpy_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 ../Buildings_13_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu) > Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.613482390530407]