Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009524/0.0009523, allocations: 92.55 kB / 16.02 MB, free: 80 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.0009871/0.0009871, allocations: 176.4 kB / 16.92 MB, free: 6.652 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.333/1.333, allocations: 223.3 MB / 241 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6299/0.6299, allocations: 89.64 MB / 381.7 MB, free: 11.27 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000344/0.0003442, allocations: 15.12 kB / 461.3 MB, free: 24.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1095, allocations: 68.83 MB / 0.5177 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.3677/0.4772, allocations: 141.4 MB / 0.6558 GB, free: 8.453 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.003918/0.4811, allocations: 3.322 MB / 0.6591 GB, free: 5.758 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003167/0.4815, allocations: 5.094 kB / 0.6591 GB, free: 5.758 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005489/0.482, allocations: 175.4 kB / 0.6592 GB, free: 5.617 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009813/0.483, allocations: 448.7 kB / 0.6597 GB, free: 5.266 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007808/0.4838, allocations: 337 kB / 0.66 GB, free: 5.016 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007634/0.4846, allocations: 0.8862 MB / 0.6608 GB, free: 4.523 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.4848, allocations: 109.7 kB / 0.661 GB, free: 4.461 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005126/0.4853, allocations: 293.3 kB / 0.6612 GB, free: 4.297 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003939/0.4857, allocations: 320.2 kB / 0.6615 GB, free: 4.125 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.157e-05/0.4858, allocations: 20.69 kB / 0.6616 GB, free: 4.121 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009345/0.4867, allocations: 0.558 MB / 0.6621 GB, free: 3.852 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.484e-05/0.4868, allocations: 62.47 kB / 0.6622 GB, free: 3.801 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.487, allocations: 217.6 kB / 0.6624 GB, free: 3.656 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005242/0.4875, allocations: 482.1 kB / 0.6628 GB, free: 3.355 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4875, allocations: 3.984 kB / 0.6628 GB, free: 3.352 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4875, allocations: 4 kB / 0.6628 GB, free: 3.348 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.4876, allocations: 0 / 0.6628 GB, free: 3.348 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001187/0.4888, allocations: 0.7063 MB / 0.6635 GB, free: 2.719 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.934e-05/0.4888, allocations: 10.88 kB / 0.6635 GB, free: 2.719 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.384e-05/0.4889, allocations: 46.66 kB / 0.6636 GB, free: 2.695 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.4892, allocations: 316.7 kB / 0.6639 GB, free: 2.391 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.4893, allocations: 31.28 kB / 0.6639 GB, free: 2.375 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.615e-05/0.4893, allocations: 38.06 kB / 0.664 GB, free: 2.359 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006618/0.49, allocations: 425.3 kB / 0.6644 GB, free: 2.086 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.49, allocations: 4 kB / 0.6644 GB, free: 2.082 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.279e-05/0.4901, allocations: 17.12 kB / 0.6644 GB, free: 2.07 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.4901, allocations: 6.219 kB / 0.6644 GB, free: 2.07 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006662/0.4907, allocations: 382.4 kB / 0.6647 GB, free: 1.891 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.4927, allocations: 1.844 MB / 0.6665 GB, free: 152 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000721/0.4934, allocations: 349.4 kB / 0.6669 GB, free: 15.96 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003136/0.4938, allocations: 178.8 kB / 0.6671 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00188/0.4956, allocations: 1.565 MB / 0.6686 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004174/0.4961, allocations: 209.7 kB / 0.6688 GB, free: 14.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=37): time 2.044e-06/0.4961, allocations: 0 / 0.6688 GB, free: 14.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=37): time 0.001283/0.4974, allocations: 0.6158 MB / 0.6694 GB, free: 13.79 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.4974, allocations: 64.55 kB / 0.6694 GB, free: 13.72 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002598/0.4977, allocations: 286.5 kB / 0.6697 GB, free: 13.54 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.553e-05/0.4977, allocations: 36.55 kB / 0.6698 GB, free: 13.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.4979, allocations: 193.2 kB / 0.6699 GB, free: 13.32 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.63e-05/0.498, allocations: 119.4 kB / 0.67 GB, free: 13.21 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.392e-05/0.498, allocations: 41.34 kB / 0.6701 GB, free: 13.18 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.4981, allocations: 346.6 kB / 0.6704 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002832/0.4984, allocations: 126.8 kB / 0.6705 GB, free: 12.78 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002987/0.4987, allocations: 185.9 kB / 0.6707 GB, free: 12.66 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005725/0.4993, allocations: 339.2 kB / 0.671 GB, free: 12.45 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4993, allocations: 4 kB / 0.671 GB, free: 12.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008538/0.5002, allocations: 476.4 kB / 0.6715 GB, free: 12.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.5002, allocations: 35.95 kB / 0.6715 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.5003, allocations: 3.062 kB / 0.6715 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001938/0.5005, allocations: 43.48 kB / 0.6716 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002725/0.5007, allocations: 78.23 kB / 0.6717 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001146/0.5019, allocations: 1.425 MB / 0.673 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002561/0.5022, allocations: 47.86 kB / 0.6731 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/0.5022, allocations: 18.22 kB / 0.6731 GB, free: 10.62 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (42): * Single equations (assignments): 40 * 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.0001761/0.5024, allocations: 153.7 kB / 0.6733 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.784e-05/0.5024, allocations: 40.28 kB / 0.6733 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.5035, allocations: 0.5274 MB / 0.6738 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.5035, allocations: 4.594 kB / 0.6738 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.5035, allocations: 4 kB / 0.6738 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.5035, allocations: 11.23 kB / 0.6738 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.5049, allocations: 0.9603 MB / 0.6748 GB, free: 9.227 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.505, allocations: 0 / 0.6748 GB, free: 9.227 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002422/0.5052, allocations: 63.91 kB / 0.6748 GB, free: 9.164 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001416/0.5054, allocations: 48.75 kB / 0.6749 GB, free: 9.113 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.5054, allocations: 8 kB / 0.6749 GB, free: 9.105 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001082/0.5065, allocations: 1.437 MB / 0.6763 GB, free: 7.539 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.5065, allocations: 0 / 0.6763 GB, free: 7.539 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.5076, allocations: 0.6577 MB / 0.6769 GB, free: 6.855 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.901e-05/0.5077, allocations: 112.7 kB / 0.677 GB, free: 6.727 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.918e-05/0.5078, allocations: 8 kB / 0.677 GB, free: 6.719 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.508, allocations: 27.83 kB / 0.6771 GB, free: 6.691 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.924e-05/0.5081, allocations: 40.02 kB / 0.6771 GB, free: 6.652 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.5082, allocations: 15.98 kB / 0.6771 GB, free: 6.637 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002194/0.5084, allocations: 227.1 kB / 0.6773 GB, free: 6.414 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5084, allocations: 3.938 kB / 0.6773 GB, free: 6.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000498/0.5089, allocations: 159.8 kB / 0.6775 GB, free: 6.254 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.rear.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 (34): * Single equations (assignments): 31 * 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.0003373/0.5093, allocations: 230.8 kB / 0.6777 GB, free: 6.023 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008982/0.5102, allocations: 0.506 MB / 0.6782 GB, free: 5.492 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.5102, allocations: 0 / 0.6782 GB, free: 5.492 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004787/0.5107, allocations: 298.4 kB / 0.6785 GB, free: 5.188 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007881/0.5115, allocations: 135.4 kB / 0.6786 GB, free: 5.059 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.5131, allocations: 0.9843 MB / 0.6796 GB, free: 4.031 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003385/0.5134, allocations: 0.7964 MB / 0.6804 GB, free: 3.211 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.5135, allocations: 43.42 kB / 0.6804 GB, free: 3.168 MB / 494.1 MB Notification: Performance of SimCode: time 3.3e-07/0.5135, allocations: 0 / 0.6804 GB, free: 3.168 MB / 494.1 MB Notification: Performance of Templates: time 0.01085/0.5244, allocations: 8.248 MB / 0.6885 GB, free: 10.95 MB / 0.4981 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches