Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Hydraulic.Examples.Windkessel_2element.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.000948/0.000948, allocations: 105.5 kB / 18.95 MB, free: 1.184 MB / 13.93 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.001627/0.001627, allocations: 216.7 kB / 22.25 MB, free: 3.574 MB / 13.93 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.9753/0.9753, allocations: 230.6 MB / 256 MB, free: 9.625 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo): time 0.0669/0.0669, allocations: 17.16 MB / 329.6 MB, free: 0.7266 MB / 250.7 MB " [Timeout remaining time 180] Using package Bodylight with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/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(Bodylight.Hydraulic.Examples.Windkessel_2element,fileNamePrefix="Bodylight_Bodylight_Hydraulic_Examples_Windkessel_2element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Bodylight.Hydraulic.Examples.Windkessel_2element,fileNamePrefix="Bodylight_Bodylight_Hydraulic_Examples_Windkessel_2element",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Bodylight requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 75.89 kB / 460.2 MB, free: 26.88 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0843/0.0858, allocations: 57.76 MB / 0.5058 GB, free: 1.008 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Hydraulic.Examples.Windkessel_2element): time 0.003089/0.08889, allocations: 2.36 MB / 0.5081 GB, free: 14.63 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009432/0.08983, allocations: 0.6078 MB / 0.5087 GB, free: 14.02 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.08994, allocations: 7.938 kB / 0.5087 GB, free: 14.01 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001396/0.09007, allocations: 27.7 kB / 0.5087 GB, free: 13.98 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.09028, allocations: 71.45 kB / 0.5088 GB, free: 13.91 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001574/0.09044, allocations: 59.86 kB / 0.5089 GB, free: 13.86 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002463/0.09068, allocations: 230.9 kB / 0.5091 GB, free: 13.63 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.09081, allocations: 29.64 kB / 0.5091 GB, free: 13.6 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.09102, allocations: 87.7 kB / 0.5092 GB, free: 13.51 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.09116, allocations: 83.56 kB / 0.5093 GB, free: 13.43 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.913e-05/0.09119, allocations: 19.98 kB / 0.5093 GB, free: 13.41 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.602e-05/0.09122, allocations: 12 kB / 0.5093 GB, free: 13.4 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.284e-05/0.09125, allocations: 27.92 kB / 0.5093 GB, free: 13.37 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.325e-05/0.09133, allocations: 71.72 kB / 0.5094 GB, free: 13.3 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002094/0.09154, allocations: 175.5 kB / 0.5096 GB, free: 13.13 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.09154, allocations: 0 / 0.5096 GB, free: 13.13 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.09154, allocations: 0 / 0.5096 GB, free: 13.13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.09155, allocations: 0 / 0.5096 GB, free: 13.13 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006413/0.09219, allocations: 401.8 kB / 0.51 GB, free: 12.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.09223, allocations: 12.03 kB / 0.51 GB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.374e-05/0.09227, allocations: 42.73 kB / 0.51 GB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.573e-05/0.09232, allocations: 20.84 kB / 0.51 GB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002542/0.09257, allocations: 173.7 kB / 0.5102 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.057e-05/0.09264, allocations: 60.2 kB / 0.5103 GB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.676e-05/0.09267, allocations: 16.12 kB / 0.5103 GB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002769/0.09295, allocations: 173.1 kB / 0.5104 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.09296, allocations: 0 / 0.5104 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/0.09298, allocations: 11.98 kB / 0.5104 GB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.09298, allocations: 0 / 0.5104 GB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000228/0.09321, allocations: 108.6 kB / 0.5105 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006411/0.09385, allocations: 428.3 kB / 0.511 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004028/0.09425, allocations: 150.4 kB / 0.5111 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.09437, allocations: 68.75 kB / 0.5112 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.09438, allocations: 0 / 0.5112 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001867/0.09457, allocations: 133 kB / 0.5113 GB, free: 11.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.092e-06/0.09457, allocations: 4 kB / 0.5113 GB, free: 11.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004256/0.095, allocations: 205.5 kB / 0.5115 GB, free: 11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.09503, allocations: 59.34 kB / 0.5115 GB, free: 10.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001375/0.09517, allocations: 171 kB / 0.5117 GB, free: 10.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.09518, allocations: 29.7 kB / 0.5117 GB, free: 10.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.299e-05/0.09525, allocations: 116 kB / 0.5119 GB, free: 10.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/0.09528, allocations: 39.64 kB / 0.5119 GB, free: 10.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-05/0.09533, allocations: 37.7 kB / 0.5119 GB, free: 10.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.414e-05/0.09543, allocations: 330.8 kB / 0.5122 GB, free: 10.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.462e-05/0.09552, allocations: 39.97 kB / 0.5123 GB, free: 10.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.09563, allocations: 73.52 kB / 0.5123 GB, free: 10.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/0.09587, allocations: 130.6 kB / 0.5125 GB, free: 9.934 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.09588, allocations: 4 kB / 0.5125 GB, free: 9.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002678/0.09614, allocations: 165.4 kB / 0.5126 GB, free: 9.762 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.09616, allocations: 11.98 kB / 0.5126 GB, free: 9.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.09616, allocations: 0 / 0.5126 GB, free: 9.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.09618, allocations: 0 / 0.5126 GB, free: 9.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.09638, allocations: 52 kB / 0.5127 GB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.351e-06/0.09639, allocations: 0 / 0.5127 GB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.434e-05/0.09647, allocations: 19.88 kB / 0.5127 GB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.09648, allocations: 11.94 kB / 0.5127 GB, free: 9.668 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: pulses.HP:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"duration of cardiac cycle\" type: Real pulses.T0:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"beginning of cardiac cycle\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.pulses.HP,$PRE.pulses.T0,pulses.b,$whenCondition1,pulses.TD2,pulses.HP,pulses.T0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 0.0001495/0.09663, allocations: 137.8 kB / 0.5129 GB, free: 9.523 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.967e-05/0.09665, allocations: 15.91 kB / 0.5129 GB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003011/0.09695, allocations: 179 kB / 0.513 GB, free: 9.324 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.09696, allocations: 8.031 kB / 0.5131 GB, free: 9.316 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.09696, allocations: 0 / 0.5131 GB, free: 9.316 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.09696, allocations: 0 / 0.5131 GB, free: 9.316 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004991/0.09746, allocations: 445 kB / 0.5135 GB, free: 8.836 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.09747, allocations: 7.938 kB / 0.5135 GB, free: 8.828 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001751/0.09764, allocations: 39.89 kB / 0.5135 GB, free: 8.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.09764, allocations: 4 kB / 0.5135 GB, free: 8.785 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.09766, allocations: 4 kB / 0.5135 GB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.09766, allocations: 0 / 0.5135 GB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.09766, allocations: 0 / 0.5135 GB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004271/0.09809, allocations: 331.3 kB / 0.5138 GB, free: 8.441 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.372e-05/0.09811, allocations: 19.88 kB / 0.5139 GB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.112e-05/0.09813, allocations: 0 / 0.5139 GB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.09823, allocations: 15.98 kB / 0.5139 GB, free: 8.406 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.295e-05/0.09828, allocations: 11.97 kB / 0.5139 GB, free: 8.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.09829, allocations: 4 kB / 0.5139 GB, free: 8.391 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.084e-05/0.09837, allocations: 127.2 kB / 0.514 GB, free: 8.266 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.09837, allocations: 4 kB / 0.514 GB, free: 8.262 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002768/0.09865, allocations: 47.94 kB / 0.5141 GB, free: 8.215 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (arteries.volume) * Number of discrete variables: 5 (pulses.b,$whenCondition1,pulses.T0,pulses.HP,pulses.TD2) * Number of discrete states: 2 (pulses.T0,pulses.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006208/0.09927, allocations: 0.8547 MB / 0.5149 GB, free: 7.336 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002637/0.09953, allocations: 120 kB / 0.515 GB, free: 7.219 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.09954, allocations: 0 / 0.515 GB, free: 7.219 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.09966, allocations: 67.64 kB / 0.5151 GB, free: 7.156 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.09998, allocations: 34.5 kB / 0.5151 GB, free: 7.125 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.102, allocations: 1.99 MB / 0.5171 GB, free: 5.039 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.001e-05/0.1021, allocations: 103.5 kB / 0.5172 GB, free: 4.914 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.078e-05/0.1021, allocations: 17.48 kB / 0.5172 GB, free: 4.898 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.855e-05/0.1022, allocations: 47.41 kB / 0.5172 GB, free: 4.852 MB / 378.7 MB Notification: Performance of SimCode: time 9.22e-07/0.1022, allocations: 0 / 0.5172 GB, free: 4.852 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08608/0.1883, allocations: 4.395 MB / 0.5215 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.366/7.554, allocations: 7.219 kB / 0.5215 GB, free: 0.5898 MB / 378.7 MB " [Timeout remaining time 652] (rm -f Bodylight_Bodylight.Hydraulic.Examples.Windkessel_2element.pipe ; mkfifo Bodylight_Bodylight.Hydraulic.Examples.Windkessel_2element.pipe ; head -c 1048576 < Bodylight_Bodylight.Hydraulic.Examples.Windkessel_2element.pipe >> ../files/Bodylight_Bodylight.Hydraulic.Examples.Windkessel_2element.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Bodylight_Bodylight_Hydraulic_Examples_Windkessel_2element_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ../Bodylight_Bodylight_Hydraulic_Examples_Windkessel_2element.fmu) > Bodylight_Bodylight.Hydraulic.Examples.Windkessel_2element.pipe 2>&1) [Timeout 52.5] (rm -f Bodylight_Bodylight.Hydraulic.Examples.Windkessel_2element_fmpy.pipe ; mkfifo Bodylight_Bodylight.Hydraulic.Examples.Windkessel_2element_fmpy.pipe ; head -c 1048576 < Bodylight_Bodylight.Hydraulic.Examples.Windkessel_2element_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Bodylight_Bodylight.Hydraulic.Examples.Windkessel_2element_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Bodylight_Bodylight.Hydraulic.Examples.Windkessel_2element_fmpy_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ../Bodylight_Bodylight_Hydraulic_Examples_Windkessel_2element.fmu) > Bodylight_Bodylight.Hydraulic.Examples.Windkessel_2element_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.922318904660642]