Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001631/0.001631, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001839/0.001839, allocations: 200 kB / 16.8 MB, free: 6.828 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.337/1.337, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6172/0.6172, allocations: 89.52 MB / 380.1 MB, free: 11.24 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 84.3 kB / 458.2 MB, free: 23.9 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1039, allocations: 67.31 MB / 0.5132 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.386/0.4899, allocations: 171.5 MB / 0.6807 GB, free: 3.828 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01347/0.5034, allocations: 11.13 MB / 0.6916 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001559/0.505, allocations: 26.16 kB / 0.6916 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00214/0.5071, allocations: 0.7035 MB / 0.6923 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003922/0.5111, allocations: 1.51 MB / 0.6938 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002737/0.5139, allocations: 0.9693 MB / 0.6947 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003876/0.5178, allocations: 3.231 MB / 0.6979 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007823/0.5186, allocations: 430 kB / 0.6983 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001739/0.5203, allocations: 0.8755 MB / 0.6992 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001901/0.5222, allocations: 1.335 MB / 0.7005 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003144/0.5226, allocations: 92 kB / 0.7006 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004384/0.527, allocations: 1.883 MB / 0.7024 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.00042/0.5274, allocations: 306.8 kB / 0.7027 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001175/0.5286, allocations: 0.7191 MB / 0.7034 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002484/0.5311, allocations: 1.797 MB / 0.7051 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.5311, allocations: 0 / 0.7051 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.062e-06/0.5311, allocations: 0 / 0.7051 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.099e-05/0.5311, allocations: 0 / 0.7051 GB, free: 14.81 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: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.003995/0.5351, allocations: 1.894 MB / 0.707 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.5352, allocations: 8.031 kB / 0.707 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003227/0.5355, allocations: 151.2 kB / 0.7071 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.5366, allocations: 0.7328 MB / 0.7079 GB, free: 11.92 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.763e-05/0.5367, allocations: 94.78 kB / 0.7079 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002035/0.5369, allocations: 120.6 kB / 0.7081 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002523/0.5395, allocations: 1.524 MB / 0.7096 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.5395, allocations: 0 / 0.7096 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/0.5396, allocations: 55.98 kB / 0.7096 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.183e-05/0.5396, allocations: 28 kB / 0.7096 GB, free: 10.06 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002724/0.5424, allocations: 1.661 MB / 0.7113 GB, free: 8.395 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006749/0.5491, allocations: 6.208 MB / 0.7173 GB, free: 1.578 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002307/0.5515, allocations: 1.284 MB / 0.7186 GB, free: 296 kB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/0.5526, allocations: 0.6959 MB / 0.7192 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004788/0.5574, allocations: 4.01 MB / 0.7232 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/0.5587, allocations: 0.7395 MB / 0.7239 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=128): time 2.955e-06/0.5587, allocations: 0 / 0.7239 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of matching and sorting (n=129): time 0.007505/0.5662, allocations: 3.923 MB / 0.7277 GB, free: 6.363 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.5663, allocations: 72.66 kB / 0.7278 GB, free: 6.277 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006801/0.567, allocations: 0.5825 MB / 0.7284 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 8.009e-05/0.5671, allocations: 45.7 kB / 0.7284 GB, free: 5.637 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003527/0.5674, allocations: 476.5 kB / 0.7289 GB, free: 5.164 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003269/0.5678, allocations: 441.5 kB / 0.7293 GB, free: 4.727 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000334/0.5681, allocations: 202.9 kB / 0.7295 GB, free: 4.523 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.5683, allocations: 345.9 kB / 0.7298 GB, free: 4.18 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.5693, allocations: 0.5101 MB / 0.7303 GB, free: 3.668 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.5703, allocations: 0.629 MB / 0.7309 GB, free: 3.02 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002111/0.5725, allocations: 1.244 MB / 0.7321 GB, free: 1.746 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.5725, allocations: 0 / 0.7321 GB, free: 1.746 MB / 0.5294 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002951/0.5754, allocations: 1.576 MB / 0.7337 GB, free: 156 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.957e-05/0.5755, allocations: 33.69 kB / 0.7337 GB, free: 116 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.5755, allocations: 4 kB / 0.7337 GB, free: 112 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005467/0.5761, allocations: 156.8 kB / 0.7339 GB, free: 15.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009805/0.5771, allocations: 247.7 kB / 0.7341 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003687/0.5808, allocations: 2.501 MB / 0.7365 GB, free: 13.08 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007789/0.5815, allocations: 91.81 kB / 0.7366 GB, free: 12.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.5817, allocations: 51.91 kB / 0.7367 GB, free: 12.94 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (126): * Single equations (assignments): 124 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004518/0.5821, allocations: 277.6 kB / 0.7369 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002117/0.5824, allocations: 98.78 kB / 0.737 GB, free: 12.56 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0041/0.5865, allocations: 2.307 MB / 0.7393 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/0.5865, allocations: 16 kB / 0.7393 GB, free: 10.25 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.5865, allocations: 0 / 0.7393 GB, free: 10.25 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/0.5865, allocations: 7.969 kB / 0.7393 GB, free: 10.24 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005327/0.5919, allocations: 3.376 MB / 0.7426 GB, free: 6.789 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.5919, allocations: 0 / 0.7426 GB, free: 6.789 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009961/0.5929, allocations: 267.7 kB / 0.7429 GB, free: 6.527 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004248/0.5933, allocations: 144.9 kB / 0.743 GB, free: 6.383 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.5934, allocations: 47.97 kB / 0.743 GB, free: 6.336 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002396/0.5958, allocations: 2.236 MB / 0.7452 GB, free: 3.969 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5958, allocations: 0 / 0.7452 GB, free: 3.969 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004221/0.6001, allocations: 2.571 MB / 0.7477 GB, free: 1.371 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000234/0.6003, allocations: 175.8 kB / 0.7479 GB, free: 1.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.6005, allocations: 31.94 kB / 0.7479 GB, free: 1.148 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007232/0.6012, allocations: 91.77 kB / 0.748 GB, free: 1.059 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.6014, allocations: 117.1 kB / 0.7481 GB, free: 0.9414 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/0.6016, allocations: 55.97 kB / 0.7482 GB, free: 0.8867 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0004914/0.6021, allocations: 443 kB / 0.7486 GB, free: 472 kB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6021, allocations: 0 / 0.7486 GB, free: 472 kB / 0.545 GB Notification: Performance of remove unused functions: time 0.001353/0.6034, allocations: 0.5117 MB / 0.7491 GB, free: 15.95 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.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 (141): * Single equations (assignments): 138 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008824/0.6043, allocations: 0.5659 MB / 0.7497 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00285/0.6072, allocations: 1.63 MB / 0.7512 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.6072, allocations: 0 / 0.7512 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001642/0.6088, allocations: 0.9866 MB / 0.7522 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.6105, allocations: 360.2 kB / 0.7526 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004596/0.6151, allocations: 3.057 MB / 0.7555 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006707/0.6158, allocations: 1.137 MB / 0.7567 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004568/0.6162, allocations: 151.4 kB / 0.7568 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of SimCode: time 5.51e-07/0.6163, allocations: 0 / 0.7568 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of Templates: time 0.03411/0.6504, allocations: 28.07 MB / 0.7842 GB, free: 11.96 MB / 0.5919 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches