Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 103.4 kB / 16.27 MB, free: 5.965 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.001061/0.00106, allocations: 191 kB / 17.2 MB, free: 5.59 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.317/1.317, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.68/0.68, allocations: 91.18 MB / 382.2 MB, free: 7.547 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 76.06 kB / 461 MB, free: 9.027 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1235, allocations: 67.68 MB / 0.5163 GB, free: 5.27 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.3597/0.4832, allocations: 143.8 MB / 0.6567 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004005/0.4873, allocations: 3.599 MB / 0.6602 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004123/0.4877, allocations: 11.94 kB / 0.6602 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006575/0.4884, allocations: 174.8 kB / 0.6604 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008544/0.4894, allocations: 373.8 kB / 0.6607 GB, free: 208 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007929/0.4902, allocations: 295.3 kB / 0.661 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0005441/0.4907, allocations: 497.8 kB / 0.6615 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.4909, allocations: 90.97 kB / 0.6616 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003984/0.4913, allocations: 246.9 kB / 0.6618 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000267/0.4916, allocations: 223.1 kB / 0.662 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 4.222e-05/0.4916, allocations: 28.78 kB / 0.662 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008731/0.4925, allocations: 499 kB / 0.6625 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.329e-05/0.4926, allocations: 59.77 kB / 0.6626 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002341/0.4929, allocations: 175 kB / 0.6627 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0007325/0.4936, allocations: 0.5219 MB / 0.6633 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.4936, allocations: 0 / 0.6633 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4936, allocations: 0 / 0.6633 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.592e-06/0.4936, allocations: 0 / 0.6633 GB, free: 13.61 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001224/0.4949, allocations: 0.7382 MB / 0.664 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.4949, allocations: 12.97 kB / 0.664 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.552e-05/0.495, allocations: 44.45 kB / 0.664 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004586/0.4955, allocations: 351.7 kB / 0.6644 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.4955, allocations: 22.31 kB / 0.6644 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.994e-05/0.4955, allocations: 23.94 kB / 0.6644 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004696/0.496, allocations: 265.7 kB / 0.6647 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.496, allocations: 0 / 0.6647 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.4961, allocations: 12 kB / 0.6647 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.4961, allocations: 4 kB / 0.6647 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004832/0.4966, allocations: 217.6 kB / 0.6649 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001412/0.498, allocations: 1.095 MB / 0.666 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005185/0.4985, allocations: 232 kB / 0.6662 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002353/0.4988, allocations: 112.8 kB / 0.6663 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009468/0.4997, allocations: 0.9799 MB / 0.6672 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003392/0.5001, allocations: 163.7 kB / 0.6674 GB, free: 9 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=23): time 1.753e-06/0.5001, allocations: 0 / 0.6674 GB, free: 9 MB / 0.5137 GB Notification: Performance of matching and sorting (n=23): time 0.001122/0.5012, allocations: 453.3 kB / 0.6678 GB, free: 8.531 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.5013, allocations: 67.33 kB / 0.6679 GB, free: 8.453 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003353/0.5016, allocations: 333.7 kB / 0.6682 GB, free: 8.121 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.5017, allocations: 29.7 kB / 0.6682 GB, free: 8.086 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.5018, allocations: 196.2 kB / 0.6684 GB, free: 7.891 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 5.946e-05/0.5019, allocations: 78.83 kB / 0.6685 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.592e-05/0.5019, allocations: 49.94 kB / 0.6686 GB, free: 7.758 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.5021, allocations: 346.8 kB / 0.6689 GB, free: 7.41 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/0.5024, allocations: 82.25 kB / 0.669 GB, free: 7.332 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.5026, allocations: 111 kB / 0.6691 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004295/0.503, allocations: 213.1 kB / 0.6693 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.5031, allocations: 4 kB / 0.6693 GB, free: 6.988 MB / 0.5137 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006962/0.5038, allocations: 350.5 kB / 0.6696 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/0.5038, allocations: 29.7 kB / 0.6696 GB, free: 6.598 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.5038, allocations: 0 / 0.6696 GB, free: 6.598 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002191/0.504, allocations: 50.7 kB / 0.6697 GB, free: 6.547 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.5043, allocations: 35.98 kB / 0.6697 GB, free: 6.512 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.5055, allocations: 1.522 MB / 0.6712 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002055/0.5058, allocations: 32.39 kB / 0.6712 GB, free: 4.812 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.5058, allocations: 7.984 kB / 0.6712 GB, free: 4.805 MB / 0.5137 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 (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 (25): * Single equations (assignments): 23 * 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.0001564/0.5059, allocations: 157.8 kB / 0.6714 GB, free: 4.641 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.935e-05/0.506, allocations: 32.47 kB / 0.6714 GB, free: 4.609 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007591/0.5068, allocations: 337.3 kB / 0.6717 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.5068, allocations: 4 kB / 0.6718 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.5068, allocations: 4.688 kB / 0.6718 GB, free: 4.273 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.5068, allocations: 1.875 kB / 0.6718 GB, free: 4.273 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.5079, allocations: 0.7455 MB / 0.6725 GB, free: 3.465 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.5079, allocations: 0 / 0.6725 GB, free: 3.465 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000161/0.5081, allocations: 47.84 kB / 0.6725 GB, free: 3.418 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001406/0.5082, allocations: 46.39 kB / 0.6726 GB, free: 3.371 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.5083, allocations: 8 kB / 0.6726 GB, free: 3.363 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.5094, allocations: 1.523 MB / 0.6741 GB, free: 1.703 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5094, allocations: 0 / 0.6741 GB, free: 1.703 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008859/0.5103, allocations: 0.5025 MB / 0.6746 GB, free: 1.18 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.807e-05/0.5104, allocations: 116.5 kB / 0.6747 GB, free: 1.047 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.599e-05/0.5105, allocations: 8.5 kB / 0.6747 GB, free: 1.039 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.5107, allocations: 15.98 kB / 0.6747 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.66e-05/0.5108, allocations: 31.97 kB / 0.6747 GB, free: 0.9922 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.5108, allocations: 12.86 kB / 0.6747 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002372/0.511, allocations: 239.2 kB / 0.675 GB, free: 0.7461 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.511, allocations: 0 / 0.675 GB, free: 0.7461 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004492/0.5115, allocations: 119.9 kB / 0.6751 GB, free: 0.6289 MB / 0.5137 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 (22): * Single equations (assignments): 19 * 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.0003418/0.5118, allocations: 209.8 kB / 0.6753 GB, free: 432 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0008491/0.5127, allocations: 410.2 kB / 0.6757 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5127, allocations: 0 / 0.6757 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0004037/0.5131, allocations: 246 kB / 0.6759 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000648/0.5138, allocations: 110.7 kB / 0.676 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.5152, allocations: 0.7053 MB / 0.6767 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003695/0.5156, allocations: 0.7871 MB / 0.6775 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.662e-05/0.5157, allocations: 35.42 kB / 0.6775 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of SimCode: time 2.7e-07/0.5157, allocations: 4 kB / 0.6775 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of Templates: time 0.009346/0.525, allocations: 6.987 MB / 0.6843 GB, free: 7.191 MB / 0.5294 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches