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.0009328/0.0009328, 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.001534/0.001534, allocations: 170.3 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.9236/0.9236, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.5239/0.5239, allocations: 80.18 MB / 339.4 MB, free: 7.531 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 2.044e-06/2.044e-06, allocations: 0 / 0.4924 GB, free: 6.633 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.544e-05/1.748e-05, allocations: 2.281 kB / 0.4924 GB, free: 6.629 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.01795/0.01797, allocations: 29.61 MB / 0.5213 GB, free: 10.79 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.006637/0.02461, allocations: 8.141 MB / 0.5292 GB, free: 2.617 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008504/0.02546, allocations: 55.44 kB / 0.5293 GB, free: 2.562 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009455/0.0264, allocations: 476.5 kB / 0.5297 GB, free: 2.094 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001573/0.02797, allocations: 0.8882 MB / 0.5306 GB, free: 1.199 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001256/0.02923, allocations: 0.7111 MB / 0.5313 GB, free: 500 kB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.03043, allocations: 1.625 MB / 0.5329 GB, free: 14.86 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002768/0.03071, allocations: 182.4 kB / 0.533 GB, free: 14.67 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00124/0.03195, allocations: 0.9077 MB / 0.5339 GB, free: 13.76 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004043/0.03235, allocations: 430.6 kB / 0.5343 GB, free: 13.34 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 8.379e-05/0.03243, allocations: 76 kB / 0.5344 GB, free: 13.26 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009106/0.03334, allocations: 491.1 kB / 0.5349 GB, free: 12.78 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.03348, allocations: 211 kB / 0.5351 GB, free: 12.57 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002625/0.03374, allocations: 371.1 kB / 0.5354 GB, free: 12.21 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001344/0.03509, allocations: 1.417 MB / 0.5368 GB, free: 10.79 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.03509, allocations: 0 / 0.5368 GB, free: 10.79 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.0351, allocations: 4 kB / 0.5368 GB, free: 10.79 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.03511, allocations: 0 / 0.5368 GB, free: 10.79 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.002061/0.03717, allocations: 1.387 MB / 0.5382 GB, free: 9.355 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/0.03723, allocations: 9.469 kB / 0.5382 GB, free: 9.348 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001139/0.03734, allocations: 126.6 kB / 0.5383 GB, free: 9.215 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002874/0.03763, allocations: 132.2 kB / 0.5384 GB, free: 9.086 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.03863, allocations: 0.675 MB / 0.5391 GB, free: 8.383 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.995e-05/0.03868, allocations: 62.12 kB / 0.5392 GB, free: 8.324 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.456e-05/0.03878, allocations: 91.94 kB / 0.5392 GB, free: 8.234 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.0398, allocations: 0.9932 MB / 0.5402 GB, free: 7.168 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.03981, allocations: 3.938 kB / 0.5402 GB, free: 7.164 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.612e-05/0.03986, allocations: 32 kB / 0.5402 GB, free: 7.133 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.03987, allocations: 20 kB / 0.5403 GB, free: 7.113 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008249/0.0407, allocations: 0.6324 MB / 0.5409 GB, free: 6.484 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003022/0.04372, allocations: 2.369 MB / 0.5432 GB, free: 4.047 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007282/0.04445, allocations: 0.5419 MB / 0.5437 GB, free: 3.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003074/0.04475, allocations: 251.6 kB / 0.544 GB, free: 3.254 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001309/0.04606, allocations: 1.003 MB / 0.5449 GB, free: 2.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005007/0.04656, allocations: 0.535 MB / 0.5455 GB, free: 1.629 MB / 458.7 MB Notification: Performance of pre-optimization done (n=63): time 2.174e-06/0.04657, allocations: 0 / 0.5455 GB, free: 1.629 MB / 458.7 MB Notification: Performance of matching and sorting (n=65): time 0.002508/0.04907, allocations: 1.858 MB / 0.5473 GB, free: 15.73 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/0.04913, allocations: 119.4 kB / 0.5474 GB, free: 15.59 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005271/0.04966, allocations: 0.6494 MB / 0.548 GB, free: 14.93 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.0497, allocations: 37.7 kB / 0.5481 GB, free: 14.89 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002338/0.04993, allocations: 460.5 kB / 0.5485 GB, free: 14.43 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.05005, allocations: 233.9 kB / 0.5487 GB, free: 14.21 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.05018, allocations: 122.7 kB / 0.5488 GB, free: 14.08 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.37e-05/0.05026, allocations: 334 kB / 0.5492 GB, free: 13.75 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002784/0.05054, allocations: 235.6 kB / 0.5494 GB, free: 13.52 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003528/0.05089, allocations: 415.7 kB / 0.5498 GB, free: 13.05 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000619/0.05151, allocations: 0.579 MB / 0.5504 GB, free: 12.42 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.05151, allocations: 0 / 0.5504 GB, free: 12.42 MB / 474.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.0009442/0.05246, allocations: 0.8402 MB / 0.5512 GB, free: 11.56 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.7e-05/0.05249, allocations: 37.7 kB / 0.5512 GB, free: 11.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.0525, allocations: 4.344 kB / 0.5512 GB, free: 11.51 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002602/0.05276, allocations: 104.7 kB / 0.5513 GB, free: 11.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.05304, allocations: 127.8 kB / 0.5514 GB, free: 11.28 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.05449, allocations: 1.855 MB / 0.5532 GB, free: 9.309 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002456/0.05473, allocations: 27.98 kB / 0.5533 GB, free: 9.281 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.232e-05/0.05477, allocations: 27.98 kB / 0.5533 GB, free: 9.254 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.0002493/0.05502, allocations: 227.5 kB / 0.5535 GB, free: 9.023 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.292e-05/0.05511, allocations: 95.33 kB / 0.5536 GB, free: 8.93 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.05611, allocations: 0.8255 MB / 0.5544 GB, free: 8.082 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.05611, allocations: 8 kB / 0.5544 GB, free: 8.074 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.05611, allocations: 3.938 kB / 0.5544 GB, free: 8.07 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.05612, allocations: 7.984 kB / 0.5544 GB, free: 8.062 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001599/0.05772, allocations: 1.481 MB / 0.5559 GB, free: 6.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.05772, allocations: 0 / 0.5559 GB, free: 6.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.05797, allocations: 107.9 kB / 0.556 GB, free: 6.414 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001993/0.05817, allocations: 108.7 kB / 0.5561 GB, free: 6.305 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.788e-05/0.05821, allocations: 27.92 kB / 0.5561 GB, free: 6.277 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001285/0.0595, allocations: 1.839 MB / 0.5579 GB, free: 4.32 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.0595, allocations: 4.062 kB / 0.5579 GB, free: 4.316 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/0.06067, allocations: 1.072 MB / 0.559 GB, free: 3.219 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.06087, allocations: 139.4 kB / 0.5591 GB, free: 3.082 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.722e-05/0.06092, allocations: 20.27 kB / 0.5591 GB, free: 3.062 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002129/0.06114, allocations: 23.98 kB / 0.5591 GB, free: 3.039 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.06124, allocations: 60.33 kB / 0.5592 GB, free: 2.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.472e-05/0.06128, allocations: 27.92 kB / 0.5592 GB, free: 2.953 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003884/0.06166, allocations: 467 kB / 0.5597 GB, free: 2.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.06166, allocations: 0 / 0.5597 GB, free: 2.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0005876/0.06225, allocations: 279.8 kB / 0.5599 GB, free: 2.227 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.001702/0.06395, allocations: 1.87 MB / 0.5618 GB, free: 324 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0009806/0.06493, allocations: 0.7735 MB / 0.5625 GB, free: 15.51 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.06494, allocations: 0 / 0.5625 GB, free: 15.51 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004722/0.06541, allocations: 453.6 kB / 0.5629 GB, free: 15.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008533/0.06626, allocations: 316.3 kB / 0.5632 GB, free: 14.75 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006798/0.07306, allocations: 6.715 MB / 0.5698 GB, free: 7.789 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.07334, allocations: 421 kB / 0.5702 GB, free: 7.348 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0004189/0.07376, allocations: 150.3 kB / 0.5703 GB, free: 7.195 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003237/0.07409, allocations: 372.4 kB / 0.5707 GB, free: 6.828 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/0.07409, allocations: 0 / 0.5707 GB, free: 6.828 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04081/0.1149, allocations: 26.41 MB / 0.5965 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.761/7.876, allocations: 15.81 kB / 0.5965 GB, free: 12.77 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --stepSize=0.025 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat","/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 pulse.T_start in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.407482570037246]