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.001052/0.001052, allocations: 106.4 kB / 16.37 MB, free: 6.477 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.001037/0.001037, allocations: 195.8 kB / 17.31 MB, free: 5.82 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.308/1.308, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7084/0.7084, allocations: 89.49 MB / 380.7 MB, free: 8.676 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002776/0.002776, allocations: 75.88 kB / 459.7 MB, free: 10.63 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1594/0.1622, allocations: 67.32 MB / 0.5146 GB, free: 7.238 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.4179/0.5802, allocations: 143.7 MB / 0.655 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003841/0.5841, allocations: 3.566 MB / 0.6584 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.5843, allocations: 4 kB / 0.6584 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005465/0.5848, allocations: 170.9 kB / 0.6586 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0006902/0.5856, allocations: 365.9 kB / 0.659 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006368/0.5863, allocations: 286.9 kB / 0.6592 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004396/0.5867, allocations: 465.9 kB / 0.6597 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.5869, allocations: 83.77 kB / 0.6598 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003615/0.5873, allocations: 215.1 kB / 0.66 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002762/0.5876, allocations: 215.2 kB / 0.6602 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.957e-05/0.5876, allocations: 24 kB / 0.6602 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008204/0.5884, allocations: 491.1 kB / 0.6607 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.21e-05/0.5885, allocations: 71.69 kB / 0.6607 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.5887, allocations: 160.1 kB / 0.6609 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006412/0.5893, allocations: 0.4886 MB / 0.6614 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.5894, allocations: 0 / 0.6614 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5894, allocations: 0 / 0.6614 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.5894, allocations: 4 kB / 0.6614 GB, free: 1.066 MB / 0.4981 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.001129/0.5905, allocations: 0.6649 MB / 0.662 GB, free: 360 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.5906, allocations: 12.03 kB / 0.662 GB, free: 348 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.073e-05/0.5907, allocations: 32.56 kB / 0.662 GB, free: 316 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003664/0.591, allocations: 295.4 kB / 0.6623 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.5911, allocations: 16.8 kB / 0.6623 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.758e-05/0.5911, allocations: 29.06 kB / 0.6624 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004618/0.5916, allocations: 266.4 kB / 0.6626 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.5916, allocations: 0 / 0.6626 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.361e-05/0.5916, allocations: 8 kB / 0.6626 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.5916, allocations: 4 kB / 0.6626 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004442/0.5921, allocations: 219.2 kB / 0.6628 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.5934, allocations: 1.073 MB / 0.6639 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004958/0.594, allocations: 232.4 kB / 0.6641 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002208/0.5942, allocations: 108.8 kB / 0.6642 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009391/0.5951, allocations: 0.9945 MB / 0.6652 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000326/0.5955, allocations: 145.6 kB / 0.6653 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=23): time 1.633e-06/0.5955, allocations: 4 kB / 0.6653 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=23): time 0.001076/0.5966, allocations: 450 kB / 0.6658 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.5966, allocations: 55.41 kB / 0.6658 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000265/0.5969, allocations: 282.9 kB / 0.6661 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.5969, allocations: 34.55 kB / 0.6661 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.597, allocations: 160.3 kB / 0.6663 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 5.614e-05/0.5971, allocations: 82.83 kB / 0.6664 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.699e-05/0.5972, allocations: 49.94 kB / 0.6664 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.5973, allocations: 338.8 kB / 0.6667 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.5975, allocations: 76.19 kB / 0.6668 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002203/0.5978, allocations: 116.6 kB / 0.6669 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004054/0.5982, allocations: 216.5 kB / 0.6671 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.5982, allocations: 0 / 0.6671 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006442/0.5988, allocations: 347.9 kB / 0.6674 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.5989, allocations: 37.69 kB / 0.6675 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.5989, allocations: 0 / 0.6675 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002201/0.5991, allocations: 44.77 kB / 0.6675 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.5993, allocations: 44.66 kB / 0.6676 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.6005, allocations: 1.53 MB / 0.6691 GB, free: 8.555 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.6007, allocations: 28.8 kB / 0.6691 GB, free: 8.527 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.6007, allocations: 8 kB / 0.6691 GB, free: 8.52 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.0001365/0.6009, allocations: 145.7 kB / 0.6692 GB, free: 8.367 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.201e-05/0.6009, allocations: 28.38 kB / 0.6693 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007254/0.6017, allocations: 334.1 kB / 0.6696 GB, free: 8.012 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.6017, allocations: 0 / 0.6696 GB, free: 8.012 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.6017, allocations: 4 kB / 0.6696 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.6017, allocations: 0 / 0.6696 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.6028, allocations: 0.7264 MB / 0.6703 GB, free: 7.219 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.6028, allocations: 0.6875 kB / 0.6703 GB, free: 7.219 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001628/0.603, allocations: 43.97 kB / 0.6703 GB, free: 7.176 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001403/0.6031, allocations: 53.2 kB / 0.6704 GB, free: 7.121 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.6031, allocations: 8 kB / 0.6704 GB, free: 7.113 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.6042, allocations: 1.52 MB / 0.6719 GB, free: 5.453 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/0.6043, allocations: 4.625 kB / 0.6719 GB, free: 5.449 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008379/0.6051, allocations: 0.4911 MB / 0.6724 GB, free: 4.938 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.773e-05/0.6052, allocations: 108.7 kB / 0.6725 GB, free: 4.812 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.323e-05/0.6052, allocations: 11.94 kB / 0.6725 GB, free: 4.801 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.6054, allocations: 15.98 kB / 0.6725 GB, free: 4.785 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.903e-05/0.6055, allocations: 28.02 kB / 0.6725 GB, free: 4.758 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.6055, allocations: 9.188 kB / 0.6725 GB, free: 4.75 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001813/0.6057, allocations: 198 kB / 0.6727 GB, free: 4.559 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.51e-07/0.6057, allocations: 0 / 0.6727 GB, free: 4.559 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004345/0.6062, allocations: 118.7 kB / 0.6728 GB, free: 4.445 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.0003561/0.6065, allocations: 213.8 kB / 0.673 GB, free: 4.234 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0007521/0.6073, allocations: 402.3 kB / 0.6734 GB, free: 3.816 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.6073, allocations: 4 kB / 0.6734 GB, free: 3.812 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004003/0.6077, allocations: 242 kB / 0.6737 GB, free: 3.566 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006177/0.6084, allocations: 101.2 kB / 0.6738 GB, free: 3.473 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.6096, allocations: 0.6033 MB / 0.6743 GB, free: 2.848 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.6099, allocations: 0.7677 MB / 0.6751 GB, free: 2.055 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001606/0.61, allocations: 48.34 kB / 0.6751 GB, free: 2.02 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.086e-05/0.6101, allocations: 23.44 kB / 0.6752 GB, free: 1.996 MB / 0.5137 GB Notification: Performance of SimCode: time 3.21e-07/0.6101, allocations: 0 / 0.6752 GB, free: 1.996 MB / 0.5137 GB Notification: Performance of Templates: time 0.01059/0.6207, allocations: 6.226 MB / 0.6812 GB, free: 11.91 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 -s cvode -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