Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.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: translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008241/0.008241, allocations: 102.8 kB / 15.73 MB, free: 5.996 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.001891/0.001891, allocations: 193.2 kB / 16.67 MB, free: 5.918 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7918/0.7918, allocations: 91.19 MB / 381.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 79.86 kB / 0.5168 GB, free: 4.109 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3936/0.3953, allocations: 67.68 MB / 0.5829 GB, free: 13.92 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1846/0.58, allocations: 143.8 MB / 0.7233 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004366/0.5844, allocations: 3.599 MB / 0.7269 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003518/0.5848, allocations: 15.88 kB / 0.7269 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006463/0.5854, allocations: 174.9 kB / 0.727 GB, free: 10 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0008487/0.5864, allocations: 373.8 kB / 0.7274 GB, free: 9.633 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007916/0.5872, allocations: 295 kB / 0.7277 GB, free: 9.344 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004983/0.5877, allocations: 0.4938 MB / 0.7282 GB, free: 8.848 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002019/0.5879, allocations: 89.5 kB / 0.7282 GB, free: 8.758 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000441/0.5883, allocations: 239 kB / 0.7285 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.5886, allocations: 234.9 kB / 0.7287 GB, free: 8.293 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.612e-05/0.5887, allocations: 24 kB / 0.7287 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008895/0.5896, allocations: 495.1 kB / 0.7292 GB, free: 7.785 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.264e-05/0.5897, allocations: 67.64 kB / 0.7293 GB, free: 7.719 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.5899, allocations: 179 kB / 0.7294 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0007447/0.5906, allocations: 0.5276 MB / 0.7299 GB, free: 7.016 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.5906, allocations: 4 kB / 0.7299 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.893e-06/0.5906, allocations: 0 / 0.7299 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.5906, allocations: 0 / 0.7299 GB, free: 7.012 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001269/0.5919, allocations: 0.7304 MB / 0.7307 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.592, allocations: 12.03 kB / 0.7307 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.572e-05/0.5921, allocations: 40.47 kB / 0.7307 GB, free: 6.176 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005907/0.5927, allocations: 387.7 kB / 0.7311 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.5927, allocations: 16.56 kB / 0.7311 GB, free: 5.738 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.111e-05/0.5927, allocations: 24 kB / 0.7311 GB, free: 5.715 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004918/0.5932, allocations: 265.8 kB / 0.7314 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.5933, allocations: 0 / 0.7314 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.76e-05/0.5933, allocations: 11.92 kB / 0.7314 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.5933, allocations: 4 kB / 0.7314 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004757/0.5938, allocations: 225.6 kB / 0.7316 GB, free: 5.207 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.5953, allocations: 1.085 MB / 0.7327 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005156/0.5958, allocations: 234.3 kB / 0.7329 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002372/0.5961, allocations: 115.2 kB / 0.733 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009622/0.5971, allocations: 0.9838 MB / 0.734 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003356/0.5974, allocations: 151.3 kB / 0.7341 GB, free: 2.371 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=23): time 1.803e-06/0.5974, allocations: 0 / 0.7341 GB, free: 2.371 MB / 0.5762 GB Notification: Performance of matching and sorting (n=23): time 0.001165/0.5986, allocations: 462.8 kB / 0.7345 GB, free: 1.895 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.308e-05/0.5987, allocations: 55.41 kB / 0.7346 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003585/0.599, allocations: 337.7 kB / 0.7349 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.5991, allocations: 25.7 kB / 0.7349 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.5992, allocations: 200.2 kB / 0.7351 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.351e-05/0.5993, allocations: 70.94 kB / 0.7352 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.923e-05/0.5994, allocations: 49.92 kB / 0.7352 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001786/0.5996, allocations: 350.8 kB / 0.7356 GB, free: 0.7852 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.5998, allocations: 80.19 kB / 0.7357 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.6, allocations: 115 kB / 0.7358 GB, free: 0.5859 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004449/0.6005, allocations: 222.6 kB / 0.736 GB, free: 364 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.6005, allocations: 0 / 0.736 GB, free: 364 kB / 0.5762 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006784/0.6012, allocations: 349.1 kB / 0.7363 GB, free: 0 / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.3999/1.001, allocations: 31.64 kB / 0.7363 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/1.001, allocations: 0.75 kB / 0.7363 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003641/1.002, allocations: 40.28 kB / 0.7364 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002879/1.002, allocations: 43.36 kB / 0.7364 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/1.003, allocations: 1.525 MB / 0.7379 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003053/1.003, allocations: 27.69 kB / 0.7379 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-05/1.003, allocations: 11.08 kB / 0.738 GB, free: 153.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (25): * Single equations (assignments): 23 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000224/1.004, allocations: 156.2 kB / 0.7381 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.471e-05/1.004, allocations: 35.36 kB / 0.7381 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009144/1.005, allocations: 339.2 kB / 0.7385 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/1.005, allocations: 2.969 kB / 0.7385 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/1.005, allocations: 4.906 kB / 0.7385 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/1.005, allocations: 1.312 kB / 0.7385 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001328/1.006, allocations: 0.7468 MB / 0.7392 GB, free: 153 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/1.006, allocations: 4.812 kB / 0.7392 GB, free: 153 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001903/1.006, allocations: 36.03 kB / 0.7392 GB, free: 153 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001792/1.006, allocations: 44.64 kB / 0.7393 GB, free: 153 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.883e-05/1.006, allocations: 10.08 kB / 0.7393 GB, free: 153 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/1.008, allocations: 1.523 MB / 0.7408 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/1.008, allocations: 1.812 kB / 0.7408 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009889/1.009, allocations: 0.4956 MB / 0.7413 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.208e-05/1.009, allocations: 121.3 kB / 0.7414 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.643e-05/1.009, allocations: 7.656 kB / 0.7414 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/1.009, allocations: 17.27 kB / 0.7414 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/1.009, allocations: 28.59 kB / 0.7414 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/1.009, allocations: 8.359 kB / 0.7414 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003286/1.009, allocations: 241.1 kB / 0.7417 GB, free: 151 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.009, allocations: 0.9688 kB / 0.7417 GB, free: 151 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006198/1.01, allocations: 120.5 kB / 0.7418 GB, free: 150.9 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.m_flow) * 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 (22): * Single equations (assignments): 19 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004582/1.011, allocations: 224.6 kB / 0.742 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009348/1.012, allocations: 389.2 kB / 0.7424 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/1.012, allocations: 0 / 0.7424 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004857/1.012, allocations: 246.9 kB / 0.7426 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007715/1.013, allocations: 101 kB / 0.7427 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001703/1.015, allocations: 0.6781 MB / 0.7434 GB, free: 150 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004646/1.015, allocations: 0.7822 MB / 0.7441 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002536/1.015, allocations: 61.8 kB / 0.7442 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/1.015, allocations: 35.39 kB / 0.7442 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of SimCode: time 3.5e-07/1.015, allocations: 0 / 0.7442 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.01283/1.028, allocations: 6.385 MB / 0.7505 GB, free: 146.1 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches