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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001665/0.001665, allocations: 109.1 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.7283/0.7283, allocations: 94.6 MB / 397.3 MB, free: 256 kB / 302.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002295/0.002295, allocations: 91.28 kB / 0.5416 GB, free: 42.55 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1301, allocations: 71.85 MB / 0.6118 GB, free: 10.09 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03459/0.1647, allocations: 31.18 MB / 0.6422 GB, free: 10.79 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01195/0.1767, allocations: 9.75 MB / 0.6517 GB, free: 1.004 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001076/0.1778, allocations: 39.75 kB / 0.6518 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.1792, allocations: 0.5317 MB / 0.6523 GB, free: 440 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00213/0.1813, allocations: 0.8152 MB / 0.6531 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001831/0.1831, allocations: 0.693 MB / 0.6538 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002025/0.1852, allocations: 1.497 MB / 0.6552 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003565/0.1855, allocations: 189.8 kB / 0.6554 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001037/0.1866, allocations: 0.6342 MB / 0.656 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006073/0.1872, allocations: 0.5326 MB / 0.6565 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.1873, allocations: 76 kB / 0.6566 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001306/0.1886, allocations: 0.5229 MB / 0.6571 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002189/0.1888, allocations: 203.1 kB / 0.6573 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005079/0.1893, allocations: 0.5245 MB / 0.6578 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002134/0.1914, allocations: 1.408 MB / 0.6592 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1914, allocations: 0 / 0.6592 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.364e-06/0.1914, allocations: 0 / 0.6592 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.281e-05/0.1915, allocations: 0 / 0.6592 GB, free: 9.312 MB / 0.4981 GB 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.002621/0.1941, allocations: 1.444 MB / 0.6606 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1941, allocations: 12.03 kB / 0.6606 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001353/0.1943, allocations: 122.7 kB / 0.6607 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002668/0.1945, allocations: 132.1 kB / 0.6609 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001242/0.1958, allocations: 0.7553 MB / 0.6616 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.069e-05/0.1958, allocations: 54 kB / 0.6617 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.196, allocations: 83.94 kB / 0.6617 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.1973, allocations: 0.7954 MB / 0.6625 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.1973, allocations: 0 / 0.6625 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.731e-05/0.1974, allocations: 32 kB / 0.6625 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.991e-05/0.1974, allocations: 23.92 kB / 0.6626 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/0.1985, allocations: 0.6246 MB / 0.6632 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004733/0.2033, allocations: 3.715 MB / 0.6668 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.2044, allocations: 0.545 MB / 0.6673 GB, free: 488 kB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004912/0.2049, allocations: 258.4 kB / 0.6676 GB, free: 228 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002934/0.2078, allocations: 2.539 MB / 0.6701 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006768/0.2085, allocations: 369.8 kB / 0.6704 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 1.914e-06/0.2085, allocations: 0 / 0.6704 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.003825/0.2123, allocations: 1.949 MB / 0.6723 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.849e-05/0.2124, allocations: 85.67 kB / 0.6724 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007835/0.2132, allocations: 0.6375 MB / 0.673 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.818e-05/0.2133, allocations: 41.7 kB / 0.6731 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003864/0.2136, allocations: 452.6 kB / 0.6735 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/0.2138, allocations: 234 kB / 0.6737 GB, free: 9.414 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001985/0.214, allocations: 122.3 kB / 0.6738 GB, free: 9.285 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001819/0.2142, allocations: 330 kB / 0.6741 GB, free: 8.957 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004423/0.2147, allocations: 217.5 kB / 0.6744 GB, free: 8.746 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005193/0.2152, allocations: 327.4 kB / 0.6747 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009871/0.2162, allocations: 0.5614 MB / 0.6752 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2162, allocations: 0 / 0.6752 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001481/0.2176, allocations: 0.8037 MB / 0.676 GB, free: 6.973 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.855e-05/0.2177, allocations: 37.62 kB / 0.676 GB, free: 6.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.2177, allocations: 4 kB / 0.676 GB, free: 6.926 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003463/0.218, allocations: 96.78 kB / 0.6761 GB, free: 6.828 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004925/0.2185, allocations: 135.9 kB / 0.6763 GB, free: 6.695 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002218/0.2208, allocations: 1.97 MB / 0.6782 GB, free: 4.582 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003722/0.2211, allocations: 24.02 kB / 0.6782 GB, free: 4.559 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.414e-05/0.2212, allocations: 31.98 kB / 0.6782 GB, free: 4.527 MB / 0.5137 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.0003369/0.2215, allocations: 237.6 kB / 0.6785 GB, free: 4.285 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.2217, allocations: 95.36 kB / 0.6786 GB, free: 4.191 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/0.2233, allocations: 0.8426 MB / 0.6794 GB, free: 3.328 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.2233, allocations: 8 kB / 0.6794 GB, free: 3.32 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.2233, allocations: 0 / 0.6794 GB, free: 3.32 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.2233, allocations: 3.984 kB / 0.6794 GB, free: 3.316 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002566/0.2259, allocations: 1.606 MB / 0.681 GB, free: 1.641 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.2259, allocations: 0 / 0.681 GB, free: 1.641 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004617/0.2263, allocations: 111.9 kB / 0.6811 GB, free: 1.531 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000301/0.2266, allocations: 108.7 kB / 0.6812 GB, free: 1.422 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.052e-05/0.2267, allocations: 23.98 kB / 0.6812 GB, free: 1.398 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002055/0.2288, allocations: 1.981 MB / 0.6831 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2288, allocations: 3.938 kB / 0.6831 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.2306, allocations: 1.078 MB / 0.6842 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000323/0.2309, allocations: 216.5 kB / 0.6844 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.841e-05/0.231, allocations: 12 kB / 0.6844 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003927/0.2314, allocations: 27.92 kB / 0.6844 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.2315, allocations: 56.48 kB / 0.6845 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.253e-05/0.2316, allocations: 31.97 kB / 0.6845 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005516/0.2321, allocations: 455 kB / 0.6849 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.1e-08/0.2321, allocations: 0 / 0.6849 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007974/0.2329, allocations: 275.7 kB / 0.6852 GB, free: 13.09 MB / 0.5294 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.002594/0.2355, allocations: 1.876 MB / 0.687 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001526/0.237, allocations: 0.7444 MB / 0.6878 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.237, allocations: 4.125 kB / 0.6878 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008067/0.2378, allocations: 449.6 kB / 0.6882 GB, free: 9.957 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.2389, allocations: 237.6 kB / 0.6884 GB, free: 9.73 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01007/0.2489, allocations: 6.614 MB / 0.6949 GB, free: 2.906 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007223/0.2497, allocations: 1.001 MB / 0.6959 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005405/0.2502, allocations: 153.9 kB / 0.696 GB, free: 1.727 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004754/0.2507, allocations: 371.3 kB / 0.6964 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of SimCode: time 2.255e-06/0.2507, allocations: 0 / 0.6964 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05892/0.3096, allocations: 22.78 MB / 0.7186 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.08, allocations: 10.19 kB / 0.7186 GB, free: 10.8 MB / 0.5606 GB " [Timeout remaining time 647] (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 --stepSize=0.025 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_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_dev_ThermofluidStream.Examples.WaterHammer_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.5849265800789]