Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.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.001025/0.001025, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001129/0.001129, allocations: 165.9 kB / 22.46 MB, free: 2.102 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.8694/0.8694, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.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.05657/0.05657, allocations: 12.74 MB / 271.9 MB, free: 0.4922 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_4element,fileNamePrefix="Bodylight_Bodylight_Hydraulic_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Bodylight.Hydraulic.Examples.Windkessel_4element,fileNamePrefix="Bodylight_Bodylight_Hydraulic_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 402.6 MB, free: 9.812 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.215e-05/1.344e-05, allocations: 2.281 kB / 402.6 MB, free: 9.809 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Hydraulic.Examples.Windkessel_4element): time 0.002372/0.002386, allocations: 2.648 MB / 405.3 MB, free: 7.148 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007867/0.003172, allocations: 0.67 MB / 405.9 MB, free: 6.477 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.003288, allocations: 7.938 kB / 405.9 MB, free: 6.469 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001622/0.00345, allocations: 47.52 kB / 406 MB, free: 6.422 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002486/0.003698, allocations: 91.22 kB / 406.1 MB, free: 6.332 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001578/0.003856, allocations: 83.77 kB / 406.1 MB, free: 6.25 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002718/0.004128, allocations: 342.1 kB / 406.5 MB, free: 5.914 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.004268, allocations: 52.48 kB / 406.5 MB, free: 5.859 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00024/0.004508, allocations: 179.6 kB / 406.7 MB, free: 5.684 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.004644, allocations: 91.72 kB / 406.8 MB, free: 5.594 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.004669, allocations: 20 kB / 406.8 MB, free: 5.574 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.619e-05/0.004695, allocations: 20 kB / 406.8 MB, free: 5.555 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.557e-05/0.00473, allocations: 51.81 kB / 406.9 MB, free: 5.504 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.076e-05/0.004801, allocations: 87.83 kB / 407 MB, free: 5.418 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.005011, allocations: 251.2 kB / 407.2 MB, free: 5.172 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.005013, allocations: 0 / 407.2 MB, free: 5.172 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.005013, allocations: 0 / 407.2 MB, free: 5.172 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.005017, allocations: 0 / 407.2 MB, free: 5.172 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0008356/0.005852, allocations: 469 kB / 407.7 MB, free: 4.684 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.005887, allocations: 11.98 kB / 407.7 MB, free: 4.672 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.414e-05/0.005931, allocations: 54.73 kB / 407.7 MB, free: 4.609 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.319e-05/0.005974, allocations: 24.8 kB / 407.8 MB, free: 4.586 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000238/0.006212, allocations: 197.3 kB / 408 MB, free: 4.367 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.676e-05/0.006299, allocations: 127.3 kB / 408.1 MB, free: 4.219 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.57e-05/0.006324, allocations: 16.38 kB / 408.1 MB, free: 4.203 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.006594, allocations: 223.8 kB / 408.3 MB, free: 3.973 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.006608, allocations: 3.938 kB / 408.3 MB, free: 3.969 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.732e-05/0.006625, allocations: 4 kB / 408.3 MB, free: 3.965 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.006631, allocations: 4 kB / 408.3 MB, free: 3.961 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002465/0.006878, allocations: 171.5 kB / 408.5 MB, free: 3.793 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006849/0.007563, allocations: 0.5226 MB / 409 MB, free: 3.227 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/0.007957, allocations: 178.5 kB / 409.2 MB, free: 3.043 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.008128, allocations: 109.2 kB / 409.3 MB, free: 2.934 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.008147, allocations: 4 kB / 409.3 MB, free: 2.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001886/0.008335, allocations: 152.9 kB / 409.5 MB, free: 2.762 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 1.553e-06/0.008337, allocations: 3.938 kB / 409.5 MB, free: 2.758 MB / 378.7 MB Notification: Performance of matching and sorting (n=18): time 0.0003955/0.008732, allocations: 260.6 kB / 409.7 MB, free: 2.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.615e-05/0.008758, allocations: 59.41 kB / 409.8 MB, free: 2.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.008883, allocations: 195.9 kB / 410 MB, free: 2.227 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.008899, allocations: 29.7 kB / 410 MB, free: 2.191 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.904e-05/0.008958, allocations: 132.4 kB / 410.1 MB, free: 2.055 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.756e-05/0.008996, allocations: 59.48 kB / 410.2 MB, free: 1.996 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.904e-05/0.009045, allocations: 41.69 kB / 410.2 MB, free: 1.949 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.16e-05/0.009126, allocations: 334.8 kB / 410.5 MB, free: 1.613 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.009229, allocations: 59.95 kB / 410.6 MB, free: 1.555 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.009337, allocations: 98.38 kB / 410.7 MB, free: 1.449 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005086/0.009845, allocations: 303.5 kB / 411 MB, free: 1.137 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.009847, allocations: 0 / 411 MB, free: 1.137 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002609/0.01011, allocations: 232.3 kB / 411.2 MB, free: 0.9062 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.01012, allocations: 4 kB / 411.2 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.01012, allocations: 0 / 411.2 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.01013, allocations: 4 kB / 411.2 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.01038, allocations: 79.94 kB / 411.3 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.01039, allocations: 4 kB / 411.3 MB, free: 0.8164 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.864e-05/0.01047, allocations: 31.81 kB / 411.3 MB, free: 0.7852 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.749e-06/0.01048, allocations: 4 kB / 411.3 MB, free: 0.7812 MB / 378.7 MB Warning: Assuming fixed start value for the following 3 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 inertia.q_in.q:VARIABLE(flow=true unit = \"m3/s\" fixed = true nominal = 1.6666666666666667e-8 ) \"Volume flow\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (24): * Single equations (assignments): 24 * 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.0001349/0.01061, allocations: 138.3 kB / 411.5 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.056e-05/0.01063, allocations: 27.86 kB / 411.5 MB, free: 0.6094 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002857/0.01092, allocations: 211.3 kB / 411.7 MB, free: 408 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.01092, allocations: 0 / 411.7 MB, free: 408 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.01092, allocations: 0 / 411.7 MB, free: 408 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.01093, allocations: 7.938 kB / 411.7 MB, free: 400 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005171/0.01144, allocations: 0.5207 MB / 412.2 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.01145, allocations: 0 / 412.2 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002224/0.01167, allocations: 67.95 kB / 412.3 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.01167, allocations: 3.984 kB / 412.3 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.01168, allocations: 7.938 kB / 412.3 MB, free: 15.74 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.01168, allocations: 4 kB / 412.3 MB, free: 15.74 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.01168, allocations: 0 / 412.3 MB, free: 15.74 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003819/0.01207, allocations: 378.5 kB / 412.7 MB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.054e-05/0.01209, allocations: 23.81 kB / 412.7 MB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.306e-05/0.01211, allocations: 7.938 kB / 412.7 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.853e-05/0.0122, allocations: 24.05 kB / 412.7 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.258e-05/0.01224, allocations: 11.97 kB / 412.8 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.01226, allocations: 8 kB / 412.8 MB, free: 15.28 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.521e-05/0.01233, allocations: 145.5 kB / 412.9 MB, free: 15.14 MB / 394.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01233, allocations: 0 / 412.9 MB, free: 15.14 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001855/0.01252, allocations: 55.95 kB / 413 MB, free: 15.09 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (arteries.volume,inertia.q_in.q) * 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 (18): * Single equations (assignments): 15 * 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.00054/0.01306, allocations: 0.9152 MB / 413.9 MB, free: 14.14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002451/0.0133, allocations: 155.8 kB / 414 MB, free: 13.99 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.0133, allocations: 0 / 414 MB, free: 13.99 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.01341, allocations: 79.2 kB / 414.1 MB, free: 13.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.01369, allocations: 39.84 kB / 414.1 MB, free: 13.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.01583, allocations: 2.26 MB / 416.4 MB, free: 11.51 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.678e-05/0.0159, allocations: 129.6 kB / 416.5 MB, free: 11.37 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 6.458e-05/0.01597, allocations: 21.95 kB / 416.6 MB, free: 11.35 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.724e-05/0.01605, allocations: 68.41 kB / 416.6 MB, free: 11.28 MB / 394.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01605, allocations: 0 / 416.6 MB, free: 11.28 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07494/0.09099, allocations: 5.399 MB / 422 MB, free: 6.016 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.546/7.637, allocations: 8 kB / 422 MB, free: 6.008 MB / 394.7 MB " [Timeout remaining time 652] (rm -f Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.pipe ; mkfifo Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.pipe ; head -c 1048576 < Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.pipe >> ../files/Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Bodylight_Bodylight_Hydraulic_Examples_Windkessel_4element_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ../Bodylight_Bodylight_Hydraulic_Examples_Windkessel_4element.fmu) > Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.pipe 2>&1) [Timeout 52.5] (rm -f Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element_fmpy.pipe ; mkfifo Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element_fmpy.pipe ; head -c 1048576 < Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element_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_4element.fmu) > Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.752442168071866]