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.001154/0.001154, 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.0009455/0.0009455, allocations: 166.3 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 1.019/1.019, 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.09085/0.09085, allocations: 12.75 MB / 271.9 MB, free: 500 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.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: Performance of FrontEnd - loaded program: time 2.745e-06/2.745e-06, allocations: 0 / 402.7 MB, free: 9.664 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.228e-05/3.503e-05, allocations: 6.219 kB / 402.7 MB, free: 9.656 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.O2_in_water): time 0.004477/0.004512, allocations: 2.627 MB / 405.4 MB, free: 7.016 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003271/0.007783, allocations: 1.986 MB / 407.3 MB, free: 5.02 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.007892, allocations: 11.88 kB / 407.4 MB, free: 5.008 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.007995, allocations: 35.64 kB / 407.4 MB, free: 4.973 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.0005807/0.008576, allocations: 262.4 kB / 407.6 MB, free: 4.715 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.0004904/0.009067, allocations: 310.8 kB / 407.9 MB, free: 4.414 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002081/0.009275, allocations: 250.6 kB / 408.2 MB, free: 4.168 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.009389, allocations: 40.52 kB / 408.2 MB, free: 4.125 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002213/0.00961, allocations: 123.7 kB / 408.4 MB, free: 4.004 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.009735, allocations: 59.81 kB / 408.4 MB, free: 3.945 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.358e-05/0.009758, allocations: 12 kB / 408.4 MB, free: 3.934 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.424e-05/0.009822, allocations: 20 kB / 408.4 MB, free: 3.914 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.466e-05/0.009857, allocations: 35.83 kB / 408.5 MB, free: 3.879 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.784e-05/0.009935, allocations: 67.78 kB / 408.5 MB, free: 3.812 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002979/0.01023, allocations: 211.2 kB / 408.8 MB, free: 3.605 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.01024, allocations: 3.938 kB / 408.8 MB, free: 3.602 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.01024, allocations: 0 / 408.8 MB, free: 3.602 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.01024, allocations: 4 kB / 408.8 MB, free: 3.598 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.0006482/0.01089, allocations: 413.2 kB / 409.2 MB, free: 3.168 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.01093, allocations: 11.98 kB / 409.2 MB, free: 3.156 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.926e-05/0.01098, allocations: 50.73 kB / 409.2 MB, free: 3.098 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001943/0.01118, allocations: 36.78 kB / 409.3 MB, free: 3.062 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003327/0.01151, allocations: 193.1 kB / 409.4 MB, free: 2.848 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.01152, allocations: 8.375 kB / 409.5 MB, free: 2.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.033e-05/0.01154, allocations: 12.38 kB / 409.5 MB, free: 2.828 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002592/0.0118, allocations: 129.9 kB / 409.6 MB, free: 2.695 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.01181, allocations: 3.984 kB / 409.6 MB, free: 2.691 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.01183, allocations: 8 kB / 409.6 MB, free: 2.684 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.01183, allocations: 0 / 409.6 MB, free: 2.684 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.01203, allocations: 83.94 kB / 409.7 MB, free: 2.602 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.000784/0.01282, allocations: 470.4 kB / 410.1 MB, free: 2.094 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.01299, allocations: 70.55 kB / 410.2 MB, free: 2.016 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.139e-05/0.01307, allocations: 32.84 kB / 410.3 MB, free: 1.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.01308, allocations: 160 / 410.3 MB, free: 1.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/0.0131, allocations: 38.55 kB / 410.3 MB, free: 1.934 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.0131, allocations: 0 / 410.3 MB, free: 1.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.001392/0.01449, allocations: 428.8 kB / 410.7 MB, free: 1.508 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.01453, allocations: 55.41 kB / 410.8 MB, free: 1.441 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.01472, allocations: 216 kB / 411 MB, free: 1.219 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.01474, allocations: 25.7 kB / 411 MB, free: 1.188 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.358e-05/0.01484, allocations: 156.2 kB / 411.1 MB, free: 1.031 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.794e-05/0.01488, allocations: 51.58 kB / 411.2 MB, free: 0.9805 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.473e-05/0.01496, allocations: 41.7 kB / 411.2 MB, free: 0.9336 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.01507, allocations: 330.8 kB / 411.6 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.01524, allocations: 71.81 kB / 411.6 MB, free: 0.5312 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.01545, allocations: 136.4 kB / 411.8 MB, free: 376 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003725/0.01582, allocations: 209.2 kB / 412 MB, free: 132 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.01582, allocations: 0 / 412 MB, free: 132 kB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.00051/0.01633, allocations: 249.3 kB / 412.2 MB, free: 15.88 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.01635, allocations: 4 kB / 412.2 MB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.01636, allocations: 4 kB / 412.2 MB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.01637, allocations: 4 kB / 412.2 MB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003059/0.01667, allocations: 67.89 kB / 412.3 MB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.01668, allocations: 8.406 kB / 412.3 MB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.01685, allocations: 28.2 kB / 412.3 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.01687, allocations: 8 kB / 412.3 MB, free: 15.76 MB / 394.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 0.0001166/0.01698, allocations: 125.8 kB / 412.5 MB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.938e-05/0.01703, allocations: 27.73 kB / 412.5 MB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004434/0.01747, allocations: 195 kB / 412.7 MB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.01748, allocations: 4 kB / 412.7 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.01748, allocations: 4 kB / 412.7 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.01749, allocations: 0 / 412.7 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002935/0.01778, allocations: 220.6 kB / 412.9 MB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.01778, allocations: 0 / 412.9 MB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000294/0.01808, allocations: 51.95 kB / 413 MB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.01808, allocations: 0 / 413 MB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.01809, allocations: 0 / 413 MB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.0181, allocations: 3.938 kB / 413 MB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.0181, allocations: 0 / 413 MB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004156/0.01852, allocations: 281 kB / 413.2 MB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.943e-05/0.01859, allocations: 35.83 kB / 413.3 MB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.01862, allocations: 0 / 413.3 MB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.01877, allocations: 12 kB / 413.3 MB, free: 14.74 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.067e-05/0.01882, allocations: 15.95 kB / 413.3 MB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.01883, allocations: 4 kB / 413.3 MB, free: 14.72 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001266/0.01896, allocations: 149.5 kB / 413.4 MB, free: 14.58 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01896, allocations: 7.938 kB / 413.4 MB, free: 14.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000343/0.0193, allocations: 44 kB / 413.5 MB, free: 14.53 MB / 394.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.0006512/0.01995, allocations: 0.8098 MB / 414.3 MB, free: 13.69 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000382/0.02034, allocations: 157.1 kB / 414.5 MB, free: 13.54 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.02034, allocations: 0 / 414.5 MB, free: 13.54 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000153/0.02049, allocations: 67.53 kB / 414.5 MB, free: 13.47 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004251/0.02092, allocations: 56.62 kB / 414.6 MB, free: 13.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002887/0.0238, allocations: 2.212 MB / 416.8 MB, free: 11.06 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000165/0.02397, allocations: 113.3 kB / 416.9 MB, free: 10.93 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000121/0.02409, allocations: 29.62 kB / 416.9 MB, free: 10.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.02421, allocations: 56.48 kB / 417 MB, free: 10.85 MB / 394.7 MB Notification: Performance of SimCode: time 6.51e-07/0.02421, allocations: 0 / 417 MB, free: 10.85 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09949/0.1237, allocations: 5.324 MB / 422.3 MB, free: 5.688 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.26/7.383, allocations: 8 kB / 422.3 MB, free: 5.68 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.711273431777954]