Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Hydraulic.Examples.Windkessel_3element.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.001258/0.001258, 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.001527/0.001527, allocations: 165.9 kB / 22.46 MB, free: 2.105 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.93/0.93, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.05522/0.05522, allocations: 12.75 MB / 271.9 MB, free: 496 kB / 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_3element,fileNamePrefix="Bodylight_Bodylight_Hydraulic_Examples_Windkessel_3element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Bodylight.Hydraulic.Examples.Windkessel_3element,fileNamePrefix="Bodylight_Bodylight_Hydraulic_Examples_Windkessel_3element",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 402.6 MB, free: 8.609 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.012e-05/2.18e-05, allocations: 6.219 kB / 402.6 MB, free: 8.602 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Hydraulic.Examples.Windkessel_3element): time 0.002533/0.002555, allocations: 2.509 MB / 405.1 MB, free: 6.078 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.003585, allocations: 0.6388 MB / 405.7 MB, free: 5.438 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.003699, allocations: 7.938 kB / 405.8 MB, free: 5.43 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.003824, allocations: 43.58 kB / 405.8 MB, free: 5.387 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000203/0.004027, allocations: 79.31 kB / 405.9 MB, free: 5.309 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001718/0.004199, allocations: 71.78 kB / 405.9 MB, free: 5.238 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002607/0.00446, allocations: 294.4 kB / 406.2 MB, free: 4.949 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.00459, allocations: 37.78 kB / 406.3 MB, free: 4.91 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002527/0.004842, allocations: 151.7 kB / 406.4 MB, free: 4.762 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.004972, allocations: 79.8 kB / 406.5 MB, free: 4.684 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.446e-05/0.004996, allocations: 19.94 kB / 406.5 MB, free: 4.664 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.313e-05/0.005019, allocations: 16 kB / 406.5 MB, free: 4.648 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.537e-05/0.005055, allocations: 39.83 kB / 406.6 MB, free: 4.609 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.42e-05/0.005129, allocations: 75.83 kB / 406.6 MB, free: 4.535 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003111/0.00544, allocations: 219.3 kB / 406.9 MB, free: 4.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.005446, allocations: 4 kB / 406.9 MB, free: 4.316 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.005448, allocations: 3.938 kB / 406.9 MB, free: 4.312 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.005461, allocations: 0 / 406.9 MB, free: 4.312 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0008412/0.006302, allocations: 433.4 kB / 407.3 MB, free: 3.859 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.006349, allocations: 11.98 kB / 407.3 MB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.684e-05/0.006406, allocations: 50.73 kB / 407.3 MB, free: 3.789 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.684e-05/0.006462, allocations: 28.73 kB / 407.4 MB, free: 3.762 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.006792, allocations: 182 kB / 407.6 MB, free: 3.559 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.702e-05/0.006889, allocations: 123.4 kB / 407.7 MB, free: 3.414 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.006918, allocations: 16.38 kB / 407.7 MB, free: 3.398 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002776/0.007195, allocations: 193.2 kB / 407.9 MB, free: 3.199 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.007209, allocations: 3.938 kB / 407.9 MB, free: 3.195 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.007229, allocations: 8 kB / 407.9 MB, free: 3.188 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.007236, allocations: 4 kB / 407.9 MB, free: 3.184 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002442/0.00748, allocations: 143.8 kB / 408 MB, free: 3.043 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007605/0.00824, allocations: 475.3 kB / 408.5 MB, free: 2.535 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004879/0.008728, allocations: 166.4 kB / 408.7 MB, free: 2.363 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.008845, allocations: 76.81 kB / 408.7 MB, free: 2.285 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.008867, allocations: 256 / 408.7 MB, free: 2.285 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001884/0.009055, allocations: 137 kB / 408.9 MB, free: 2.133 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.009056, allocations: 0 / 408.9 MB, free: 2.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004158/0.009472, allocations: 242.7 kB / 409.1 MB, free: 1.891 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.009506, allocations: 55.41 kB / 409.2 MB, free: 1.824 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.009642, allocations: 190.5 kB / 409.3 MB, free: 1.629 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.009661, allocations: 29.7 kB / 409.4 MB, free: 1.594 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.534e-05/0.009726, allocations: 124 kB / 409.5 MB, free: 1.469 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.545e-05/0.009761, allocations: 47.59 kB / 409.5 MB, free: 1.422 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.394e-05/0.009815, allocations: 37.7 kB / 409.6 MB, free: 1.379 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.009918, allocations: 326.8 kB / 409.9 MB, free: 1.051 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.79e-05/0.01002, allocations: 51.95 kB / 410 MB, free: 1 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.01013, allocations: 94.52 kB / 410 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002608/0.01039, allocations: 150.8 kB / 410.2 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.01039, allocations: 0 / 410.2 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002958/0.01069, allocations: 193.4 kB / 410.4 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.0107, allocations: 8 kB / 410.4 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.01071, allocations: 3.938 kB / 410.4 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.01073, allocations: 8.031 kB / 410.4 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002619/0.01099, allocations: 68.02 kB / 410.5 MB, free: 472 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.011, allocations: 0 / 410.5 MB, free: 472 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.238e-05/0.01108, allocations: 31.77 kB / 410.5 MB, free: 440 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.01109, allocations: 8 kB / 410.5 MB, free: 432 kB / 330.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: 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 (20): * Single equations (assignments): 20 * 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.0001513/0.01124, allocations: 149.6 kB / 410.7 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.857e-05/0.01127, allocations: 11.91 kB / 410.7 MB, free: 260 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002962/0.01157, allocations: 192.8 kB / 410.9 MB, free: 68 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.01157, allocations: 4 kB / 410.9 MB, free: 64 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.01158, allocations: 0 / 410.9 MB, free: 64 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.01158, allocations: 3.984 kB / 410.9 MB, free: 60 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1626/0.1742, allocations: 482.8 kB / 411.3 MB, free: 21.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.1742, allocations: 0 / 411.3 MB, free: 21.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004011/0.1746, allocations: 58.88 kB / 411.4 MB, free: 21.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.1746, allocations: 1.188 kB / 411.4 MB, free: 21.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.1746, allocations: 2.531 kB / 411.4 MB, free: 21.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.1746, allocations: 1.891 kB / 411.4 MB, free: 21.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1747, allocations: 0 / 411.4 MB, free: 21.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006027/0.1753, allocations: 357.9 kB / 411.7 MB, free: 21.12 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.144e-05/0.1753, allocations: 20.34 kB / 411.8 MB, free: 21.12 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/0.1753, allocations: 8.219 kB / 411.8 MB, free: 21.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.1755, allocations: 13.98 kB / 411.8 MB, free: 21.12 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.7e-05/0.1755, allocations: 10.53 kB / 411.8 MB, free: 21.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.366e-05/0.1755, allocations: 8.547 kB / 411.8 MB, free: 21.12 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001039/0.1757, allocations: 136.5 kB / 411.9 MB, free: 21.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1757, allocations: 0 / 411.9 MB, free: 21.05 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003364/0.176, allocations: 50.73 kB / 412 MB, free: 21.05 MB / 330.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 (15): * Single equations (assignments): 12 * 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.0007219/0.1767, allocations: 0.8873 MB / 412.9 MB, free: 20.38 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004052/0.1771, allocations: 137.6 kB / 413 MB, free: 20.35 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1771, allocations: 1.125 kB / 413 MB, free: 20.35 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.1773, allocations: 69.06 kB / 413.1 MB, free: 20.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.1777, allocations: 38.91 kB / 413.1 MB, free: 20.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.1803, allocations: 2.074 MB / 415.2 MB, free: 18.83 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.118e-05/0.1804, allocations: 113.4 kB / 415.3 MB, free: 18.75 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.1805, allocations: 22.2 kB / 415.3 MB, free: 18.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.1806, allocations: 57.27 kB / 415.4 MB, free: 18.71 MB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.1806, allocations: 0 / 415.4 MB, free: 18.71 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08114/0.2617, allocations: 4.972 MB / 420.3 MB, free: 17.53 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.291/7.553, allocations: 17.17 kB / 420.4 MB, free: 17.51 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Bodylight_Bodylight.Hydraulic.Examples.Windkessel_3element.pipe ; mkfifo Bodylight_Bodylight.Hydraulic.Examples.Windkessel_3element.pipe ; head -c 1048576 < Bodylight_Bodylight.Hydraulic.Examples.Windkessel_3element.pipe >> ../files/Bodylight_Bodylight.Hydraulic.Examples.Windkessel_3element.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Bodylight_Bodylight_Hydraulic_Examples_Windkessel_3element_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ../Bodylight_Bodylight_Hydraulic_Examples_Windkessel_3element.fmu) > Bodylight_Bodylight.Hydraulic.Examples.Windkessel_3element.pipe 2>&1) [Timeout 52.5] (rm -f Bodylight_Bodylight.Hydraulic.Examples.Windkessel_3element_fmpy.pipe ; mkfifo Bodylight_Bodylight.Hydraulic.Examples.Windkessel_3element_fmpy.pipe ; head -c 1048576 < Bodylight_Bodylight.Hydraulic.Examples.Windkessel_3element_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Bodylight_Bodylight.Hydraulic.Examples.Windkessel_3element_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Bodylight_Bodylight.Hydraulic.Examples.Windkessel_3element_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_3element.fmu) > Bodylight_Bodylight.Hydraulic.Examples.Windkessel_3element_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.71294432785362]