Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.WaterHammer.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.0009398/0.0009398, 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.0009933/0.0009933, allocations: 165.9 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 0.9853/0.9853, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.5457/0.5457, allocations: 80.18 MB / 339.4 MB, free: 7.555 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 0.4923 GB, free: 6.664 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.907e-05/2.086e-05, allocations: 2.281 kB / 0.4923 GB, free: 6.66 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02103/0.02105, allocations: 29.62 MB / 0.5213 GB, free: 10.8 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.007645/0.02869, allocations: 8.134 MB / 0.5292 GB, free: 2.637 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00117/0.02986, allocations: 55.5 kB / 0.5293 GB, free: 2.582 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001153/0.03102, allocations: 472.4 kB / 0.5297 GB, free: 2.117 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002104/0.03312, allocations: 0.8921 MB / 0.5306 GB, free: 1.219 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001755/0.03487, allocations: 0.7121 MB / 0.5313 GB, free: 0.5039 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002016/0.03689, allocations: 1.632 MB / 0.5329 GB, free: 14.87 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003779/0.03727, allocations: 174.4 kB / 0.533 GB, free: 14.69 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001262/0.03853, allocations: 0.9077 MB / 0.5339 GB, free: 13.78 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004265/0.03896, allocations: 434.6 kB / 0.5343 GB, free: 13.35 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 8.395e-05/0.03904, allocations: 80 kB / 0.5344 GB, free: 13.27 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001148/0.04019, allocations: 483.2 kB / 0.5349 GB, free: 12.8 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.04035, allocations: 215 kB / 0.5351 GB, free: 12.59 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002931/0.04064, allocations: 363.1 kB / 0.5354 GB, free: 12.23 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001642/0.04228, allocations: 1.425 MB / 0.5368 GB, free: 10.8 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.04229, allocations: 4 kB / 0.5368 GB, free: 10.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.04229, allocations: 0 / 0.5368 GB, free: 10.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.0423, allocations: 4 kB / 0.5368 GB, free: 10.8 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 184 * Number of variables: 184 Notification: Performance of Generate backend data structure: time 0.001995/0.0443, allocations: 1.383 MB / 0.5382 GB, free: 9.371 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0002756/0.04457, allocations: 9.469 kB / 0.5382 GB, free: 9.363 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001106/0.04468, allocations: 126.7 kB / 0.5383 GB, free: 9.23 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002774/0.04496, allocations: 128.2 kB / 0.5384 GB, free: 9.105 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009406/0.0459, allocations: 0.6867 MB / 0.5391 GB, free: 8.391 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.685e-05/0.04595, allocations: 58.12 kB / 0.5392 GB, free: 8.336 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.674e-05/0.04605, allocations: 83.95 kB / 0.5392 GB, free: 8.254 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.04717, allocations: 1.005 MB / 0.5402 GB, free: 7.176 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.04719, allocations: 0 / 0.5402 GB, free: 7.176 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.277e-05/0.04724, allocations: 32 kB / 0.5403 GB, free: 7.145 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/0.04726, allocations: 16 kB / 0.5403 GB, free: 7.129 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008315/0.04809, allocations: 0.6363 MB / 0.5409 GB, free: 6.496 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00325/0.05134, allocations: 2.349 MB / 0.5432 GB, free: 4.078 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008687/0.05221, allocations: 0.5497 MB / 0.5437 GB, free: 3.523 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.05254, allocations: 255.5 kB / 0.544 GB, free: 3.273 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0016/0.05414, allocations: 0.9907 MB / 0.5449 GB, free: 2.262 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008311/0.05497, allocations: 0.5467 MB / 0.5455 GB, free: 1.648 MB / 458.7 MB Notification: Performance of pre-optimization done (n=63): time 2.044e-06/0.05497, allocations: 3.938 kB / 0.5455 GB, free: 1.645 MB / 458.7 MB Notification: Performance of matching and sorting (n=65): time 0.002864/0.05783, allocations: 1.854 MB / 0.5473 GB, free: 15.75 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.239e-05/0.0579, allocations: 115.5 kB / 0.5474 GB, free: 15.61 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006243/0.05853, allocations: 0.6533 MB / 0.548 GB, free: 14.95 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/0.05857, allocations: 37.7 kB / 0.5481 GB, free: 14.91 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002787/0.05885, allocations: 456.5 kB / 0.5485 GB, free: 14.46 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.05898, allocations: 234 kB / 0.5487 GB, free: 14.23 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.05912, allocations: 118.7 kB / 0.5488 GB, free: 14.11 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.864e-05/0.05922, allocations: 334 kB / 0.5492 GB, free: 13.78 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002909/0.05951, allocations: 239.6 kB / 0.5494 GB, free: 13.54 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003648/0.05987, allocations: 411.7 kB / 0.5498 GB, free: 13.07 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006554/0.06053, allocations: 0.5829 MB / 0.5503 GB, free: 12.45 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.06053, allocations: 0 / 0.5503 GB, free: 12.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001041/0.06157, allocations: 0.8402 MB / 0.5512 GB, free: 11.58 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.123e-05/0.06162, allocations: 38.05 kB / 0.5512 GB, free: 11.54 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.06163, allocations: 4 kB / 0.5512 GB, free: 11.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003103/0.06194, allocations: 100.7 kB / 0.5513 GB, free: 11.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003134/0.06226, allocations: 131.8 kB / 0.5514 GB, free: 11.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001813/0.06407, allocations: 1.866 MB / 0.5533 GB, free: 9.32 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003336/0.0644, allocations: 27.98 kB / 0.5533 GB, free: 9.293 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.108e-05/0.06445, allocations: 27.98 kB / 0.5533 GB, free: 9.266 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003567/0.06481, allocations: 228.3 kB / 0.5535 GB, free: 9.035 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.486e-05/0.06491, allocations: 99.33 kB / 0.5536 GB, free: 8.938 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/0.066, allocations: 0.8216 MB / 0.5544 GB, free: 8.094 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.066, allocations: 8 kB / 0.5544 GB, free: 8.086 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.06601, allocations: 0 / 0.5544 GB, free: 8.086 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.06601, allocations: 7.984 kB / 0.5544 GB, free: 8.078 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001742/0.06776, allocations: 1.478 MB / 0.5559 GB, free: 6.539 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.06776, allocations: 0 / 0.5559 GB, free: 6.539 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002665/0.06803, allocations: 107.8 kB / 0.556 GB, free: 6.434 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002168/0.06824, allocations: 108.8 kB / 0.5561 GB, free: 6.324 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/0.06828, allocations: 23.92 kB / 0.5561 GB, free: 6.301 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00138/0.06966, allocations: 1.85 MB / 0.5579 GB, free: 4.332 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.06966, allocations: 4.031 kB / 0.5579 GB, free: 4.328 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.07105, allocations: 1.072 MB / 0.559 GB, free: 3.23 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002229/0.07128, allocations: 135.5 kB / 0.5591 GB, free: 3.098 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.795e-05/0.07133, allocations: 24.27 kB / 0.5591 GB, free: 3.074 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.07155, allocations: 27.98 kB / 0.5591 GB, free: 3.047 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.07166, allocations: 56.33 kB / 0.5592 GB, free: 2.992 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-05/0.0717, allocations: 27.92 kB / 0.5592 GB, free: 2.965 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004225/0.07212, allocations: 467 kB / 0.5597 GB, free: 2.512 MB / 474.7 MB Notification: Performance of sort global known variables: time 4e-08/0.07212, allocations: 0 / 0.5597 GB, free: 2.512 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0007369/0.07286, allocations: 279.8 kB / 0.5599 GB, free: 2.238 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (flowResistance.inlet.m_flow,checkValve.inlet.m_flow,reservoir.M,reservoir.U_med,firstOrder.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001877/0.07474, allocations: 1.866 MB / 0.5618 GB, free: 340 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.07595, allocations: 0.7696 MB / 0.5625 GB, free: 15.52 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.07596, allocations: 4 kB / 0.5625 GB, free: 15.52 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005432/0.0765, allocations: 437.8 kB / 0.5629 GB, free: 15.08 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.07752, allocations: 330.3 kB / 0.5632 GB, free: 14.77 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008148/0.08567, allocations: 6.714 MB / 0.5698 GB, free: 7.809 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.08598, allocations: 417 kB / 0.5702 GB, free: 7.371 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0004874/0.08647, allocations: 158.2 kB / 0.5704 GB, free: 7.211 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000337/0.0868, allocations: 376.4 kB / 0.5707 GB, free: 6.84 MB / 490.7 MB Notification: Performance of SimCode: time 2.525e-06/0.08681, allocations: 0 / 0.5707 GB, free: 6.84 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04632/0.1331, allocations: 26.4 MB / 0.5965 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.699/7.832, allocations: 13.62 kB / 0.5965 GB, free: 12.79 MB / 0.5105 GB " [Timeout remaining time 652] (rm -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv --start-time 0 --stop-time 25 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.025 ThermofluidStream_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable Time from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv failed! Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv failed! Error: Could not read variable source.outlet.m_flow in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable source.outlet.m_flow from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:Time,checkValve.inlet.m_flow,firstOrder.y,pulse.T_start,pulse.count,reservoir.M,reservoir.U_med,source.outlet.m_flow Variables in the result:time,checkValve.inlet.m_flow,firstOrder.y,flowResistance.inlet.m_flow,reservoir.M,reservoir.U_med [Calling sys.exit(0), Time elapsed: 10.750083192251623]