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.002153/0.002153, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001479/0.001479, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.425/1.425, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.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.264/1.264, allocations: 118.6 MB / 377.8 MB, free: 1.586 MB / 346.7 MB " [Timeout remaining time 178] 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 3.737e-06/3.737e-06, allocations: 0 / 0.5572 GB, free: 9.055 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.7e-05/4.074e-05, allocations: 2.281 kB / 0.5572 GB, free: 9.051 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.Volumes.Reservoir): time 0.05063/0.05067, allocations: 35.24 MB / 0.5916 GB, free: 5.672 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.023/0.07366, allocations: 12.33 MB / 0.6036 GB, free: 9.301 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001572/0.07524, allocations: 27.75 kB / 0.6037 GB, free: 9.273 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.001641/0.07688, allocations: 309.8 kB / 0.604 GB, free: 8.969 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.003645/0.08052, allocations: 0.6478 MB / 0.6046 GB, free: 8.316 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.02698/0.1075, allocations: 5.459 MB / 0.6099 GB, free: 2.855 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.002769/0.1103, allocations: 1.047 MB / 0.6109 GB, free: 1.801 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006392/0.1109, allocations: 85.52 kB / 0.611 GB, free: 1.715 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01168/0.1226, allocations: 3.915 MB / 0.6148 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007802/0.1234, allocations: 267.1 kB / 0.6151 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0002039/0.1236, allocations: 44 kB / 0.6151 GB, free: 13.44 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02129/0.1449, allocations: 6.894 MB / 0.6219 GB, free: 6.539 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0005241/0.1454, allocations: 127.4 kB / 0.622 GB, free: 6.414 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0006879/0.1461, allocations: 215.5 kB / 0.6222 GB, free: 6.203 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.02578/0.1719, allocations: 5.663 MB / 0.6277 GB, free: 0.5273 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.39e-05/0.1719, allocations: 0 / 0.6277 GB, free: 0.5273 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.758e-06/0.1719, allocations: 0 / 0.6277 GB, free: 0.5273 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.121e-05/0.1719, allocations: 7.938 kB / 0.6277 GB, free: 0.5195 MB / 0.5417 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.008121/0.18, allocations: 1.386 MB / 0.6291 GB, free: 15.09 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001005/0.1801, allocations: 12.03 kB / 0.6291 GB, free: 15.08 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001124/0.1802, allocations: 90.7 kB / 0.6292 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009237/0.1812, allocations: 140.4 kB / 0.6293 GB, free: 14.85 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.1824, allocations: 444.4 kB / 0.6297 GB, free: 14.39 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.794e-05/0.1825, allocations: 37.38 kB / 0.6298 GB, free: 14.35 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000206/0.1827, allocations: 48.33 kB / 0.6298 GB, free: 14.3 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001684/0.1844, allocations: 0.773 MB / 0.6306 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/0.1844, allocations: 3.938 kB / 0.6306 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.689e-05/0.1845, allocations: 20 kB / 0.6306 GB, free: 13.44 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.1845, allocations: 12 kB / 0.6306 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009835/0.1855, allocations: 471.5 kB / 0.6311 GB, free: 12.96 MB / 0.5573 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.004136/0.1896, allocations: 1.971 MB / 0.633 GB, free: 10.91 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008322/0.1905, allocations: 358.1 kB / 0.6333 GB, free: 10.55 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/0.1907, allocations: 132.7 kB / 0.6335 GB, free: 10.42 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02309/0.2138, allocations: 8.677 MB / 0.6419 GB, free: 1.734 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.592e-05/0.2139, allocations: 38.56 kB / 0.642 GB, free: 1.688 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=34): time 5.22e-06/0.2139, allocations: 0 / 0.642 GB, free: 1.688 MB / 0.5573 GB Notification: Performance of matching and sorting (n=39): time 0.00456/0.2184, allocations: 1.093 MB / 0.643 GB, free: 0.5859 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.2185, allocations: 59.39 kB / 0.6431 GB, free: 0.5156 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00061/0.2191, allocations: 457.8 kB / 0.6435 GB, free: 60 kB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.06e-05/0.2192, allocations: 29.7 kB / 0.6436 GB, free: 24 kB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.7074/0.9266, allocations: 277.1 kB / 0.6438 GB, free: 91.13 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003663/0.9269, allocations: 138.1 kB / 0.644 GB, free: 91.12 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006714/0.9276, allocations: 87.67 kB / 0.644 GB, free: 91.09 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003461/0.9279, allocations: 361.5 kB / 0.6444 GB, free: 90.78 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004833/0.9284, allocations: 122.7 kB / 0.6445 GB, free: 90.78 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000422/0.9289, allocations: 223.6 kB / 0.6447 GB, free: 90.68 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008726/0.9297, allocations: 374 kB / 0.6451 GB, free: 90.45 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.9297, allocations: 1.969 kB / 0.6451 GB, free: 90.45 MB / 0.5573 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001757/0.9315, allocations: 0.5186 MB / 0.6456 GB, free: 90.23 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 5.241e-05/0.9315, allocations: 6.609 kB / 0.6456 GB, free: 90.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.9316, allocations: 2.844 kB / 0.6456 GB, free: 90.23 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009273/0.9325, allocations: 156.8 kB / 0.6457 GB, free: 90.18 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004834/0.933, allocations: 74.08 kB / 0.6458 GB, free: 90.18 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.9344, allocations: 1.236 MB / 0.647 GB, free: 89.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003448/0.9348, allocations: 20.81 kB / 0.647 GB, free: 89.05 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.395e-05/0.9348, allocations: 19.31 kB / 0.6471 GB, free: 89.04 MB / 0.5573 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.0005792/0.9354, allocations: 176.6 kB / 0.6472 GB, free: 88.89 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.9356, allocations: 57.92 kB / 0.6473 GB, free: 88.86 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003377/0.9389, allocations: 1.477 MB / 0.6487 GB, free: 88.21 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-05/0.939, allocations: 18.31 kB / 0.6487 GB, free: 88.2 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.939, allocations: 4.125 kB / 0.6487 GB, free: 88.2 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.939, allocations: 2.203 kB / 0.6487 GB, free: 88.2 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/0.9407, allocations: 0.7955 MB / 0.6495 GB, free: 87.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.526e-05/0.9407, allocations: 0 / 0.6495 GB, free: 87.77 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.941, allocations: 63.52 kB / 0.6496 GB, free: 87.77 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009131/0.9419, allocations: 298.1 kB / 0.6499 GB, free: 87.68 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.333e-05/0.942, allocations: 9.531 kB / 0.6499 GB, free: 87.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/0.9433, allocations: 1.492 MB / 0.6513 GB, free: 86.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.191e-05/0.9433, allocations: 3.656 kB / 0.6513 GB, free: 86.45 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00244/0.9458, allocations: 1.564 MB / 0.6529 GB, free: 85.68 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003184/0.9461, allocations: 109.3 kB / 0.653 GB, free: 85.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.918e-05/0.9461, allocations: 21.33 kB / 0.653 GB, free: 85.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.9463, allocations: 24.73 kB / 0.653 GB, free: 85.61 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.9465, allocations: 29.3 kB / 0.653 GB, free: 85.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.9465, allocations: 17.19 kB / 0.6531 GB, free: 85.6 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004954/0.947, allocations: 349.5 kB / 0.6534 GB, free: 85.43 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.947, allocations: 0 / 0.6534 GB, free: 85.43 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005364/0.9524, allocations: 1.027 MB / 0.6544 GB, free: 85.38 MB / 0.5573 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.009659/0.962, allocations: 3.166 MB / 0.6575 GB, free: 84.07 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001767/0.9638, allocations: 0.5235 MB / 0.658 GB, free: 83.89 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/0.9638, allocations: 7.594 kB / 0.658 GB, free: 83.89 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005917/0.9644, allocations: 358 kB / 0.6583 GB, free: 83.76 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.9659, allocations: 229.8 kB / 0.6586 GB, free: 83.71 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01749/0.9834, allocations: 5.388 MB / 0.6638 GB, free: 80.77 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000629/0.984, allocations: 352.7 kB / 0.6642 GB, free: 80.67 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008683/0.9849, allocations: 126 kB / 0.6643 GB, free: 80.66 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004583/0.9854, allocations: 284.8 kB / 0.6645 GB, free: 80.44 MB / 0.5573 GB Notification: Performance of SimCode: time 3.436e-06/0.9854, allocations: 0 / 0.6645 GB, free: 80.44 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1445/1.13, allocations: 49.69 MB / 0.7131 GB, free: 40.69 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/13.81, allocations: 2.75 kB / 0.7131 GB, free: 40.69 MB / 0.5573 GB " [Timeout remaining time 646] (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: 18.636331969872117]