Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009475/0.009475, allocations: 96.89 kB / 15.73 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002308/0.002308, allocations: 189.3 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.563/1.563, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7669/0.7669, allocations: 93.7 MB / 384.2 MB, free: 6.938 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002582/0.002583, allocations: 83.88 kB / 0.5199 GB, free: 6.359 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1373, allocations: 68.27 MB / 0.5866 GB, free: 2.02 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.3132/0.4505, allocations: 30.9 MB / 0.6168 GB, free: 3.867 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01723/0.4678, allocations: 9.714 MB / 0.6263 GB, free: 12.94 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002045/0.4699, allocations: 37.38 kB / 0.6263 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002397/0.4723, allocations: 0.5235 MB / 0.6268 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003782/0.4762, allocations: 0.7988 MB / 0.6276 GB, free: 12.1 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002814/0.479, allocations: 0.701 MB / 0.6283 GB, free: 11.72 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003357/0.4824, allocations: 1.482 MB / 0.6297 GB, free: 10.99 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009195/0.4834, allocations: 305.1 kB / 0.63 GB, free: 10.86 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002258/0.4856, allocations: 0.6076 MB / 0.6306 GB, free: 10.58 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001494/0.4872, allocations: 0.5313 MB / 0.6311 GB, free: 10.31 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003811/0.4876, allocations: 78.81 kB / 0.6312 GB, free: 10.31 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002575/0.4902, allocations: 0.5073 MB / 0.6317 GB, free: 10.18 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005637/0.4908, allocations: 207.9 kB / 0.6319 GB, free: 10.04 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001848/0.4926, allocations: 0.5186 MB / 0.6324 GB, free: 9.719 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004623/0.4973, allocations: 1.409 MB / 0.6338 GB, free: 9.109 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.4973, allocations: 0 / 0.6338 GB, free: 9.109 MB / 494.1 MB Notification: Performance of FrontEnd: time 5.06e-06/0.4973, allocations: 0 / 0.6338 GB, free: 9.109 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.734e-05/0.4974, allocations: 3.938 kB / 0.6338 GB, free: 9.105 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.004283/0.5017, allocations: 1.453 MB / 0.6352 GB, free: 8.086 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.5018, allocations: 10.31 kB / 0.6352 GB, free: 8.086 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002605/0.502, allocations: 118.6 kB / 0.6353 GB, free: 7.984 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004658/0.5025, allocations: 134.5 kB / 0.6354 GB, free: 7.914 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001784/0.5043, allocations: 0.7521 MB / 0.6362 GB, free: 7.309 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.026e-05/0.5044, allocations: 58.81 kB / 0.6362 GB, free: 7.285 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001723/0.5046, allocations: 77.95 kB / 0.6363 GB, free: 7.258 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/0.5064, allocations: 0.786 MB / 0.6371 GB, free: 6.777 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/0.5064, allocations: 7.922 kB / 0.6371 GB, free: 6.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.669e-05/0.5065, allocations: 31.84 kB / 0.6371 GB, free: 6.746 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.088e-05/0.5065, allocations: 21.09 kB / 0.6371 GB, free: 6.742 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.508, allocations: 0.6216 MB / 0.6377 GB, free: 6.445 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006355/0.5144, allocations: 3.728 MB / 0.6414 GB, free: 3.023 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/0.5158, allocations: 0.5914 MB / 0.642 GB, free: 2.707 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00061/0.5165, allocations: 281.3 kB / 0.6422 GB, free: 2.566 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004093/0.5206, allocations: 2.531 MB / 0.6447 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008752/0.5215, allocations: 374.8 kB / 0.6451 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=63): time 3.967e-06/0.5215, allocations: 0 / 0.6451 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65): time 0.005138/0.5267, allocations: 1.954 MB / 0.647 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.361e-05/0.5268, allocations: 84.55 kB / 0.647 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001212/0.528, allocations: 0.6315 MB / 0.6477 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.5281, allocations: 42.92 kB / 0.6477 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004666/0.5286, allocations: 445 kB / 0.6481 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002541/0.5289, allocations: 235.9 kB / 0.6484 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002366/0.5291, allocations: 120.2 kB / 0.6485 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.5293, allocations: 336.3 kB / 0.6488 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005205/0.5298, allocations: 212.2 kB / 0.649 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006232/0.5305, allocations: 323.9 kB / 0.6493 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.5316, allocations: 0.5648 MB / 0.6498 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.5317, allocations: 5.062 kB / 0.6499 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002036/0.5337, allocations: 0.8032 MB / 0.6506 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.874e-05/0.5338, allocations: 33.67 kB / 0.6507 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.5338, allocations: 6.125 kB / 0.6507 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004914/0.5343, allocations: 105.9 kB / 0.6508 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005899/0.5349, allocations: 133.5 kB / 0.6509 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002655/0.5376, allocations: 1.984 MB / 0.6528 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006961/0.5383, allocations: 22.45 kB / 0.6529 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/0.5385, allocations: 28.16 kB / 0.6529 GB, free: 9.805 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (73): * Single equations (assignments): 71 * 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.0005607/0.539, allocations: 227.4 kB / 0.6531 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002767/0.5393, allocations: 91.66 kB / 0.6532 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002129/0.5415, allocations: 0.8637 MB / 0.654 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.5415, allocations: 10.5 kB / 0.654 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.5415, allocations: 1.031 kB / 0.654 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.5415, allocations: 5.203 kB / 0.6541 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003675/0.5452, allocations: 1.608 MB / 0.6556 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.5452, allocations: 1.094 kB / 0.6556 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005308/0.5458, allocations: 110.2 kB / 0.6557 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004399/0.5462, allocations: 111.1 kB / 0.6558 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.817e-05/0.5463, allocations: 19.62 kB / 0.6559 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002656/0.549, allocations: 1.983 MB / 0.6578 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.549, allocations: 1.438 kB / 0.6578 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002561/0.5516, allocations: 1.087 MB / 0.6589 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006118/0.5522, allocations: 208.7 kB / 0.6591 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002603/0.5525, allocations: 12.91 kB / 0.6591 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006282/0.5531, allocations: 36.5 kB / 0.6591 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.5533, allocations: 57.73 kB / 0.6592 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.876e-05/0.5534, allocations: 23.83 kB / 0.6592 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001005/0.5545, allocations: 463.6 kB / 0.6596 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5545, allocations: 0 / 0.6596 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001606/0.5561, allocations: 280.1 kB / 0.6599 GB, free: 4.73 MB / 0.4981 GB 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 (55): * Single equations (assignments): 52 * 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.003548/0.5596, allocations: 1.871 MB / 0.6617 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001998/0.5617, allocations: 0.7771 MB / 0.6625 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/0.5617, allocations: 2 kB / 0.6625 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.5628, allocations: 473.3 kB / 0.6629 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/0.5646, allocations: 234.2 kB / 0.6632 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01352/0.5781, allocations: 6.628 MB / 0.6696 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008944/0.5791, allocations: 0.9972 MB / 0.6706 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007541/0.5798, allocations: 149.9 kB / 0.6707 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006449/0.5805, allocations: 367.3 kB / 0.6711 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of SimCode: time 1.643e-06/0.5805, allocations: 0 / 0.6711 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06734/0.6479, allocations: 22.62 MB / 0.6932 GB, free: 4.387 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/13.57, allocations: 10.81 kB / 0.6932 GB, free: 4.379 MB / 0.5294 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches