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.00161/0.00161, allocations: 106 kB / 15.99 MB, free: 5.891 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.001793/0.001793, allocations: 194.7 kB / 16.91 MB, free: 5.746 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.327/1.327, allocations: 222.9 MB / 240.6 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6375/0.6375, allocations: 91.19 MB / 381.9 MB, free: 9.488 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 78.08 kB / 460.5 MB, free: 23.33 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1066, allocations: 67.7 MB / 0.5158 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.3467/0.4534, allocations: 143.6 MB / 0.656 GB, free: 7.43 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.003685/0.4571, allocations: 3.365 MB / 0.6593 GB, free: 4.691 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000319/0.4574, allocations: 18.69 kB / 0.6593 GB, free: 4.684 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000552/0.458, allocations: 182.1 kB / 0.6595 GB, free: 4.539 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008833/0.4589, allocations: 457.7 kB / 0.6599 GB, free: 4.18 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007744/0.4597, allocations: 362.4 kB / 0.6603 GB, free: 3.922 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005908/0.4603, allocations: 0.7168 MB / 0.661 GB, free: 3.512 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.4605, allocations: 126.9 kB / 0.6611 GB, free: 3.449 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005236/0.461, allocations: 355.9 kB / 0.6614 GB, free: 3.242 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003678/0.4614, allocations: 366.9 kB / 0.6618 GB, free: 3.027 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.475e-05/0.4615, allocations: 32 kB / 0.6618 GB, free: 3.027 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008791/0.4624, allocations: 0.5787 MB / 0.6624 GB, free: 2.758 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.603e-05/0.4625, allocations: 90.47 kB / 0.6625 GB, free: 2.684 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001792/0.4627, allocations: 239.3 kB / 0.6627 GB, free: 2.527 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005517/0.4632, allocations: 0.5243 MB / 0.6632 GB, free: 2.195 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.4632, allocations: 2.594 kB / 0.6632 GB, free: 2.195 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4632, allocations: 0 / 0.6632 GB, free: 2.195 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.4632, allocations: 0 / 0.6632 GB, free: 2.195 MB / 478.1 MB 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.001321/0.4646, allocations: 0.8444 MB / 0.664 GB, free: 1.465 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.4646, allocations: 7.688 kB / 0.664 GB, free: 1.465 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.587e-05/0.4647, allocations: 55.88 kB / 0.6641 GB, free: 1.438 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000443/0.4652, allocations: 394 kB / 0.6645 GB, free: 1.078 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.742e-05/0.4652, allocations: 25.84 kB / 0.6645 GB, free: 1.066 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.246e-05/0.4653, allocations: 35.16 kB / 0.6645 GB, free: 1.055 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006554/0.4659, allocations: 424.8 kB / 0.6649 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.4659, allocations: 0 / 0.6649 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.3e-05/0.466, allocations: 20.94 kB / 0.665 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.466, allocations: 7.938 kB / 0.665 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006223/0.4666, allocations: 366.7 kB / 0.6653 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.4685, allocations: 1.863 MB / 0.6671 GB, free: 14.83 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007277/0.4693, allocations: 343.3 kB / 0.6675 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003101/0.4696, allocations: 164 kB / 0.6676 GB, free: 14.56 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00187/0.4715, allocations: 1.536 MB / 0.6691 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004767/0.4719, allocations: 204.7 kB / 0.6693 GB, free: 12.85 MB / 494.1 MB Notification: Performance of pre-optimization done (n=37): time 1.833e-06/0.472, allocations: 0 / 0.6693 GB, free: 12.85 MB / 494.1 MB Notification: Performance of matching and sorting (n=37): time 0.001284/0.4732, allocations: 0.6029 MB / 0.6699 GB, free: 12.48 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.4733, allocations: 56.94 kB / 0.67 GB, free: 12.42 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003135/0.4736, allocations: 361.2 kB / 0.6703 GB, free: 12.19 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.255e-05/0.4737, allocations: 36.36 kB / 0.6703 GB, free: 12.15 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.4738, allocations: 226.7 kB / 0.6706 GB, free: 11.95 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.485e-05/0.4739, allocations: 125.2 kB / 0.6707 GB, free: 11.84 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.474, allocations: 77.34 kB / 0.6707 GB, free: 11.78 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.4741, allocations: 357.4 kB / 0.6711 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.4744, allocations: 119.5 kB / 0.6712 GB, free: 11.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000288/0.4747, allocations: 175.4 kB / 0.6714 GB, free: 11.26 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005539/0.4753, allocations: 329.8 kB / 0.6717 GB, free: 11.05 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4753, allocations: 0 / 0.6717 GB, free: 11.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008285/0.4761, allocations: 476.1 kB / 0.6721 GB, free: 10.78 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/0.4762, allocations: 33.48 kB / 0.6722 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.4762, allocations: 0 / 0.6722 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002041/0.4764, allocations: 49.55 kB / 0.6722 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002791/0.4767, allocations: 77.77 kB / 0.6723 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001147/0.4778, allocations: 1.529 MB / 0.6738 GB, free: 9.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.4781, allocations: 42.2 kB / 0.6738 GB, free: 9.133 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.4782, allocations: 20.89 kB / 0.6738 GB, free: 9.125 MB / 494.1 MB 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.0001656/0.4783, allocations: 165.1 kB / 0.674 GB, free: 8.973 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.78e-05/0.4784, allocations: 39.72 kB / 0.674 GB, free: 8.953 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/0.4794, allocations: 0.5211 MB / 0.6745 GB, free: 8.633 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.4794, allocations: 8.25 kB / 0.6746 GB, free: 8.629 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.4794, allocations: 0 / 0.6746 GB, free: 8.629 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.4794, allocations: 7.094 kB / 0.6746 GB, free: 8.625 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.4808, allocations: 0.9694 MB / 0.6755 GB, free: 7.875 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.4809, allocations: 0 / 0.6755 GB, free: 7.875 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002242/0.4811, allocations: 63.62 kB / 0.6756 GB, free: 7.859 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000138/0.4812, allocations: 42.41 kB / 0.6756 GB, free: 7.832 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.4813, allocations: 13.25 kB / 0.6756 GB, free: 7.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.4824, allocations: 1.541 MB / 0.6771 GB, free: 6.273 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4824, allocations: 2.844 kB / 0.6771 GB, free: 6.273 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.4835, allocations: 0.643 MB / 0.6778 GB, free: 5.859 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.701e-05/0.4836, allocations: 112.8 kB / 0.6779 GB, free: 5.742 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.259e-05/0.4836, allocations: 17.05 kB / 0.6779 GB, free: 5.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.4839, allocations: 30.92 kB / 0.6779 GB, free: 5.707 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.676e-05/0.484, allocations: 49.81 kB / 0.678 GB, free: 5.676 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.7e-05/0.484, allocations: 11.25 kB / 0.678 GB, free: 5.672 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002407/0.4843, allocations: 266.8 kB / 0.6782 GB, free: 5.508 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4843, allocations: 0 / 0.6782 GB, free: 5.508 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005224/0.4848, allocations: 158.4 kB / 0.6784 GB, free: 5.473 MB / 494.1 MB 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.0003516/0.4852, allocations: 234.7 kB / 0.6786 GB, free: 5.32 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009322/0.4861, allocations: 0.4979 MB / 0.6791 GB, free: 4.988 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4861, allocations: 320 / 0.6791 GB, free: 4.988 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004323/0.4866, allocations: 298.2 kB / 0.6794 GB, free: 4.789 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007438/0.4873, allocations: 144.8 kB / 0.6795 GB, free: 4.707 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.4889, allocations: 1.026 MB / 0.6805 GB, free: 3.965 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.4893, allocations: 0.8214 MB / 0.6813 GB, free: 3.207 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.4894, allocations: 56.67 kB / 0.6814 GB, free: 3.184 MB / 494.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4894, allocations: 0 / 0.6814 GB, free: 3.184 MB / 494.1 MB Notification: Performance of Templates: time 0.01086/0.5003, allocations: 9.175 MB / 0.6903 GB, free: 12.22 MB / 0.4981 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches