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.001687/0.001687, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.476/1.476, allocations: 222.9 MB / 240.2 MB, free: 4.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7647/0.7647, allocations: 93.71 MB / 384.1 MB, free: 6.969 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 89.47 kB / 463.5 MB, free: 21.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1401, allocations: 68.26 MB / 0.5193 GB, free: 6.914 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.04128/0.1815, allocations: 30.9 MB / 0.5495 GB, free: 7.891 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.1944, allocations: 9.719 MB / 0.559 GB, free: 14.14 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.1955, allocations: 35.75 kB / 0.559 GB, free: 14.11 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001462/0.197, allocations: 0.5279 MB / 0.5595 GB, free: 13.58 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002389/0.1994, allocations: 0.8034 MB / 0.5603 GB, free: 12.77 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001933/0.2014, allocations: 0.6996 MB / 0.561 GB, free: 12.07 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002042/0.2034, allocations: 1.478 MB / 0.5624 GB, free: 10.59 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004839/0.2039, allocations: 289.7 kB / 0.5627 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001092/0.205, allocations: 0.6147 MB / 0.5633 GB, free: 9.672 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006507/0.2057, allocations: 0.5287 MB / 0.5638 GB, free: 9.141 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.2058, allocations: 76 kB / 0.5639 GB, free: 9.066 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001512/0.2073, allocations: 0.5112 MB / 0.5644 GB, free: 8.555 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002269/0.2076, allocations: 203.1 kB / 0.5646 GB, free: 8.355 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005387/0.2081, allocations: 0.5168 MB / 0.5651 GB, free: 7.836 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002138/0.2103, allocations: 1.359 MB / 0.5664 GB, free: 6.473 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2103, allocations: 0 / 0.5664 GB, free: 6.473 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2103, allocations: 4 kB / 0.5664 GB, free: 6.469 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.2103, allocations: 0 / 0.5664 GB, free: 6.469 MB / 446.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.00265/0.213, allocations: 1.428 MB / 0.5678 GB, free: 4.977 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.213, allocations: 8.031 kB / 0.5678 GB, free: 4.969 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001503/0.2132, allocations: 122.7 kB / 0.5679 GB, free: 4.84 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002882/0.2135, allocations: 123.5 kB / 0.5681 GB, free: 4.719 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.2146, allocations: 0.6883 MB / 0.5687 GB, free: 3.988 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.596e-05/0.2146, allocations: 58 kB / 0.5688 GB, free: 3.934 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.2148, allocations: 79.89 kB / 0.5689 GB, free: 3.855 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.2162, allocations: 0.7954 MB / 0.5696 GB, free: 3.039 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.2162, allocations: 0 / 0.5696 GB, free: 3.039 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.069e-05/0.2163, allocations: 32 kB / 0.5697 GB, free: 3.008 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.289e-05/0.2163, allocations: 16 kB / 0.5697 GB, free: 2.992 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001187/0.2175, allocations: 0.6246 MB / 0.5703 GB, free: 2.371 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00492/0.2224, allocations: 3.741 MB / 0.5739 GB, free: 14.26 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.2238, allocations: 0.5853 MB / 0.5745 GB, free: 13.67 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005941/0.2244, allocations: 287.8 kB / 0.5748 GB, free: 13.39 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003231/0.2277, allocations: 2.531 MB / 0.5773 GB, free: 10.48 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007552/0.2284, allocations: 369.9 kB / 0.5776 GB, free: 10.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=63): time 2.184e-06/0.2285, allocations: 4 kB / 0.5776 GB, free: 10.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=65): time 0.004189/0.2326, allocations: 1.935 MB / 0.5795 GB, free: 8.066 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.87e-05/0.2328, allocations: 89.67 kB / 0.5796 GB, free: 7.961 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008395/0.2336, allocations: 0.6298 MB / 0.5802 GB, free: 7.32 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.775e-05/0.2337, allocations: 37.7 kB / 0.5802 GB, free: 7.277 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004139/0.2341, allocations: 447.8 kB / 0.5807 GB, free: 6.836 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002151/0.2343, allocations: 224.7 kB / 0.5809 GB, free: 6.613 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.2345, allocations: 118.3 kB / 0.581 GB, free: 6.492 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.2347, allocations: 330 kB / 0.5813 GB, free: 6.164 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004554/0.2352, allocations: 217.5 kB / 0.5815 GB, free: 5.953 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005563/0.2357, allocations: 327.4 kB / 0.5818 GB, free: 5.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.2368, allocations: 0.5614 MB / 0.5824 GB, free: 4.996 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2368, allocations: 0 / 0.5824 GB, free: 4.996 MB / 462.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001582/0.2384, allocations: 0.8107 MB / 0.5832 GB, free: 4.168 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.194e-05/0.2384, allocations: 37.69 kB / 0.5832 GB, free: 4.125 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.2384, allocations: 0 / 0.5832 GB, free: 4.125 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000393/0.2388, allocations: 105 kB / 0.5833 GB, free: 4.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004985/0.2393, allocations: 123.8 kB / 0.5834 GB, free: 3.898 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002284/0.2416, allocations: 1.981 MB / 0.5854 GB, free: 1.777 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004512/0.2421, allocations: 27.98 kB / 0.5854 GB, free: 1.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.887e-05/0.2422, allocations: 31.98 kB / 0.5854 GB, free: 1.719 MB / 462.1 MB 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.0004162/0.2426, allocations: 229.6 kB / 0.5856 GB, free: 1.484 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.2428, allocations: 86.91 kB / 0.5857 GB, free: 1.398 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00174/0.2445, allocations: 0.8466 MB / 0.5865 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.453e-06/0.2445, allocations: 8 kB / 0.5866 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.2445, allocations: 11.98 kB / 0.5866 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.2446, allocations: 3.984 kB / 0.5866 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.246/0.4906, allocations: 1.61 MB / 0.5881 GB, free: 69.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.4906, allocations: 2.938 kB / 0.5881 GB, free: 69.22 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004847/0.4911, allocations: 114.8 kB / 0.5883 GB, free: 69.22 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003412/0.4915, allocations: 101.4 kB / 0.5884 GB, free: 69.21 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.774e-05/0.4915, allocations: 20.33 kB / 0.5884 GB, free: 69.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001743/0.4933, allocations: 1.977 MB / 0.5903 GB, free: 67.88 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4933, allocations: 0.8125 kB / 0.5903 GB, free: 67.88 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001917/0.4952, allocations: 1.082 MB / 0.5914 GB, free: 67.69 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003078/0.4955, allocations: 213.2 kB / 0.5916 GB, free: 67.56 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.4957, allocations: 13.92 kB / 0.5916 GB, free: 67.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003969/0.4961, allocations: 32.14 kB / 0.5916 GB, free: 67.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.4962, allocations: 55.7 kB / 0.5917 GB, free: 67.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.73e-05/0.4963, allocations: 25.3 kB / 0.5917 GB, free: 67.54 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006108/0.4969, allocations: 457.3 kB / 0.5921 GB, free: 67.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4969, allocations: 0 / 0.5921 GB, free: 67.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0009321/0.4979, allocations: 277.8 kB / 0.5924 GB, free: 67.3 MB / 462.1 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 (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.002488/0.5003, allocations: 1.868 MB / 0.5942 GB, free: 66.26 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.502, allocations: 0.8048 MB / 0.595 GB, free: 65.87 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.5021, allocations: 4.859 kB / 0.595 GB, free: 65.87 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007723/0.5028, allocations: 472.1 kB / 0.5955 GB, free: 65.64 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/0.504, allocations: 245 kB / 0.5957 GB, free: 65.57 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008898/0.5129, allocations: 6.908 MB / 0.6024 GB, free: 61.74 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006275/0.5136, allocations: 1 MB / 0.6034 GB, free: 61.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006576/0.5143, allocations: 152 kB / 0.6036 GB, free: 60.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004256/0.5147, allocations: 373.4 kB / 0.6039 GB, free: 60.69 MB / 462.1 MB Notification: Performance of SimCode: time 1.634e-06/0.5147, allocations: 4.781 kB / 0.6039 GB, free: 60.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06004/0.5748, allocations: 22.3 MB / 0.6257 GB, free: 50.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.85, allocations: 17.8 kB / 0.6257 GB, free: 50.83 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat","/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