Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.001397/0.001397, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001472/0.001472, allocations: 196.8 kB / 16.14 MB, free: 6.715 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.395/1.395, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7305/0.7305, allocations: 93.71 MB / 383.7 MB, free: 7.16 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001603, allocations: 78.75 kB / 462.7 MB, free: 22.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.135, allocations: 68.27 MB / 0.5185 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.4572/0.5922, allocations: 141.9 MB / 0.6571 GB, free: 4.598 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004484/0.5967, allocations: 3.669 MB / 0.6607 GB, free: 1.629 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003879/0.5972, allocations: 17.5 kB / 0.6607 GB, free: 1.621 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006197/0.5978, allocations: 156.1 kB / 0.6609 GB, free: 1.496 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008055/0.5986, allocations: 353.5 kB / 0.6612 GB, free: 1.215 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007064/0.5994, allocations: 250.9 kB / 0.6615 GB, free: 1.027 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000772/0.6002, allocations: 0.6253 MB / 0.6621 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002276/0.6004, allocations: 82.3 kB / 0.6621 GB, free: 0.625 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006597/0.6011, allocations: 225.8 kB / 0.6624 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003744/0.6015, allocations: 234.5 kB / 0.6626 GB, free: 364 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 5.25e-05/0.6015, allocations: 16.94 kB / 0.6626 GB, free: 364 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001297/0.6028, allocations: 483.9 kB / 0.6631 GB, free: 136 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.603, allocations: 58.12 kB / 0.6631 GB, free: 88 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002606/0.6032, allocations: 178.4 kB / 0.6633 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009618/0.6042, allocations: 0.5092 MB / 0.6638 GB, free: 15.64 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.6042, allocations: 0 / 0.6638 GB, free: 15.64 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.6043, allocations: 0 / 0.6638 GB, free: 15.64 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.6043, allocations: 3.938 kB / 0.6638 GB, free: 15.64 MB / 494.1 MB 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.001833/0.6061, allocations: 0.7435 MB / 0.6645 GB, free: 14.97 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.6062, allocations: 9.5 kB / 0.6645 GB, free: 14.97 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.6063, allocations: 49.19 kB / 0.6646 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006782/0.607, allocations: 368.9 kB / 0.6649 GB, free: 14.61 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.5e-05/0.6071, allocations: 16.5 kB / 0.6649 GB, free: 14.59 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.779e-05/0.6071, allocations: 26.5 kB / 0.665 GB, free: 14.58 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007099/0.6079, allocations: 260.2 kB / 0.6652 GB, free: 14.41 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.6079, allocations: 2.094 kB / 0.6652 GB, free: 14.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.525e-05/0.6079, allocations: 6.594 kB / 0.6652 GB, free: 14.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.6079, allocations: 5.375 kB / 0.6652 GB, free: 14.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007307/0.6087, allocations: 222.5 kB / 0.6654 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.6107, allocations: 1.096 MB / 0.6665 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007752/0.6115, allocations: 222.9 kB / 0.6667 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003608/0.6119, allocations: 115.8 kB / 0.6668 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001391/0.6133, allocations: 0.9795 MB / 0.6678 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006003/0.6139, allocations: 160.9 kB / 0.6679 GB, free: 11.93 MB / 494.1 MB Notification: Performance of pre-optimization done (n=23): time 2.655e-06/0.6139, allocations: 0 / 0.6679 GB, free: 11.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001698/0.6156, allocations: 456.4 kB / 0.6684 GB, free: 11.64 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.6157, allocations: 57.97 kB / 0.6684 GB, free: 11.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005436/0.6162, allocations: 350 kB / 0.6688 GB, free: 11.35 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.812e-05/0.6163, allocations: 35.52 kB / 0.6688 GB, free: 11.31 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/0.6165, allocations: 194.6 kB / 0.669 GB, free: 11.13 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.384e-05/0.6166, allocations: 77.25 kB / 0.6691 GB, free: 11.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.6168, allocations: 47.84 kB / 0.6691 GB, free: 11.03 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.6169, allocations: 346.4 kB / 0.6694 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003262/0.6173, allocations: 78.38 kB / 0.6695 GB, free: 10.66 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003654/0.6176, allocations: 115.1 kB / 0.6696 GB, free: 10.58 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006685/0.6183, allocations: 214.3 kB / 0.6698 GB, free: 10.45 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.6184, allocations: 2.438 kB / 0.6698 GB, free: 10.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009945/0.6194, allocations: 357.8 kB / 0.6702 GB, free: 10.23 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.364e-05/0.6194, allocations: 34.22 kB / 0.6702 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.6194, allocations: 2.75 kB / 0.6702 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002942/0.6197, allocations: 42.75 kB / 0.6702 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.62, allocations: 44.53 kB / 0.6703 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001678/0.6217, allocations: 1.411 MB / 0.6717 GB, free: 8.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003541/0.6221, allocations: 29.86 kB / 0.6717 GB, free: 8.711 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.42e-05/0.6222, allocations: 23.36 kB / 0.6717 GB, free: 8.695 MB / 494.1 MB 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.000228/0.6224, allocations: 149.8 kB / 0.6719 GB, free: 8.559 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.071e-05/0.6225, allocations: 40.59 kB / 0.6719 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.6236, allocations: 335.8 kB / 0.6722 GB, free: 8.328 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.6236, allocations: 2.344 kB / 0.6722 GB, free: 8.328 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.6237, allocations: 1.969 kB / 0.6722 GB, free: 8.328 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.6237, allocations: 0 / 0.6722 GB, free: 8.328 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001698/0.6254, allocations: 0.7623 MB / 0.673 GB, free: 7.707 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.6254, allocations: 0 / 0.673 GB, free: 7.707 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002436/0.6257, allocations: 31.77 kB / 0.673 GB, free: 7.703 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002042/0.6259, allocations: 48.59 kB / 0.673 GB, free: 7.672 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.6259, allocations: 10.62 kB / 0.6731 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001426/0.6274, allocations: 1.422 MB / 0.6744 GB, free: 6.234 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.6274, allocations: 3.562 kB / 0.6744 GB, free: 6.234 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/0.6287, allocations: 0.4915 MB / 0.6749 GB, free: 5.902 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.6288, allocations: 114.8 kB / 0.675 GB, free: 5.781 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.706e-05/0.6289, allocations: 6.719 kB / 0.675 GB, free: 5.777 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003527/0.6293, allocations: 21.23 kB / 0.6751 GB, free: 5.766 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.6294, allocations: 30.09 kB / 0.6751 GB, free: 5.746 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-05/0.6294, allocations: 13.42 kB / 0.6751 GB, free: 5.738 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003822/0.6298, allocations: 246.1 kB / 0.6753 GB, free: 5.582 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6298, allocations: 0 / 0.6753 GB, free: 5.582 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0008067/0.6307, allocations: 120.7 kB / 0.6755 GB, free: 5.555 MB / 494.1 MB 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.0004403/0.6311, allocations: 215.8 kB / 0.6757 GB, free: 5.414 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.6322, allocations: 395.4 kB / 0.676 GB, free: 5.133 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.6322, allocations: 0 / 0.676 GB, free: 5.133 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005857/0.6328, allocations: 248.9 kB / 0.6763 GB, free: 4.953 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.6339, allocations: 101.8 kB / 0.6764 GB, free: 4.902 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.6359, allocations: 0.7972 MB / 0.6771 GB, free: 4.328 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004498/0.6363, allocations: 0.7927 MB / 0.6779 GB, free: 3.582 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003151/0.6367, allocations: 47.97 kB / 0.678 GB, free: 3.555 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.6368, allocations: 31.11 kB / 0.678 GB, free: 3.543 MB / 494.1 MB Notification: Performance of SimCode: time 5.62e-07/0.6368, allocations: 0 / 0.678 GB, free: 3.543 MB / 494.1 MB Notification: Performance of Templates: time 0.01574/0.6526, allocations: 6.145 MB / 0.684 GB, free: 468 kB / 494.1 MB make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches