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.001126/0.001126, allocations: 112.9 kB / 16.37 MB, free: 6.012 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.001073/0.001073, allocations: 193.8 kB / 17.3 MB, free: 5.613 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.31/1.31, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6543/0.6543, allocations: 89.49 MB / 380.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00261/0.00261, allocations: 71.89 kB / 459.7 MB, free: 10.6 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1311, allocations: 67.31 MB / 0.5146 GB, free: 7.207 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.3209/0.452, allocations: 145.2 MB / 0.6564 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003716/0.4558, allocations: 3.296 MB / 0.6597 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002058/0.456, allocations: 4 kB / 0.6597 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000559/0.4566, allocations: 210.7 kB / 0.6599 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008806/0.4575, allocations: 473.2 kB / 0.6603 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008254/0.4584, allocations: 395.4 kB / 0.6607 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006231/0.459, allocations: 0.6619 MB / 0.6613 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.4592, allocations: 116.5 kB / 0.6615 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005169/0.4597, allocations: 330.6 kB / 0.6618 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004002/0.4602, allocations: 346.8 kB / 0.6621 GB, free: 260 kB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.106e-05/0.4602, allocations: 32 kB / 0.6621 GB, free: 228 kB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009997/0.4612, allocations: 0.5809 MB / 0.6627 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 7.513e-05/0.4613, allocations: 79.69 kB / 0.6628 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001929/0.4615, allocations: 219.9 kB / 0.663 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0008392/0.4624, allocations: 0.6754 MB / 0.6636 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.4624, allocations: 0 / 0.6636 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.343e-06/0.4624, allocations: 0 / 0.6636 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.4624, allocations: 0 / 0.6636 GB, free: 14.68 MB / 0.5137 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.001285/0.4637, allocations: 0.7787 MB / 0.6644 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.4637, allocations: 8.031 kB / 0.6644 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.271e-05/0.4638, allocations: 44.47 kB / 0.6645 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.4642, allocations: 323.3 kB / 0.6648 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/0.4642, allocations: 21.38 kB / 0.6648 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.284e-05/0.4643, allocations: 37.97 kB / 0.6648 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006747/0.465, allocations: 428.3 kB / 0.6652 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.465, allocations: 0 / 0.6652 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.465, allocations: 12 kB / 0.6652 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.4651, allocations: 8 kB / 0.6653 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006848/0.4657, allocations: 374.3 kB / 0.6656 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.4677, allocations: 1.825 MB / 0.6674 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000757/0.4685, allocations: 339.3 kB / 0.6677 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003227/0.4688, allocations: 172.8 kB / 0.6679 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001897/0.4707, allocations: 1.53 MB / 0.6694 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000436/0.4712, allocations: 215.8 kB / 0.6696 GB, free: 8.086 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=37): time 1.893e-06/0.4712, allocations: 0 / 0.6696 GB, free: 8.086 MB / 0.5137 GB Notification: Performance of matching and sorting (n=37): time 0.001349/0.4726, allocations: 0.5919 MB / 0.6702 GB, free: 7.465 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.4726, allocations: 59.41 kB / 0.6702 GB, free: 7.395 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.4729, allocations: 288.6 kB / 0.6705 GB, free: 7.102 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.4729, allocations: 33.7 kB / 0.6705 GB, free: 7.062 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.4731, allocations: 200.2 kB / 0.6707 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.4732, allocations: 126.3 kB / 0.6708 GB, free: 6.738 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.4733, allocations: 77.91 kB / 0.6709 GB, free: 6.652 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.4734, allocations: 347.5 kB / 0.6712 GB, free: 6.305 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002832/0.4737, allocations: 126.1 kB / 0.6714 GB, free: 6.184 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003166/0.474, allocations: 174.6 kB / 0.6715 GB, free: 5.996 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005851/0.4746, allocations: 331.2 kB / 0.6718 GB, free: 5.648 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.4746, allocations: 0 / 0.6718 GB, free: 5.648 MB / 0.5137 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008701/0.4755, allocations: 465 kB / 0.6723 GB, free: 5.18 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.4755, allocations: 33.7 kB / 0.6723 GB, free: 5.141 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.4756, allocations: 0 / 0.6723 GB, free: 5.141 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000207/0.4758, allocations: 46.64 kB / 0.6724 GB, free: 5.094 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002938/0.4761, allocations: 75.89 kB / 0.6724 GB, free: 5.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.4773, allocations: 1.532 MB / 0.6739 GB, free: 3.348 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/0.4775, allocations: 35.7 kB / 0.674 GB, free: 3.312 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.816e-05/0.4776, allocations: 24.05 kB / 0.674 GB, free: 3.289 MB / 0.5137 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.0001679/0.4778, allocations: 157.7 kB / 0.6741 GB, free: 3.125 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.082e-05/0.4778, allocations: 39.53 kB / 0.6742 GB, free: 3.086 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/0.4789, allocations: 0.5047 MB / 0.6747 GB, free: 2.578 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.4789, allocations: 7.938 kB / 0.6747 GB, free: 2.57 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.4789, allocations: 0 / 0.6747 GB, free: 2.57 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.479, allocations: 6.797 kB / 0.6747 GB, free: 2.566 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001468/0.4804, allocations: 0.954 MB / 0.6756 GB, free: 1.543 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.4804, allocations: 0 / 0.6756 GB, free: 1.543 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002393/0.4807, allocations: 67.89 kB / 0.6757 GB, free: 1.477 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001439/0.4808, allocations: 38.61 kB / 0.6757 GB, free: 1.438 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.4809, allocations: 15.98 kB / 0.6757 GB, free: 1.422 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001119/0.482, allocations: 1.531 MB / 0.6772 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.482, allocations: 4.031 kB / 0.6772 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.4831, allocations: 0.6313 MB / 0.6778 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 8.652e-05/0.4832, allocations: 116.6 kB / 0.678 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.273e-05/0.4833, allocations: 8.062 kB / 0.678 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.4835, allocations: 19.98 kB / 0.678 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.615e-05/0.4837, allocations: 43.83 kB / 0.678 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-05/0.4837, allocations: 16.8 kB / 0.678 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002196/0.4839, allocations: 223.1 kB / 0.6783 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4839, allocations: 0 / 0.6783 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0005321/0.4845, allocations: 163.8 kB / 0.6784 GB, free: 14.5 MB / 0.5294 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.0003507/0.4848, allocations: 237.5 kB / 0.6786 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0009232/0.4858, allocations: 0.4982 MB / 0.6791 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4858, allocations: 0 / 0.6791 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00049/0.4863, allocations: 301.3 kB / 0.6794 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007152/0.487, allocations: 122.8 kB / 0.6795 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.4885, allocations: 0.7694 MB / 0.6803 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.4888, allocations: 0.7923 MB / 0.6811 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002446/0.489, allocations: 77.59 kB / 0.6811 GB, free: 11.67 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.863e-05/0.4891, allocations: 39.44 kB / 0.6812 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of SimCode: time 4.61e-07/0.4892, allocations: 1.781 kB / 0.6812 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of Templates: time 0.01299/0.5022, allocations: 7.976 MB / 0.689 GB, free: 3.848 MB / 0.5294 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 -s gbode -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