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.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.0008499/0.0008499, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0009302/0.0009302, allocations: 165.9 kB / 22.46 MB, free: 2.109 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.8646/0.8646, 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 main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6208/0.6208, allocations: 116 MB / 375.2 MB, free: 4.176 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_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 1.473e-06/1.473e-06, allocations: 0 / 0.5532 GB, free: 13.36 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.001e-05/2.148e-05, allocations: 6.281 kB / 0.5532 GB, free: 13.35 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02102/0.02104, allocations: 29.65 MB / 0.5822 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.007781/0.02882, allocations: 8.165 MB / 0.5902 GB, free: 7.395 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00128/0.0301, allocations: 59.44 kB / 0.5902 GB, free: 7.336 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.001304/0.03141, allocations: 488.3 kB / 0.5907 GB, free: 6.855 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.002254/0.03366, allocations: 0.8921 MB / 0.5915 GB, free: 5.957 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001659/0.03532, allocations: 0.7271 MB / 0.5923 GB, free: 5.23 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001727/0.03704, allocations: 1.645 MB / 0.5939 GB, free: 3.574 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006128/0.03766, allocations: 190.3 kB / 0.594 GB, free: 3.375 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001221/0.03888, allocations: 0.9116 MB / 0.5949 GB, free: 2.461 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004715/0.03935, allocations: 442.6 kB / 0.5954 GB, free: 2.027 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 8.241e-05/0.03943, allocations: 84 kB / 0.5954 GB, free: 1.945 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001015/0.04045, allocations: 483.1 kB / 0.5959 GB, free: 1.473 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.04059, allocations: 211 kB / 0.5961 GB, free: 1.266 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0002866/0.04088, allocations: 379 kB / 0.5965 GB, free: 0.8945 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001722/0.0426, allocations: 1.456 MB / 0.5979 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.0426, allocations: 0 / 0.5979 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.914e-06/0.04261, allocations: 3.938 kB / 0.5979 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.165e-05/0.04262, allocations: 0 / 0.5979 GB, free: 15.43 MB / 0.5261 GB 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.001785/0.0444, allocations: 1.406 MB / 0.5993 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.04446, allocations: 8.031 kB / 0.5993 GB, free: 13.97 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.04456, allocations: 118.7 kB / 0.5994 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002423/0.0448, allocations: 148.1 kB / 0.5995 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008969/0.0457, allocations: 0.6984 MB / 0.6002 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.172e-05/0.04574, allocations: 70.11 kB / 0.6003 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.213e-05/0.04582, allocations: 83.98 kB / 0.6004 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.04697, allocations: 0.9932 MB / 0.6013 GB, free: 11.76 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.04699, allocations: 7.938 kB / 0.6013 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.449e-05/0.04703, allocations: 28 kB / 0.6014 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.04705, allocations: 20 kB / 0.6014 GB, free: 11.71 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007471/0.04779, allocations: 0.6363 MB / 0.602 GB, free: 11.07 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/0.05038, allocations: 2.314 MB / 0.6043 GB, free: 8.691 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007203/0.0511, allocations: 0.5164 MB / 0.6048 GB, free: 8.168 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002775/0.05138, allocations: 247.3 kB / 0.605 GB, free: 7.926 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00126/0.05264, allocations: 0.9363 MB / 0.6059 GB, free: 6.969 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004937/0.05313, allocations: 0.5272 MB / 0.6064 GB, free: 6.379 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=63): time 2.324e-06/0.05314, allocations: 0 / 0.6064 GB, free: 6.379 MB / 0.5261 GB Notification: Performance of matching and sorting (n=65): time 0.00269/0.05583, allocations: 1.823 MB / 0.6082 GB, free: 4.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.05589, allocations: 111.5 kB / 0.6083 GB, free: 4.387 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00059/0.05648, allocations: 0.6808 MB / 0.609 GB, free: 3.699 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.05651, allocations: 37.7 kB / 0.609 GB, free: 3.656 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002393/0.05675, allocations: 456.6 kB / 0.6094 GB, free: 3.207 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.05687, allocations: 237.9 kB / 0.6097 GB, free: 2.973 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.05699, allocations: 126.7 kB / 0.6098 GB, free: 2.844 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.264e-05/0.05708, allocations: 330 kB / 0.6101 GB, free: 2.516 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002695/0.05735, allocations: 231.6 kB / 0.6103 GB, free: 2.285 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003269/0.05767, allocations: 403.7 kB / 0.6107 GB, free: 1.828 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005899/0.05826, allocations: 0.5634 MB / 0.6113 GB, free: 1.219 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.05826, allocations: 0 / 0.6113 GB, free: 1.219 MB / 0.5261 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.0009159/0.05918, allocations: 0.8207 MB / 0.6121 GB, free: 384 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.05921, allocations: 37.64 kB / 0.6121 GB, free: 340 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.05923, allocations: 4.344 kB / 0.6121 GB, free: 336 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002594/0.05948, allocations: 108.7 kB / 0.6122 GB, free: 224 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002682/0.05975, allocations: 127.8 kB / 0.6123 GB, free: 96 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001365/0.06112, allocations: 1.858 MB / 0.6141 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/0.06139, allocations: 27.98 kB / 0.6142 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.65e-05/0.06143, allocations: 27.98 kB / 0.6142 GB, free: 14.07 MB / 0.5417 GB 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.0002911/0.06172, allocations: 227.3 kB / 0.6144 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.542e-05/0.06181, allocations: 99.33 kB / 0.6145 GB, free: 13.74 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.06305, allocations: 0.8063 MB / 0.6153 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.06306, allocations: 8 kB / 0.6153 GB, free: 12.9 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.165e-06/0.06306, allocations: 0 / 0.6153 GB, free: 12.9 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.06307, allocations: 7.984 kB / 0.6153 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001655/0.06472, allocations: 1.427 MB / 0.6167 GB, free: 11.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.06473, allocations: 0 / 0.6167 GB, free: 11.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002585/0.06499, allocations: 107.9 kB / 0.6168 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000217/0.0652, allocations: 100.7 kB / 0.6169 GB, free: 11.19 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.769e-05/0.06524, allocations: 28.02 kB / 0.6169 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.06655, allocations: 1.843 MB / 0.6187 GB, free: 9.211 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.06655, allocations: 12.03 kB / 0.6187 GB, free: 9.199 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.0677, allocations: 1.037 MB / 0.6198 GB, free: 8.137 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/0.06794, allocations: 139.4 kB / 0.6199 GB, free: 8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.217e-05/0.068, allocations: 20 kB / 0.6199 GB, free: 7.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.06822, allocations: 27.97 kB / 0.6199 GB, free: 7.953 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.06832, allocations: 56.34 kB / 0.62 GB, free: 7.895 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.69e-05/0.06836, allocations: 31.91 kB / 0.62 GB, free: 7.863 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004629/0.06882, allocations: 475 kB / 0.6205 GB, free: 7.402 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2e-07/0.06882, allocations: 0 / 0.6205 GB, free: 7.402 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006546/0.06947, allocations: 287.7 kB / 0.6207 GB, free: 7.121 MB / 0.5417 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 (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.00197/0.07144, allocations: 1.824 MB / 0.6225 GB, free: 5.258 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001043/0.07249, allocations: 0.7424 MB / 0.6233 GB, free: 4.484 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.07249, allocations: 4 kB / 0.6233 GB, free: 4.48 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004827/0.07297, allocations: 433.6 kB / 0.6237 GB, free: 4.043 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008965/0.07387, allocations: 338 kB / 0.624 GB, free: 3.723 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007105/0.08098, allocations: 6.72 MB / 0.6306 GB, free: 12.76 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.08127, allocations: 421.6 kB / 0.631 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0004553/0.08172, allocations: 150.4 kB / 0.6311 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003175/0.08204, allocations: 368.4 kB / 0.6315 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of SimCode: time 1.362e-06/0.08204, allocations: 0 / 0.6315 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2555/0.3376, allocations: 26.57 MB / 0.6574 GB, free: 89.49 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.214/7.551, allocations: 6.297 kB / 0.6574 GB, free: 89.49 MB / 0.5573 GB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 10.095999360084534]