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.0058/0.0058, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001217/0.001218, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6762/0.6762, allocations: 91.21 MB / 381.7 MB, free: 9.352 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 75.88 kB / 0.5169 GB, free: 9.012 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1312, allocations: 67.69 MB / 0.583 GB, free: 5.242 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.4304/0.5617, allocations: 145.3 MB / 0.7249 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004028/0.5657, allocations: 3.333 MB / 0.7281 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004711/0.5662, allocations: 15.88 kB / 0.7281 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007265/0.567, allocations: 218.6 kB / 0.7283 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001267/0.5683, allocations: 0.4933 MB / 0.7288 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.5694, allocations: 391.2 kB / 0.7292 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008885/0.5703, allocations: 0.731 MB / 0.7299 GB, free: 1.605 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002379/0.5705, allocations: 117.5 kB / 0.73 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007292/0.5712, allocations: 362.5 kB / 0.7304 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004455/0.5717, allocations: 362.6 kB / 0.7307 GB, free: 0.7852 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.278e-05/0.5718, allocations: 36 kB / 0.7308 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001111/0.5729, allocations: 0.5771 MB / 0.7313 GB, free: 176 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.573, allocations: 87.56 kB / 0.7314 GB, free: 88 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002452/0.5733, allocations: 246.7 kB / 0.7316 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0009799/0.5742, allocations: 0.7221 MB / 0.7323 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.5743, allocations: 0 / 0.7323 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.332e-06/0.5743, allocations: 0 / 0.7323 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.5743, allocations: 0 / 0.7323 GB, free: 15.12 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.001335/0.5756, allocations: 0.841 MB / 0.7332 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.5757, allocations: 12.03 kB / 0.7332 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.5758, allocations: 52.28 kB / 0.7332 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005798/0.5764, allocations: 422 kB / 0.7336 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/0.5764, allocations: 29.38 kB / 0.7337 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.325e-05/0.5765, allocations: 28.38 kB / 0.7337 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006516/0.5771, allocations: 425.2 kB / 0.7341 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.5771, allocations: 3.938 kB / 0.7341 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.5772, allocations: 15.98 kB / 0.7341 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.5772, allocations: 8 kB / 0.7341 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006493/0.5779, allocations: 370.4 kB / 0.7345 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.5798, allocations: 1.844 MB / 0.7363 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007412/0.5805, allocations: 344.7 kB / 0.7366 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003185/0.5809, allocations: 169.6 kB / 0.7368 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001827/0.5827, allocations: 1.538 MB / 0.7383 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000399/0.5831, allocations: 211.3 kB / 0.7385 GB, free: 8.332 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=37): time 4.248e-06/0.5831, allocations: 4 kB / 0.7385 GB, free: 8.328 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37): time 0.001313/0.5845, allocations: 0.5958 MB / 0.739 GB, free: 7.703 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.5845, allocations: 55.41 kB / 0.7391 GB, free: 7.637 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003437/0.5848, allocations: 365.6 kB / 0.7394 GB, free: 7.27 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.138e-05/0.5849, allocations: 37.7 kB / 0.7395 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.585, allocations: 216.3 kB / 0.7397 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.972e-05/0.5851, allocations: 126.2 kB / 0.7398 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.5852, allocations: 74.06 kB / 0.7399 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.5854, allocations: 354.7 kB / 0.7402 GB, free: 6.449 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002675/0.5857, allocations: 116.7 kB / 0.7403 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002981/0.586, allocations: 182.6 kB / 0.7405 GB, free: 6.141 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005646/0.5865, allocations: 331.1 kB / 0.7408 GB, free: 5.793 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.5866, allocations: 0 / 0.7408 GB, free: 5.793 MB / 0.5762 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008587/0.5874, allocations: 476.6 kB / 0.7413 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.859e-05/0.5875, allocations: 41.7 kB / 0.7413 GB, free: 5.266 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.5875, allocations: 0 / 0.7413 GB, free: 5.266 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002076/0.5877, allocations: 40.77 kB / 0.7414 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002878/0.588, allocations: 79.83 kB / 0.7414 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.5892, allocations: 1.534 MB / 0.7429 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002596/0.5895, allocations: 39.61 kB / 0.743 GB, free: 3.426 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/0.5895, allocations: 16 kB / 0.743 GB, free: 3.41 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.0001822/0.5897, allocations: 170.4 kB / 0.7431 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.344e-05/0.5898, allocations: 43.44 kB / 0.7432 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001038/0.5908, allocations: 0.5207 MB / 0.7437 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.5908, allocations: 7.938 kB / 0.7437 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.5908, allocations: 0 / 0.7437 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.5909, allocations: 7.984 kB / 0.7437 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001416/0.5923, allocations: 0.966 MB / 0.7447 GB, free: 1.621 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.5923, allocations: 3.938 kB / 0.7447 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002384/0.5925, allocations: 60.77 kB / 0.7447 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001472/0.5927, allocations: 48.81 kB / 0.7448 GB, free: 1.508 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/0.5927, allocations: 12 kB / 0.7448 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.5939, allocations: 1.532 MB / 0.7463 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5939, allocations: 4 kB / 0.7463 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.595, allocations: 0.6504 MB / 0.7469 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.562e-05/0.5951, allocations: 120.5 kB / 0.747 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.883e-05/0.5951, allocations: 8 kB / 0.747 GB, free: 15 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.5954, allocations: 20.05 kB / 0.747 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.716e-05/0.5955, allocations: 39.89 kB / 0.7471 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.5955, allocations: 11.98 kB / 0.7471 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002581/0.5958, allocations: 267.2 kB / 0.7474 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5958, allocations: 0 / 0.7474 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005487/0.5963, allocations: 163.8 kB / 0.7475 GB, free: 14.52 MB / 0.5919 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.0003595/0.5967, allocations: 239.8 kB / 0.7477 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000953/0.5977, allocations: 0.4903 MB / 0.7482 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5977, allocations: 3.938 kB / 0.7482 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004713/0.5981, allocations: 302.3 kB / 0.7485 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007006/0.5989, allocations: 140.6 kB / 0.7486 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.6004, allocations: 0.8423 MB / 0.7495 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/0.6008, allocations: 0.8079 MB / 0.7503 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002472/0.601, allocations: 101.6 kB / 0.7504 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.6011, allocations: 47.42 kB / 0.7504 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of SimCode: time 1.904e-06/0.6011, allocations: 0 / 0.7504 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of Templates: time 0.01475/0.6159, allocations: 8.173 MB / 0.7584 GB, free: 3.367 MB / 0.5919 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches