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.0008403/0.0008403, allocations: 84.72 kB / 19.44 MB, free: 352 kB / 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.0008584/0.0008584, allocations: 157.3 kB / 22.76 MB, free: 1.676 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.9054/0.9054, allocations: 177.1 MB / 203.1 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] 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 0.6899/0.6899, allocations: 118.6 MB / 378.2 MB, free: 1.48 MB / 346.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 1.252e-06/1.252e-06, allocations: 0 / 482.4 MB, free: 8.516 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.294e-05/1.42e-05, allocations: 6.312 kB / 482.4 MB, free: 8.508 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.Volumes.Reservoir): time 0.0272/0.02721, allocations: 35.24 MB / 0.5055 GB, free: 14.23 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0109/0.03811, allocations: 12.32 MB / 0.5175 GB, free: 1.871 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004548/0.03856, allocations: 35.62 kB / 0.5176 GB, free: 1.836 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007676/0.03933, allocations: 305.8 kB / 0.5179 GB, free: 1.535 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00117/0.0405, allocations: 0.6478 MB / 0.5185 GB, free: 0.8828 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.012/0.0525, allocations: 5.451 MB / 0.5238 GB, free: 11.41 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.001222/0.05373, allocations: 1.043 MB / 0.5248 GB, free: 10.36 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002174/0.05394, allocations: 77.58 kB / 0.5249 GB, free: 10.28 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004746/0.05869, allocations: 3.934 MB / 0.5288 GB, free: 6.293 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002572/0.05895, allocations: 267.1 kB / 0.529 GB, free: 6.031 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 4.987e-05/0.059, allocations: 44 kB / 0.5291 GB, free: 5.988 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009732/0.06873, allocations: 6.891 MB / 0.5358 GB, free: 15.09 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.06886, allocations: 119.5 kB / 0.5359 GB, free: 14.97 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002336/0.06909, allocations: 219.5 kB / 0.5361 GB, free: 14.76 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008053/0.07714, allocations: 5.671 MB / 0.5416 GB, free: 9.074 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.07715, allocations: 0 / 0.5416 GB, free: 9.074 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.07715, allocations: 0 / 0.5416 GB, free: 9.074 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.07716, allocations: 0 / 0.5416 GB, free: 9.074 MB / 474.7 MB 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.002452/0.07961, allocations: 1.39 MB / 0.543 GB, free: 7.645 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.07966, allocations: 11.97 kB / 0.543 GB, free: 7.633 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.576e-05/0.07973, allocations: 86.72 kB / 0.5431 GB, free: 7.539 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005879/0.08032, allocations: 220.1 kB / 0.5433 GB, free: 7.324 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006926/0.08101, allocations: 484.3 kB / 0.5438 GB, free: 6.824 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.951e-05/0.08105, allocations: 45.31 kB / 0.5438 GB, free: 6.781 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.836e-05/0.08112, allocations: 52.38 kB / 0.5439 GB, free: 6.73 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009021/0.08202, allocations: 0.7613 MB / 0.5446 GB, free: 5.898 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.08203, allocations: 7.875 kB / 0.5446 GB, free: 5.891 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.138e-05/0.08207, allocations: 24 kB / 0.5446 GB, free: 5.867 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.08209, allocations: 16 kB / 0.5447 GB, free: 5.852 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008273/0.08291, allocations: 463.6 kB / 0.5451 GB, free: 5.398 MB / 474.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.00208/0.08499, allocations: 1.998 MB / 0.547 GB, free: 3.312 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000632/0.08563, allocations: 363.2 kB / 0.5474 GB, free: 2.953 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001807/0.08581, allocations: 132.8 kB / 0.5475 GB, free: 2.82 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01699/0.1028, allocations: 8.68 MB / 0.556 GB, free: 10.13 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.512e-05/0.1028, allocations: 38.56 kB / 0.556 GB, free: 10.09 MB / 490.7 MB Notification: Performance of pre-optimization done (n=34): time 3.807e-06/0.1029, allocations: 0 / 0.556 GB, free: 10.09 MB / 490.7 MB Notification: Performance of matching and sorting (n=39): time 0.002819/0.1057, allocations: 1.131 MB / 0.5571 GB, free: 8.945 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.1057, allocations: 63.34 kB / 0.5572 GB, free: 8.871 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004037/0.1061, allocations: 449.9 kB / 0.5576 GB, free: 8.422 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.1061, allocations: 33.7 kB / 0.5577 GB, free: 8.383 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/0.1063, allocations: 280.6 kB / 0.5579 GB, free: 8.105 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.968e-05/0.1064, allocations: 142.8 kB / 0.5581 GB, free: 7.965 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.349e-05/0.1065, allocations: 82.14 kB / 0.5581 GB, free: 7.879 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1066, allocations: 366.8 kB / 0.5585 GB, free: 7.512 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.1068, allocations: 120.9 kB / 0.5586 GB, free: 7.395 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.107, allocations: 228 kB / 0.5588 GB, free: 7.129 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005465/0.1076, allocations: 371.2 kB / 0.5592 GB, free: 6.727 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1076, allocations: 3.938 kB / 0.5592 GB, free: 6.723 MB / 490.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006955/0.1083, allocations: 0.5415 MB / 0.5597 GB, free: 6.168 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.1083, allocations: 7.984 kB / 0.5597 GB, free: 6.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.1083, allocations: 4 kB / 0.5597 GB, free: 6.156 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004563/0.1088, allocations: 149.5 kB / 0.5599 GB, free: 6.004 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.1089, allocations: 76.16 kB / 0.5599 GB, free: 5.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008044/0.1098, allocations: 1.234 MB / 0.5611 GB, free: 4.645 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.1099, allocations: 12 kB / 0.5612 GB, free: 4.633 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.1099, allocations: 20 kB / 0.5612 GB, free: 4.613 MB / 490.7 MB 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.000188/0.1101, allocations: 185.8 kB / 0.5613 GB, free: 4.422 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.587e-05/0.1102, allocations: 67.62 kB / 0.5614 GB, free: 4.355 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001384/0.1116, allocations: 1.484 MB / 0.5629 GB, free: 2.852 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.527e-05/0.1116, allocations: 19.97 kB / 0.5629 GB, free: 2.832 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1116, allocations: 0 / 0.5629 GB, free: 2.832 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1116, allocations: 3.984 kB / 0.5629 GB, free: 2.828 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006885/0.1123, allocations: 0.7802 MB / 0.5636 GB, free: 2.008 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.1123, allocations: 4 kB / 0.5636 GB, free: 2.004 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.1124, allocations: 59.95 kB / 0.5637 GB, free: 1.945 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004113/0.1128, allocations: 314.3 kB / 0.564 GB, free: 1.633 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.402e-05/0.1129, allocations: 12 kB / 0.564 GB, free: 1.621 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009039/0.1138, allocations: 1.491 MB / 0.5655 GB, free: 84 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1138, allocations: 0 / 0.5655 GB, free: 84 kB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.1154, allocations: 1.58 MB / 0.567 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.1155, allocations: 111.3 kB / 0.5671 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.186e-05/0.1156, allocations: 12 kB / 0.5671 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.1157, allocations: 23.97 kB / 0.5672 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.198e-05/0.1158, allocations: 31.94 kB / 0.5672 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.1158, allocations: 15.98 kB / 0.5672 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002953/0.1161, allocations: 350.8 kB / 0.5675 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.1161, allocations: 4.062 kB / 0.5675 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003245/0.1194, allocations: 1.018 MB / 0.5685 GB, free: 12.93 MB / 0.4948 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.004602/0.124, allocations: 3.203 MB / 0.5717 GB, free: 9.684 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0007685/0.1247, allocations: 0.5143 MB / 0.5722 GB, free: 9.172 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1247, allocations: 0 / 0.5722 GB, free: 9.172 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004131/0.1251, allocations: 364.8 kB / 0.5725 GB, free: 8.816 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000771/0.1259, allocations: 240.6 kB / 0.5727 GB, free: 8.598 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005999/0.1319, allocations: 5.423 MB / 0.578 GB, free: 2.996 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.1322, allocations: 357.1 kB / 0.5784 GB, free: 2.617 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.000288/0.1325, allocations: 129.8 kB / 0.5785 GB, free: 2.492 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002569/0.1327, allocations: 284.4 kB / 0.5788 GB, free: 2.215 MB / 0.4948 GB Notification: Performance of SimCode: time 7.02e-07/0.1327, allocations: 0 / 0.5788 GB, free: 2.215 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07009/0.2028, allocations: 50.87 MB / 0.6284 GB, free: 15.7 MB / 0.5573 GB Notification: Building FMU for platform 'static' (1/1). Notification: Finished FMU for platform 'static' (1/1). Notification: Performance of buildModelFMU: Generate platform static: time 9.654/9.857, allocations: 6.25 kB / 0.6285 GB, free: 15.7 MB / 0.5573 GB " [Timeout remaining time 650] (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: 12.46792030899087]