Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.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.0008805/0.0008805, allocations: 105.5 kB / 18.95 MB, free: 1.188 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.00114/0.00114, allocations: 215.6 kB / 22.25 MB, free: 3.582 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 1.027/1.027, allocations: 230.6 MB / 256 MB, free: 9.598 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.08196/0.08196, allocations: 17.16 MB / 329.6 MB, free: 0.7305 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.SteadyStates.Examples.O2_in_water,fileNamePrefix="Bodylight_Bodylight_SteadyStates_Examples_O2_in_water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Bodylight.SteadyStates.Examples.O2_in_water,fileNamePrefix="Bodylight_Bodylight_SteadyStates_Examples_O2_in_water",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.001182/0.001182, allocations: 75.83 kB / 460.4 MB, free: 26.73 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09597/0.09716, allocations: 57.76 MB / 0.506 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.003032/0.1002, allocations: 2.626 MB / 0.5085 GB, free: 14.22 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002531/0.1027, allocations: 1.995 MB / 0.5105 GB, free: 12.22 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.1028, allocations: 7.938 kB / 0.5105 GB, free: 12.21 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.103, allocations: 23.72 kB / 0.5105 GB, free: 12.19 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:6207:6-6223:18:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.O2_in_water.oxygen_dissolved.Utilities.UnitConversions.findUnit' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5637:15-5729:17:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.O2_in_water.oxygen_dissolved.Utilities.readReal' contains a call to impure function 'Bodylight.SteadyStates.Examples.O2_in_water.oxygen_dissolved.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.0007278/0.1037, allocations: 262.8 kB / 0.5108 GB, free: 11.93 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5783:15-5804:18:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.O2_in_water.oxygen_dissolved.Utilities.writeReal' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5845:15-5881:24:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.O2_in_water.oxygen_dissolved.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.000578/0.1043, allocations: 314.8 kB / 0.5111 GB, free: 11.62 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002501/0.1045, allocations: 246.7 kB / 0.5113 GB, free: 11.38 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.1047, allocations: 44.55 kB / 0.5113 GB, free: 11.34 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.1048, allocations: 91.64 kB / 0.5114 GB, free: 11.25 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.1049, allocations: 79.5 kB / 0.5115 GB, free: 11.17 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.603e-05/0.1049, allocations: 16 kB / 0.5115 GB, free: 11.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.344e-05/0.105, allocations: 16 kB / 0.5115 GB, free: 11.14 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.814e-05/0.105, allocations: 35.86 kB / 0.5116 GB, free: 11.1 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.204e-05/0.1051, allocations: 67.67 kB / 0.5116 GB, free: 11.04 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00024/0.1053, allocations: 211 kB / 0.5118 GB, free: 10.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1053, allocations: 0 / 0.5118 GB, free: 10.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1053, allocations: 4 kB / 0.5118 GB, free: 10.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1053, allocations: 0 / 0.5118 GB, free: 10.82 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005264/0.1059, allocations: 437.2 kB / 0.5123 GB, free: 10.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.1059, allocations: 8.031 kB / 0.5123 GB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.929e-05/0.1059, allocations: 42.75 kB / 0.5123 GB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/0.1061, allocations: 40.77 kB / 0.5123 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.1064, allocations: 194.5 kB / 0.5125 GB, free: 10.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.1064, allocations: 12.38 kB / 0.5125 GB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.1064, allocations: 15.94 kB / 0.5126 GB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/0.1066, allocations: 117.6 kB / 0.5127 GB, free: 9.906 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.1066, allocations: 4 kB / 0.5127 GB, free: 9.902 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.1066, allocations: 4 kB / 0.5127 GB, free: 9.898 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.1066, allocations: 4 kB / 0.5127 GB, free: 9.895 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001387/0.1068, allocations: 83.95 kB / 0.5128 GB, free: 9.812 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006129/0.1074, allocations: 474.3 kB / 0.5132 GB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001418/0.1075, allocations: 66.55 kB / 0.5133 GB, free: 9.227 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.649e-05/0.1076, allocations: 32.84 kB / 0.5133 GB, free: 9.191 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.1076, allocations: 0 / 0.5133 GB, free: 9.191 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.1076, allocations: 34.56 kB / 0.5133 GB, free: 9.148 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.1076, allocations: 0 / 0.5133 GB, free: 9.148 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009882/0.1086, allocations: 436.9 kB / 0.5138 GB, free: 8.715 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.1086, allocations: 55.34 kB / 0.5138 GB, free: 8.648 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.1088, allocations: 212 kB / 0.514 GB, free: 8.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.1088, allocations: 33.64 kB / 0.514 GB, free: 8.391 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.892e-05/0.1089, allocations: 152.1 kB / 0.5142 GB, free: 8.238 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.819e-05/0.1089, allocations: 47.59 kB / 0.5142 GB, free: 8.191 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.251e-05/0.109, allocations: 41.7 kB / 0.5143 GB, free: 8.145 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.711e-05/0.109, allocations: 334.8 kB / 0.5146 GB, free: 7.809 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.1092, allocations: 63.95 kB / 0.5147 GB, free: 7.746 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.1093, allocations: 132.7 kB / 0.5148 GB, free: 7.586 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.1095, allocations: 220.6 kB / 0.515 GB, free: 7.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.1095, allocations: 0 / 0.515 GB, free: 7.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002907/0.1098, allocations: 249.2 kB / 0.5152 GB, free: 7.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.1098, allocations: 8 kB / 0.5152 GB, free: 7.082 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.1098, allocations: 4 kB / 0.5152 GB, free: 7.078 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.1098, allocations: 4 kB / 0.5152 GB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.11, allocations: 72.14 kB / 0.5153 GB, free: 7.004 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.11, allocations: 11.94 kB / 0.5153 GB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.691e-05/0.1101, allocations: 15.98 kB / 0.5153 GB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.1101, allocations: 8 kB / 0.5153 GB, free: 6.969 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * 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 8.405e-05/0.1102, allocations: 133.8 kB / 0.5155 GB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.575e-05/0.1103, allocations: 19.86 kB / 0.5155 GB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002832/0.1105, allocations: 195 kB / 0.5157 GB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.1105, allocations: 3.938 kB / 0.5157 GB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1105, allocations: 0 / 0.5157 GB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.1105, allocations: 0 / 0.5157 GB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001921/0.1107, allocations: 220.7 kB / 0.5159 GB, free: 6.348 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1107, allocations: 0 / 0.5159 GB, free: 6.348 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.1109, allocations: 47.95 kB / 0.5159 GB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.1109, allocations: 0 / 0.5159 GB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.1109, allocations: 11.94 kB / 0.516 GB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.1109, allocations: 7.938 kB / 0.516 GB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1109, allocations: 0 / 0.516 GB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002541/0.1111, allocations: 275.3 kB / 0.5162 GB, free: 5.996 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.344e-05/0.1112, allocations: 31.84 kB / 0.5163 GB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.283e-05/0.1112, allocations: 0 / 0.5163 GB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.1113, allocations: 19.92 kB / 0.5163 GB, free: 5.945 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.905e-05/0.1114, allocations: 11.97 kB / 0.5163 GB, free: 5.934 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.1114, allocations: 4 kB / 0.5163 GB, free: 5.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001322/0.1115, allocations: 149.6 kB / 0.5164 GB, free: 5.785 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1115, allocations: 0 / 0.5164 GB, free: 5.785 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000211/0.1117, allocations: 44 kB / 0.5165 GB, free: 5.742 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.0004338/0.1122, allocations: 0.8136 MB / 0.5173 GB, free: 4.902 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002621/0.1124, allocations: 155.8 kB / 0.5174 GB, free: 4.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1124, allocations: 0 / 0.5174 GB, free: 4.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.46e-05/0.1125, allocations: 71.89 kB / 0.5175 GB, free: 4.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.1128, allocations: 45.14 kB / 0.5175 GB, free: 4.633 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001901/0.1147, allocations: 2.236 MB / 0.5197 GB, free: 2.258 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.441e-05/0.1148, allocations: 125.1 kB / 0.5198 GB, free: 2.117 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.1149, allocations: 25.62 kB / 0.5199 GB, free: 2.094 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.652e-05/0.115, allocations: 63.41 kB / 0.5199 GB, free: 2.031 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.115, allocations: 0 / 0.5199 GB, free: 2.031 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.125/0.24, allocations: 5.166 MB / 0.525 GB, free: 13.02 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.088/7.328, allocations: 11.45 kB / 0.525 GB, free: 13.01 MB / 394.7 MB " [Timeout remaining time 653] (rm -f Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe ; mkfifo Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe ; head -c 1048576 < Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe >> ../files/Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Bodylight_Bodylight_SteadyStates_Examples_O2_in_water_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 ../Bodylight_Bodylight_SteadyStates_Examples_O2_in_water.fmu) > Bodylight_Bodylight.SteadyStates.Examples.O2_in_water.pipe 2>&1) [Timeout 52.5] (rm -f Bodylight_Bodylight.SteadyStates.Examples.O2_in_water_fmpy.pipe ; mkfifo Bodylight_Bodylight.SteadyStates.Examples.O2_in_water_fmpy.pipe ; head -c 1048576 < Bodylight_Bodylight.SteadyStates.Examples.O2_in_water_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Bodylight_Bodylight.SteadyStates.Examples.O2_in_water_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Bodylight_Bodylight.SteadyStates.Examples.O2_in_water_fmpy_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 ../Bodylight_Bodylight_SteadyStates_Examples_O2_in_water.fmu) > Bodylight_Bodylight.SteadyStates.Examples.O2_in_water_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.733051799237728]