Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.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.0009234/0.0009234, 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.0009664/0.0009664, allocations: 212.1 kB / 22.25 MB, free: 3.57 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.162/1.162, allocations: 230.6 MB / 256 MB, free: 9.605 MB / 202.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 1.077/1.077, allocations: 154.1 MB / 466.6 MB, free: 3.344 MB / 362.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.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(ThermofluidStream.Idealized.Examples.Volumes.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Idealized_Examples_Volumes_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Idealized.Examples.Volumes.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Idealized_Examples_Volumes_Reservoir",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 95.86 kB / 0.6438 GB, free: 28.37 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2523, allocations: 88.77 MB / 0.7305 GB, free: 3.402 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.Volumes.Reservoir): time 0.04095/0.2932, allocations: 35.48 MB / 0.7651 GB, free: 15.79 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.01646/0.3097, allocations: 12.33 MB / 0.7771 GB, free: 3.414 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001069/0.3108, allocations: 35.69 kB / 0.7772 GB, free: 3.379 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.312, allocations: 298 kB / 0.7775 GB, free: 3.086 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.002418/0.3145, allocations: 0.6211 MB / 0.7781 GB, free: 2.461 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.01932/0.3338, allocations: 5.395 MB / 0.7833 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.002245/0.336, allocations: 1.004 MB / 0.7843 GB, free: 12.05 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003213/0.3363, allocations: 73.59 kB / 0.7844 GB, free: 11.98 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007976/0.3443, allocations: 3.767 MB / 0.7881 GB, free: 8.164 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005834/0.3449, allocations: 314.4 kB / 0.7884 GB, free: 7.855 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 7.125e-05/0.345, allocations: 40 kB / 0.7884 GB, free: 7.816 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0147/0.3597, allocations: 6.891 MB / 0.7951 GB, free: 0.9219 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0003714/0.36, allocations: 115.5 kB / 0.7952 GB, free: 0.8086 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0005075/0.3606, allocations: 266.7 kB / 0.7955 GB, free: 0.5469 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.01638/0.3769, allocations: 4.575 MB / 0.8 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/0.3769, allocations: 0 / 0.8 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.647e-06/0.3769, allocations: 4 kB / 0.8 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.792e-05/0.377, allocations: 0 / 0.8 GB, free: 11.96 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.005941/0.3829, allocations: 1.39 MB / 0.8013 GB, free: 10.53 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 8.553e-05/0.383, allocations: 8.031 kB / 0.8013 GB, free: 10.52 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/0.3831, allocations: 86.7 kB / 0.8014 GB, free: 10.43 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007161/0.3838, allocations: 140.4 kB / 0.8016 GB, free: 10.29 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.3849, allocations: 457 kB / 0.802 GB, free: 9.816 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.925e-05/0.385, allocations: 41.36 kB / 0.802 GB, free: 9.777 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.377e-05/0.3851, allocations: 48.12 kB / 0.8021 GB, free: 9.73 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.3865, allocations: 0.7763 MB / 0.8028 GB, free: 8.875 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.3865, allocations: 3.938 kB / 0.8028 GB, free: 8.871 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.031e-05/0.3866, allocations: 24 kB / 0.8029 GB, free: 8.848 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.3866, allocations: 12 kB / 0.8029 GB, free: 8.836 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009128/0.3875, allocations: 463.6 kB / 0.8033 GB, free: 8.387 MB / 0.6198 GB 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.003253/0.3907, allocations: 1.986 MB / 0.8053 GB, free: 6.312 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007919/0.3915, allocations: 350.3 kB / 0.8056 GB, free: 5.961 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002176/0.3918, allocations: 132.8 kB / 0.8057 GB, free: 5.828 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01983/0.4116, allocations: 8.662 MB / 0.8142 GB, free: 13.16 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.272e-05/0.4117, allocations: 38.56 kB / 0.8142 GB, free: 13.11 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=34): time 4.398e-06/0.4117, allocations: 0 / 0.8142 GB, free: 13.11 MB / 0.6355 GB Notification: Performance of matching and sorting (n=39): time 0.003908/0.4156, allocations: 1.099 MB / 0.8153 GB, free: 12 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.4156, allocations: 59.41 kB / 0.8153 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005422/0.4162, allocations: 449.9 kB / 0.8158 GB, free: 11.48 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/0.4162, allocations: 29.7 kB / 0.8158 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.4164, allocations: 288.5 kB / 0.8161 GB, free: 11.16 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.4165, allocations: 142.8 kB / 0.8162 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/0.4167, allocations: 86.08 kB / 0.8163 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001709/0.4168, allocations: 358.8 kB / 0.8166 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.417, allocations: 124.8 kB / 0.8167 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002773/0.4173, allocations: 223.5 kB / 0.817 GB, free: 10.19 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004875/0.4178, allocations: 379.2 kB / 0.8173 GB, free: 9.777 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.4178, allocations: 0 / 0.8173 GB, free: 9.777 MB / 0.6355 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008078/0.4186, allocations: 0.5258 MB / 0.8178 GB, free: 9.238 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.4186, allocations: 11.94 kB / 0.8178 GB, free: 9.227 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.4187, allocations: 4 kB / 0.8179 GB, free: 9.223 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006086/0.4193, allocations: 141.6 kB / 0.818 GB, free: 9.078 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002224/0.4195, allocations: 80.05 kB / 0.8181 GB, free: 9 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/0.4206, allocations: 1.23 MB / 0.8193 GB, free: 7.719 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.4209, allocations: 15.98 kB / 0.8193 GB, free: 7.703 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.4209, allocations: 20 kB / 0.8193 GB, free: 7.684 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (reservoir.medium.phase,massFlowRate.outlet.state.phase,isenthalpic.outlet.state.phase,source.outlet.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (2,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003171/0.4212, allocations: 180.7 kB / 0.8195 GB, free: 7.5 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.517e-05/0.4213, allocations: 63.56 kB / 0.8195 GB, free: 7.438 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001717/0.423, allocations: 1.474 MB / 0.821 GB, free: 5.949 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.19e-05/0.423, allocations: 19.97 kB / 0.821 GB, free: 5.93 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.4231, allocations: 0 / 0.821 GB, free: 5.93 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.4231, allocations: 3.984 kB / 0.821 GB, free: 5.926 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009872/0.424, allocations: 0.7837 MB / 0.8218 GB, free: 5.094 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.4241, allocations: 4 kB / 0.8218 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.4242, allocations: 63.91 kB / 0.8218 GB, free: 5.027 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005107/0.4247, allocations: 295.2 kB / 0.8221 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.605e-05/0.4248, allocations: 19.97 kB / 0.8221 GB, free: 4.715 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001522/0.4263, allocations: 1.49 MB / 0.8236 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4263, allocations: 0 / 0.8236 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.4281, allocations: 1.565 MB / 0.8251 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002664/0.4283, allocations: 111.2 kB / 0.8252 GB, free: 1.477 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.561e-05/0.4284, allocations: 15.95 kB / 0.8252 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.4286, allocations: 27.91 kB / 0.8253 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.285e-05/0.4287, allocations: 31.94 kB / 0.8253 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.4287, allocations: 12 kB / 0.8253 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0003927/0.4291, allocations: 354.8 kB / 0.8256 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.31e-07/0.4291, allocations: 4.062 kB / 0.8256 GB, free: 1.043 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.00422/0.4333, allocations: 1.01 MB / 0.8266 GB, free: 32 kB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (reservoir.M,reservoir.U_med) * Number of discrete variables: 9 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,reservoir.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,4), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.5563/0.9896, allocations: 3.036 MB / 0.8296 GB, free: 92.43 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001165/0.9908, allocations: 0.5248 MB / 0.8301 GB, free: 92.27 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.9908, allocations: 0 / 0.8301 GB, free: 92.27 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.000546/0.9913, allocations: 364.8 kB / 0.8305 GB, free: 92.16 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.9923, allocations: 230.7 kB / 0.8307 GB, free: 92.11 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009623/1.002, allocations: 5.455 MB / 0.836 GB, free: 89.32 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006278/1.003, allocations: 349.4 kB / 0.8363 GB, free: 89.22 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0005611/1.003, allocations: 123.8 kB / 0.8364 GB, free: 89.21 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002615/1.003, allocations: 284.3 kB / 0.8367 GB, free: 89 MB / 0.6355 GB Notification: Performance of SimCode: time 1.263e-06/1.003, allocations: 0.5 kB / 0.8367 GB, free: 89 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1149/1.118, allocations: 49.45 MB / 0.885 GB, free: 54.43 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/11.43, allocations: 8.594 kB / 0.885 GB, free: 54.42 MB / 0.6355 GB " [Timeout remaining time 648] (rm -f ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_OMSimulator.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_OMSimulator.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_OMSimulator.pipe >> ../files/ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_OMSimulator_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Idealized_Examples_Volumes_Reservoir_OMSimulator_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Idealized_Examples_Volumes_Reservoir.fmu > ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_OMSimulator.pipe 2>&1) [Timeout 1260.0] OMSimulator failed or timed out simulating the FMU; the other simulators still get to run it (rm -f ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_fmpy.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_fmpy.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_fmpy.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_fmpy_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_ThermofluidStream_Idealized_Examples_Volumes_Reservoir.fmu > ThermofluidStream_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_fmpy.pipe 2>&1) [Timeout 1260.0] fmpy timed out simulating the FMU [Calling sys.exit(0), Time elapsed: 15.571155045181513]