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.001131/0.001131, allocations: 88.72 kB / 19.44 MB, free: 348 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.000965/0.000965, allocations: 161.7 kB / 22.75 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.895/0.895, allocations: 177.1 MB / 203.1 MB, free: 5.609 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.6501/0.6501, allocations: 118.7 MB / 378.2 MB, free: 1.465 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.583e-06/1.583e-06, allocations: 0 / 482.4 MB, free: 8.574 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.632e-05/1.79e-05, allocations: 5.781 kB / 482.4 MB, free: 8.57 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.Volumes.Reservoir): time 0.02328/0.0233, allocations: 35.24 MB / 0.5055 GB, free: 14.25 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.009455/0.03275, allocations: 12.33 MB / 0.5176 GB, free: 1.871 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002401/0.03299, allocations: 31.69 kB / 0.5176 GB, free: 1.84 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006333/0.03362, allocations: 301.8 kB / 0.5179 GB, free: 1.543 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001028/0.03465, allocations: 0.6517 MB / 0.5185 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008445/0.0431, allocations: 5.454 MB / 0.5238 GB, free: 11.41 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007021/0.0438, allocations: 1.039 MB / 0.5248 GB, free: 10.37 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.04395, allocations: 81.58 kB / 0.5249 GB, free: 10.29 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004279/0.04823, allocations: 3.923 MB / 0.5288 GB, free: 6.309 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002331/0.04846, allocations: 263.2 kB / 0.529 GB, free: 6.051 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 4.73e-05/0.04851, allocations: 44 kB / 0.529 GB, free: 6.008 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007382/0.05589, allocations: 6.906 MB / 0.5358 GB, free: 15.09 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.056, allocations: 115.5 kB / 0.5359 GB, free: 14.98 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.05615, allocations: 215.5 kB / 0.5361 GB, free: 14.77 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005209/0.06136, allocations: 5.679 MB / 0.5417 GB, free: 9.078 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.06137, allocations: 0 / 0.5417 GB, free: 9.078 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.06137, allocations: 0 / 0.5417 GB, free: 9.078 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.774e-06/0.06138, allocations: 0 / 0.5417 GB, free: 9.078 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.001933/0.06331, allocations: 1.39 MB / 0.543 GB, free: 7.648 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.06335, allocations: 8.031 kB / 0.543 GB, free: 7.641 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.126e-05/0.06342, allocations: 90.7 kB / 0.5431 GB, free: 7.543 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005902/0.06401, allocations: 220.1 kB / 0.5433 GB, free: 7.328 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006066/0.06462, allocations: 472.3 kB / 0.5438 GB, free: 6.84 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.778e-05/0.06465, allocations: 37.38 kB / 0.5438 GB, free: 6.805 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.94e-05/0.0647, allocations: 56.38 kB / 0.5439 GB, free: 6.75 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000867/0.06557, allocations: 0.7769 MB / 0.5446 GB, free: 5.902 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.06558, allocations: 3.938 kB / 0.5446 GB, free: 5.898 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.06562, allocations: 24 kB / 0.5446 GB, free: 5.875 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.06563, allocations: 15.98 kB / 0.5447 GB, free: 5.859 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006897/0.06632, allocations: 459.5 kB / 0.5451 GB, free: 5.41 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.002035/0.06835, allocations: 1.998 MB / 0.547 GB, free: 3.324 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005975/0.06895, allocations: 355.9 kB / 0.5474 GB, free: 2.969 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.06912, allocations: 132.8 kB / 0.5475 GB, free: 2.836 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01582/0.08494, allocations: 8.68 MB / 0.556 GB, free: 10.15 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.08496, allocations: 34.56 kB / 0.556 GB, free: 10.11 MB / 490.7 MB Notification: Performance of pre-optimization done (n=34): time 2.154e-06/0.08497, allocations: 0 / 0.556 GB, free: 10.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=39): time 0.002218/0.08718, allocations: 1.143 MB / 0.5571 GB, free: 8.953 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.97e-05/0.08721, allocations: 59.34 kB / 0.5572 GB, free: 8.883 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003288/0.08754, allocations: 445.9 kB / 0.5576 GB, free: 8.438 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.08757, allocations: 37.7 kB / 0.5577 GB, free: 8.395 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.08772, allocations: 284.6 kB / 0.5579 GB, free: 8.113 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.892e-05/0.08778, allocations: 138.8 kB / 0.5581 GB, free: 7.977 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.543e-05/0.08787, allocations: 90.14 kB / 0.5581 GB, free: 7.883 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.08797, allocations: 358.8 kB / 0.5585 GB, free: 7.523 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.08815, allocations: 124.9 kB / 0.5586 GB, free: 7.402 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002156/0.08836, allocations: 224.1 kB / 0.5588 GB, free: 7.141 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004103/0.08877, allocations: 379.1 kB / 0.5592 GB, free: 6.73 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.08878, allocations: 0 / 0.5592 GB, free: 6.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006517/0.08943, allocations: 0.5375 MB / 0.5597 GB, free: 6.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.08944, allocations: 4 kB / 0.5597 GB, free: 6.176 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.08945, allocations: 4 kB / 0.5597 GB, free: 6.172 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004401/0.08989, allocations: 154 kB / 0.5599 GB, free: 6.016 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.09005, allocations: 79.83 kB / 0.5599 GB, free: 5.938 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008879/0.09094, allocations: 1.234 MB / 0.5611 GB, free: 4.652 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.09107, allocations: 15.98 kB / 0.5612 GB, free: 4.637 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.405e-05/0.0911, allocations: 20 kB / 0.5612 GB, free: 4.617 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.0001617/0.09126, allocations: 169.8 kB / 0.5613 GB, free: 4.441 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.189e-05/0.09133, allocations: 71.62 kB / 0.5614 GB, free: 4.371 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001268/0.0926, allocations: 1.488 MB / 0.5629 GB, free: 2.867 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/0.09261, allocations: 19.97 kB / 0.5629 GB, free: 2.848 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.09262, allocations: 0 / 0.5629 GB, free: 2.848 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.09262, allocations: 3.984 kB / 0.5629 GB, free: 2.844 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006081/0.09323, allocations: 0.7841 MB / 0.5636 GB, free: 2.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.09324, allocations: 8 kB / 0.5637 GB, free: 2.012 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.09338, allocations: 55.91 kB / 0.5637 GB, free: 1.957 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003876/0.09376, allocations: 310.4 kB / 0.564 GB, free: 1.648 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.09379, allocations: 8 kB / 0.564 GB, free: 1.641 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007923/0.09458, allocations: 1.497 MB / 0.5655 GB, free: 96 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.09458, allocations: 0 / 0.5655 GB, free: 96 kB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.09591, allocations: 1.572 MB / 0.567 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.09603, allocations: 119.3 kB / 0.5671 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.3e-05/0.09607, allocations: 8 kB / 0.5671 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.09623, allocations: 32.03 kB / 0.5672 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.323e-05/0.09628, allocations: 31.94 kB / 0.5672 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.0963, allocations: 12.05 kB / 0.5672 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002518/0.09655, allocations: 358.7 kB / 0.5675 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.09655, allocations: 0 / 0.5675 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001892/0.09845, allocations: 1.014 MB / 0.5685 GB, free: 12.94 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.003945/0.1024, allocations: 3.206 MB / 0.5717 GB, free: 9.691 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0006699/0.1031, allocations: 0.5072 MB / 0.5722 GB, free: 9.188 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1031, allocations: 0 / 0.5722 GB, free: 9.188 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003693/0.1034, allocations: 372 kB / 0.5725 GB, free: 8.824 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006854/0.1041, allocations: 238.8 kB / 0.5727 GB, free: 8.609 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005577/0.1097, allocations: 5.428 MB / 0.578 GB, free: 3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002135/0.1099, allocations: 349.1 kB / 0.5784 GB, free: 2.629 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0002363/0.1101, allocations: 132.5 kB / 0.5785 GB, free: 2.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.1104, allocations: 288.4 kB / 0.5788 GB, free: 2.219 MB / 0.4948 GB Notification: Performance of SimCode: time 6.31e-07/0.1104, allocations: 0 / 0.5788 GB, free: 2.219 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06157/0.1719, allocations: 50.09 MB / 0.6277 GB, free: 480 kB / 0.5417 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 10.09/10.26, allocations: 3.266 kB / 0.6277 GB, free: 480 kB / 0.5417 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.839026715002547]