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.001652/0.001652, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001796/0.001796, allocations: 193.3 kB / 16.14 MB, free: 6.711 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.367/1.367, allocations: 222.9 MB / 239.8 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6918/0.6918, allocations: 91.2 MB / 381.2 MB, free: 9.574 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 85.56 kB / 459.6 MB, free: 23.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1127, allocations: 67.69 MB / 0.515 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4005/0.5132, allocations: 171.7 MB / 0.6827 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01336/0.5266, allocations: 11.22 MB / 0.6936 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001642/0.5283, allocations: 56.38 kB / 0.6937 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002129/0.5304, allocations: 0.7117 MB / 0.6944 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004082/0.5345, allocations: 1.542 MB / 0.6959 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002837/0.5374, allocations: 0.9791 MB / 0.6969 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003472/0.5409, allocations: 3.349 MB / 0.7001 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007677/0.5417, allocations: 449.7 kB / 0.7006 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001787/0.5435, allocations: 0.9374 MB / 0.7015 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002012/0.5455, allocations: 1.351 MB / 0.7028 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003208/0.5458, allocations: 92 kB / 0.7029 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004161/0.55, allocations: 1.891 MB / 0.7047 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004103/0.5504, allocations: 318.7 kB / 0.705 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.00105/0.5515, allocations: 0.7539 MB / 0.7058 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00389/0.5554, allocations: 2.458 MB / 0.7082 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.5554, allocations: 0 / 0.7082 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.002e-06/0.5554, allocations: 4 kB / 0.7082 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.419e-05/0.5555, allocations: 0 / 0.7082 GB, free: 10.21 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.004367/0.5598, allocations: 2.029 MB / 0.7101 GB, free: 8.121 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.5599, allocations: 8.031 kB / 0.7102 GB, free: 8.113 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003636/0.5603, allocations: 167 kB / 0.7103 GB, free: 7.949 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.5617, allocations: 0.9084 MB / 0.7112 GB, free: 7 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.343e-05/0.5618, allocations: 86.78 kB / 0.7113 GB, free: 6.914 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001918/0.562, allocations: 124.4 kB / 0.7114 GB, free: 6.793 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002742/0.5647, allocations: 1.532 MB / 0.7129 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.5648, allocations: 0 / 0.7129 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.5649, allocations: 48 kB / 0.7129 GB, free: 5.172 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.336e-05/0.5649, allocations: 31.94 kB / 0.713 GB, free: 5.141 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002922/0.5678, allocations: 1.665 MB / 0.7146 GB, free: 3.469 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007439/0.5753, allocations: 6.241 MB / 0.7207 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002458/0.5778, allocations: 1.283 MB / 0.7219 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001147/0.5789, allocations: 0.7036 MB / 0.7226 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004955/0.5839, allocations: 4.018 MB / 0.7266 GB, free: 6.145 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001399/0.5853, allocations: 0.7278 MB / 0.7273 GB, free: 5.406 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=128): time 3.276e-06/0.5854, allocations: 4 kB / 0.7273 GB, free: 5.402 MB / 0.5294 GB Notification: Performance of matching and sorting (n=129): time 0.007868/0.5932, allocations: 3.969 MB / 0.7312 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.5933, allocations: 68.72 kB / 0.7312 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008501/0.5941, allocations: 0.7088 MB / 0.7319 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.5943, allocations: 45.7 kB / 0.732 GB, free: 500 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004078/0.5947, allocations: 0.5239 MB / 0.7325 GB, free: 15.96 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003576/0.595, allocations: 441.6 kB / 0.7329 GB, free: 15.52 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000347/0.5954, allocations: 206.9 kB / 0.7331 GB, free: 15.31 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5955, allocations: 341.9 kB / 0.7334 GB, free: 14.97 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009899/0.5965, allocations: 0.5179 MB / 0.7339 GB, free: 14.45 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/0.5977, allocations: 0.6368 MB / 0.7345 GB, free: 13.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002238/0.5999, allocations: 1.24 MB / 0.7357 GB, free: 12.53 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.5999, allocations: 0 / 0.7357 GB, free: 12.53 MB / 0.545 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003166/0.6031, allocations: 1.591 MB / 0.7373 GB, free: 10.92 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.043e-05/0.6032, allocations: 29.7 kB / 0.7373 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.6032, allocations: 4 kB / 0.7373 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000553/0.6038, allocations: 164.6 kB / 0.7375 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.6048, allocations: 243.7 kB / 0.7377 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003946/0.6087, allocations: 2.502 MB / 0.7402 GB, free: 7.848 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009055/0.6097, allocations: 87.81 kB / 0.7402 GB, free: 7.762 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001625/0.6098, allocations: 51.97 kB / 0.7403 GB, free: 7.711 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.0005562/0.6104, allocations: 285.6 kB / 0.7406 GB, free: 7.422 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002848/0.6107, allocations: 118.6 kB / 0.7407 GB, free: 7.305 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004761/0.6155, allocations: 2.324 MB / 0.743 GB, free: 4.992 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.6155, allocations: 12 kB / 0.743 GB, free: 4.98 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.6155, allocations: 4 kB / 0.743 GB, free: 4.977 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/0.6155, allocations: 7.969 kB / 0.743 GB, free: 4.969 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006076/0.6216, allocations: 3.426 MB / 0.7463 GB, free: 1.469 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.6216, allocations: 0 / 0.7463 GB, free: 1.469 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.6227, allocations: 267.6 kB / 0.7466 GB, free: 1.207 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004505/0.6231, allocations: 140.8 kB / 0.7467 GB, free: 1.066 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001273/0.6233, allocations: 43.98 kB / 0.7468 GB, free: 1.023 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002656/0.6259, allocations: 2.225 MB / 0.7489 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.6259, allocations: 4 kB / 0.7489 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004713/0.6307, allocations: 2.599 MB / 0.7515 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003102/0.631, allocations: 187.4 kB / 0.7516 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002071/0.6312, allocations: 31.94 kB / 0.7517 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007769/0.632, allocations: 91.83 kB / 0.7518 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002403/0.6322, allocations: 109.2 kB / 0.7519 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/0.6324, allocations: 55.97 kB / 0.7519 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006869/0.6331, allocations: 0.5195 MB / 0.7524 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6331, allocations: 0 / 0.7524 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001567/0.6346, allocations: 0.5078 MB / 0.7529 GB, free: 10.5 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.0009733/0.6356, allocations: 0.5698 MB / 0.7535 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003097/0.6387, allocations: 1.626 MB / 0.7551 GB, free: 8.285 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.6388, allocations: 0 / 0.7551 GB, free: 8.285 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001807/0.6406, allocations: 0.9905 MB / 0.756 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001855/0.6424, allocations: 366.1 kB / 0.7564 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005149/0.6476, allocations: 3.243 MB / 0.7596 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008129/0.6484, allocations: 1.187 MB / 0.7607 GB, free: 2.438 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001197/0.6496, allocations: 344 kB / 0.761 GB, free: 2.145 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000439/0.6501, allocations: 143.4 kB / 0.7612 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of SimCode: time 6.31e-07/0.6501, allocations: 0 / 0.7612 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of Templates: time 0.04083/0.6909, allocations: 25.4 MB / 0.786 GB, free: 8.805 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches