Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009298/0.0009299, allocations: 176.8 kB / 15.43 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.231/1.231, allocations: 225.7 MB / 241.9 MB, free: 14.65 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007766/0.0007767, allocations: 88.86 kB / 293 MB, free: 4.863 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6303/0.6303, allocations: 91.63 MB / 435.8 MB, free: 32.71 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002848/0.0002849, allocations: 8 kB / 0.5038 GB, free: 4.141 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.2998, allocations: 69.29 MB / 0.5714 GB, free: 33.95 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1263/0.4261, allocations: 132.5 MB / 0.7008 GB, free: 7.742 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.004081/0.4302, allocations: 4.626 MB / 0.7054 GB, free: 2.812 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.4304, allocations: 4 kB / 0.7054 GB, free: 2.809 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004392/0.4308, allocations: 149.1 kB / 0.7055 GB, free: 2.664 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0006123/0.4315, allocations: 322.4 kB / 0.7058 GB, free: 2.348 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005373/0.432, allocations: 247.2 kB / 0.706 GB, free: 2.105 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0004655/0.4325, allocations: 0.5486 MB / 0.7066 GB, free: 1.555 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.4326, allocations: 70.86 kB / 0.7066 GB, free: 1.496 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003057/0.4329, allocations: 175.2 kB / 0.7068 GB, free: 1.324 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002428/0.4332, allocations: 203.1 kB / 0.707 GB, free: 1.125 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 2.872e-05/0.4332, allocations: 12 kB / 0.707 GB, free: 1.113 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008278/0.4341, allocations: 0.499 MB / 0.7075 GB, free: 0.6133 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 5.074e-05/0.4341, allocations: 47.7 kB / 0.7076 GB, free: 0.5664 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.4343, allocations: 157 kB / 0.7077 GB, free: 416 kB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.000606/0.4349, allocations: 478.5 kB / 0.7082 GB, free: 15.94 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.4349, allocations: 4 kB / 0.7082 GB, free: 15.93 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.292e-06/0.4349, allocations: 0 / 0.7082 GB, free: 15.93 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.4349, allocations: 0 / 0.7082 GB, free: 15.93 MB / 0.5105 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.0009411/0.4359, allocations: 0.6158 MB / 0.7088 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.4359, allocations: 11.98 kB / 0.7088 GB, free: 15.26 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.481e-05/0.436, allocations: 32.56 kB / 0.7088 GB, free: 15.23 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002745/0.4362, allocations: 278.7 kB / 0.7091 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.4363, allocations: 19.25 kB / 0.7091 GB, free: 14.89 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.334e-05/0.4363, allocations: 24.12 kB / 0.7091 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004319/0.4368, allocations: 239.2 kB / 0.7093 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.4368, allocations: 3.938 kB / 0.7093 GB, free: 14.63 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.4368, allocations: 8 kB / 0.7094 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.4368, allocations: 4 kB / 0.7094 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004839/0.4373, allocations: 237.6 kB / 0.7096 GB, free: 14.38 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.4386, allocations: 1.045 MB / 0.7106 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000485/0.4391, allocations: 258.5 kB / 0.7109 GB, free: 12.95 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.4393, allocations: 128.8 kB / 0.711 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008193/0.4401, allocations: 0.8353 MB / 0.7118 GB, free: 11.89 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003497/0.4405, allocations: 171.2 kB / 0.712 GB, free: 11.71 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 3.046e-06/0.4405, allocations: 0 / 0.712 GB, free: 11.71 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.001101/0.4416, allocations: 0.4969 MB / 0.7124 GB, free: 11.19 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.4417, allocations: 55.41 kB / 0.7125 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002011/0.4419, allocations: 229 kB / 0.7127 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.4419, allocations: 29.7 kB / 0.7127 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 9.459e-05/0.442, allocations: 164.2 kB / 0.7129 GB, free: 10.69 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.78e-05/0.4421, allocations: 82.84 kB / 0.713 GB, free: 10.61 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.371e-05/0.4421, allocations: 4 kB / 0.713 GB, free: 10.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.4422, allocations: 338.8 kB / 0.7133 GB, free: 10.26 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002225/0.4424, allocations: 95.95 kB / 0.7134 GB, free: 10.17 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.4427, allocations: 126.9 kB / 0.7135 GB, free: 10.04 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004442/0.4431, allocations: 257.8 kB / 0.7138 GB, free: 9.777 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4431, allocations: 0 / 0.7138 GB, free: 9.777 MB / 0.5105 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006488/0.4438, allocations: 368 kB / 0.7141 GB, free: 9.406 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.4438, allocations: 37.64 kB / 0.7141 GB, free: 9.363 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.4438, allocations: 5.797 kB / 0.7142 GB, free: 9.359 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001878/0.444, allocations: 36.83 kB / 0.7142 GB, free: 9.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002011/0.4442, allocations: 48.78 kB / 0.7142 GB, free: 9.273 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.4453, allocations: 1.418 MB / 0.7156 GB, free: 7.723 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001995/0.4455, allocations: 39.83 kB / 0.7157 GB, free: 7.684 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.4456, allocations: 8 kB / 0.7157 GB, free: 7.676 MB / 0.5105 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.0001244/0.4457, allocations: 143.2 kB / 0.7158 GB, free: 7.527 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.032e-05/0.4457, allocations: 19.72 kB / 0.7158 GB, free: 7.508 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007435/0.4465, allocations: 362.9 kB / 0.7162 GB, free: 7.152 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.4465, allocations: 7.938 kB / 0.7162 GB, free: 7.145 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.4465, allocations: 0 / 0.7162 GB, free: 7.145 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.4465, allocations: 0 / 0.7162 GB, free: 7.145 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.4476, allocations: 0.7711 MB / 0.7169 GB, free: 6.312 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.4476, allocations: 0 / 0.7169 GB, free: 6.312 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.4478, allocations: 44 kB / 0.717 GB, free: 6.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001267/0.4479, allocations: 40.77 kB / 0.717 GB, free: 6.227 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.448, allocations: 11.98 kB / 0.717 GB, free: 6.215 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001/0.449, allocations: 1.421 MB / 0.7184 GB, free: 4.656 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.449, allocations: 5.125 kB / 0.7184 GB, free: 4.652 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008946/0.4499, allocations: 0.5356 MB / 0.7189 GB, free: 4.098 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.807e-05/0.45, allocations: 108.7 kB / 0.719 GB, free: 3.973 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.45, allocations: 8 kB / 0.719 GB, free: 3.965 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.4502, allocations: 20.05 kB / 0.7191 GB, free: 3.945 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.426e-05/0.4503, allocations: 23.97 kB / 0.7191 GB, free: 3.922 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.216e-05/0.4503, allocations: 15.98 kB / 0.7191 GB, free: 3.906 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000131/0.4504, allocations: 164.5 kB / 0.7193 GB, free: 3.75 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4505, allocations: 0 / 0.7193 GB, free: 3.75 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003878/0.4508, allocations: 115.8 kB / 0.7194 GB, free: 3.637 MB / 0.5105 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002983/0.4512, allocations: 231.8 kB / 0.7196 GB, free: 3.406 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0007531/0.4519, allocations: 457.7 kB / 0.72 GB, free: 2.93 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.4519, allocations: 4.062 kB / 0.72 GB, free: 2.926 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004074/0.4523, allocations: 288.3 kB / 0.7203 GB, free: 2.625 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005313/0.4529, allocations: 75.5 kB / 0.7204 GB, free: 2.555 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.4539, allocations: 0.7483 MB / 0.7211 GB, free: 1.785 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.4542, allocations: 0.7599 MB / 0.7218 GB, free: 1 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001509/0.4544, allocations: 43.42 kB / 0.7219 GB, free: 0.9648 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.397e-05/0.4545, allocations: 27.44 kB / 0.7219 GB, free: 0.9375 MB / 0.5105 GB Notification: Performance of SimCode: time 2e-07/0.4545, allocations: 0 / 0.7219 GB, free: 0.9375 MB / 0.5105 GB Notification: Performance of Templates: time 0.009406/0.4639, allocations: 5.7 MB / 0.7275 GB, free: 11.31 MB / 0.5261 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","../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches