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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004722/0.004722, allocations: 101 kB / 15.73 MB, free: 6.059 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.001275/0.001275, allocations: 194.3 kB / 16.68 MB, free: 5.969 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7891/0.7891, allocations: 89.47 MB / 380 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002372/0.002372, allocations: 83.86 kB / 0.5139 GB, free: 7.164 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3424, allocations: 67.3 MB / 0.5796 GB, free: 15.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.1958/0.5383, allocations: 145.2 MB / 0.7215 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004773/0.5431, allocations: 3.302 MB / 0.7247 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003223/0.5435, allocations: 7.938 kB / 0.7247 GB, free: 11.72 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007135/0.5442, allocations: 206.7 kB / 0.7249 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001084/0.5453, allocations: 473.2 kB / 0.7253 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009931/0.5463, allocations: 398.7 kB / 0.7257 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007953/0.5472, allocations: 0.6727 MB / 0.7264 GB, free: 9.984 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002302/0.5474, allocations: 113 kB / 0.7265 GB, free: 9.867 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006009/0.548, allocations: 322.7 kB / 0.7268 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004749/0.5485, allocations: 346.7 kB / 0.7271 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.456e-05/0.5486, allocations: 36 kB / 0.7272 GB, free: 9.176 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.5498, allocations: 0.5771 MB / 0.7277 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.061e-05/0.5499, allocations: 79.64 kB / 0.7278 GB, free: 8.52 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002704/0.5501, allocations: 215 kB / 0.728 GB, free: 8.309 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001045/0.5512, allocations: 0.6741 MB / 0.7287 GB, free: 7.637 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.5512, allocations: 4 kB / 0.7287 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.363e-06/0.5512, allocations: 0 / 0.7287 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.5512, allocations: 0 / 0.7287 GB, free: 7.633 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001476/0.5527, allocations: 0.7855 MB / 0.7294 GB, free: 6.789 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.5528, allocations: 8.031 kB / 0.7294 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.954e-05/0.5529, allocations: 78.66 kB / 0.7295 GB, free: 6.695 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.553, allocations: 48.66 kB / 0.7296 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004213/0.5534, allocations: 323.6 kB / 0.7299 GB, free: 6.289 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.333e-05/0.5535, allocations: 21.38 kB / 0.7299 GB, free: 6.27 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.312e-05/0.5535, allocations: 36.38 kB / 0.7299 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007794/0.5543, allocations: 420 kB / 0.7303 GB, free: 5.797 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.5544, allocations: 7.922 kB / 0.7303 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.723e-05/0.5544, allocations: 16 kB / 0.7303 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.5544, allocations: 12 kB / 0.7304 GB, free: 5.762 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007543/0.5552, allocations: 366.4 kB / 0.7307 GB, free: 5.406 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.5575, allocations: 1.83 MB / 0.7325 GB, free: 3.398 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008431/0.5584, allocations: 338.8 kB / 0.7328 GB, free: 3.059 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003613/0.5587, allocations: 175.2 kB / 0.733 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002236/0.561, allocations: 1.523 MB / 0.7345 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005632/0.5615, allocations: 215.2 kB / 0.7347 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=37): time 2.645e-06/0.5616, allocations: 0 / 0.7347 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37): time 0.001522/0.5631, allocations: 0.5963 MB / 0.7353 GB, free: 312 kB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.5632, allocations: 59.41 kB / 0.7353 GB, free: 240 kB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3665/0.9296, allocations: 288.2 kB / 0.7356 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.9298, allocations: 33.05 kB / 0.7356 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.93, allocations: 201.2 kB / 0.7358 GB, free: 156.5 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.9301, allocations: 131.7 kB / 0.7359 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.9302, allocations: 72.44 kB / 0.736 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.442e-05/0.9303, allocations: 348.8 kB / 0.7363 GB, free: 156.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003622/0.9307, allocations: 117.4 kB / 0.7364 GB, free: 156.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000386/0.9311, allocations: 181.9 kB / 0.7366 GB, free: 156 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006514/0.9317, allocations: 336 kB / 0.7369 GB, free: 155.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.9318, allocations: 0.6875 kB / 0.7369 GB, free: 155.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001077/0.9328, allocations: 461.3 kB / 0.7374 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.528e-05/0.9329, allocations: 40.39 kB / 0.7374 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.9329, allocations: 1.938 kB / 0.7374 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002916/0.9332, allocations: 46.19 kB / 0.7375 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003288/0.9336, allocations: 75.19 kB / 0.7375 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001128/0.9347, allocations: 1.539 MB / 0.739 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003098/0.935, allocations: 45.95 kB / 0.7391 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-05/0.9351, allocations: 16.23 kB / 0.7391 GB, free: 154.1 MB / 0.5762 GB 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.000192/0.9353, allocations: 161.2 kB / 0.7393 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.296e-05/0.9354, allocations: 32.84 kB / 0.7393 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001167/0.9365, allocations: 0.5215 MB / 0.7398 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.9366, allocations: 4.281 kB / 0.7398 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.9366, allocations: 1.484 kB / 0.7398 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.9366, allocations: 2.188 kB / 0.7398 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001548/0.9381, allocations: 0.9484 MB / 0.7407 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.239e-06/0.9382, allocations: 1.406 kB / 0.7407 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002592/0.9384, allocations: 63.19 kB / 0.7408 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001706/0.9386, allocations: 46 kB / 0.7408 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.2e-05/0.9386, allocations: 14.06 kB / 0.7408 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009741/0.9396, allocations: 1.539 MB / 0.7424 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.9396, allocations: 0.6562 kB / 0.7424 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.9409, allocations: 0.6434 MB / 0.743 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.019e-05/0.941, allocations: 118.2 kB / 0.7431 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.45e-05/0.941, allocations: 11.83 kB / 0.7431 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.9413, allocations: 14.69 kB / 0.7431 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.9414, allocations: 36.34 kB / 0.7432 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.825e-05/0.9415, allocations: 16.55 kB / 0.7432 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003004/0.9418, allocations: 220.2 kB / 0.7434 GB, free: 151 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9418, allocations: 0.75 kB / 0.7434 GB, free: 151 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007372/0.9425, allocations: 159 kB / 0.7435 GB, free: 151 MB / 0.5762 GB 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.001975/0.9445, allocations: 1.321 MB / 0.7448 GB, free: 150.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001209/0.9457, allocations: 0.4975 MB / 0.7453 GB, free: 149.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.9458, allocations: 0.5625 kB / 0.7453 GB, free: 149.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005796/0.9463, allocations: 296 kB / 0.7456 GB, free: 149.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008944/0.9473, allocations: 137.7 kB / 0.7457 GB, free: 149.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005262/0.9525, allocations: 3.592 MB / 0.7492 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002155/0.9528, allocations: 0.7905 MB / 0.75 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003187/0.9531, allocations: 84.59 kB / 0.7501 GB, free: 146.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001778/0.9533, allocations: 133.6 kB / 0.7502 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of SimCode: time 7.91e-07/0.9533, allocations: 0 / 0.7502 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0413/0.9946, allocations: 11.87 MB / 0.7618 GB, free: 136.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/11.47, allocations: 10.23 kB / 0.7618 GB, free: 136.2 MB / 0.5762 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.csv","/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