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.001664/0.001664, allocations: 101.6 kB / 16.35 MB, free: 5.875 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.00195/0.00195, allocations: 191.8 kB / 17.29 MB, free: 5.516 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.318/1.318, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.767/0.767, allocations: 89.49 MB / 380.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 83.88 kB / 459.7 MB, free: 10.54 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1061, allocations: 67.31 MB / 0.5146 GB, free: 7.145 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3407/0.4469, allocations: 173 MB / 0.6835 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01236/0.4593, allocations: 10.92 MB / 0.6942 GB, free: 15.25 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009542/0.4602, allocations: 27.88 kB / 0.6942 GB, free: 15.22 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001821/0.4621, allocations: 0.785 MB / 0.695 GB, free: 14.43 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003648/0.4658, allocations: 1.62 MB / 0.6966 GB, free: 12.8 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002656/0.4685, allocations: 1.11 MB / 0.6977 GB, free: 11.69 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002627/0.4711, allocations: 2.412 MB / 0.7 GB, free: 9.27 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006491/0.4718, allocations: 461.6 kB / 0.7005 GB, free: 8.859 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001462/0.4733, allocations: 0.9653 MB / 0.7014 GB, free: 7.891 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001597/0.4749, allocations: 1.334 MB / 0.7027 GB, free: 6.555 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001995/0.4751, allocations: 144 kB / 0.7028 GB, free: 6.414 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003836/0.4789, allocations: 1.942 MB / 0.7047 GB, free: 4.469 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003199/0.4793, allocations: 354.8 kB / 0.7051 GB, free: 4.121 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0008031/0.4801, allocations: 0.7622 MB / 0.7058 GB, free: 3.355 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003435/0.4835, allocations: 2.457 MB / 0.7082 GB, free: 0.8945 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4835, allocations: 4 kB / 0.7082 GB, free: 0.8906 MB / 0.545 GB Notification: Performance of FrontEnd: time 6.392e-06/0.4836, allocations: 4 kB / 0.7082 GB, free: 0.8867 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.068e-05/0.4836, allocations: 3.938 kB / 0.7082 GB, free: 0.8828 MB / 0.545 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.003552/0.4871, allocations: 1.891 MB / 0.7101 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.4872, allocations: 8.031 kB / 0.7101 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002866/0.4875, allocations: 151.2 kB / 0.7102 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.4885, allocations: 0.7329 MB / 0.7109 GB, free: 14 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.274e-05/0.4886, allocations: 96.97 kB / 0.711 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/0.4888, allocations: 120.5 kB / 0.7112 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00239/0.4912, allocations: 1.532 MB / 0.7126 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.4912, allocations: 3.938 kB / 0.7127 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001029/0.4913, allocations: 48 kB / 0.7127 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/0.4914, allocations: 32 kB / 0.7127 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002666/0.494, allocations: 1.665 MB / 0.7144 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007101/0.5012, allocations: 6.177 MB / 0.7204 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00236/0.5035, allocations: 1.287 MB / 0.7216 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001148/0.5047, allocations: 0.7009 MB / 0.7223 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004889/0.5096, allocations: 4.015 MB / 0.7262 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001259/0.5109, allocations: 0.7355 MB / 0.727 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=128): time 3.066e-06/0.5109, allocations: 0 / 0.727 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of matching and sorting (n=129): time 0.007296/0.5182, allocations: 3.911 MB / 0.7308 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.5183, allocations: 76.7 kB / 0.7309 GB, free: 8.395 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006739/0.519, allocations: 0.5863 MB / 0.7314 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.587e-05/0.5191, allocations: 49.7 kB / 0.7315 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000317/0.5194, allocations: 464.6 kB / 0.7319 GB, free: 7.285 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003234/0.5197, allocations: 437.6 kB / 0.7323 GB, free: 6.852 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000327/0.5201, allocations: 214.8 kB / 0.7325 GB, free: 6.637 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.5202, allocations: 345.9 kB / 0.7329 GB, free: 6.293 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000926/0.5211, allocations: 0.5151 MB / 0.7334 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001046/0.5222, allocations: 0.6218 MB / 0.734 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002127/0.5243, allocations: 1.248 MB / 0.7352 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.5243, allocations: 0 / 0.7352 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00317/0.5275, allocations: 1.58 MB / 0.7367 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.374e-05/0.5276, allocations: 33.7 kB / 0.7368 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.5277, allocations: 0 / 0.7368 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005747/0.5282, allocations: 162.8 kB / 0.7369 GB, free: 2.066 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.5293, allocations: 249.8 kB / 0.7372 GB, free: 1.824 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1923/0.7216, allocations: 2.706 MB / 0.7398 GB, free: 181.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008073/0.7225, allocations: 50.88 kB / 0.7399 GB, free: 181.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.7226, allocations: 51.92 kB / 0.7399 GB, free: 181.7 MB / 0.5762 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.0004342/0.7231, allocations: 288 kB / 0.7402 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001856/0.7233, allocations: 97.94 kB / 0.7403 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003772/0.727, allocations: 2.293 MB / 0.7425 GB, free: 181.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.7271, allocations: 17.81 kB / 0.7425 GB, free: 181.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.7271, allocations: 0.6875 kB / 0.7425 GB, free: 181.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/0.7271, allocations: 16.31 kB / 0.7426 GB, free: 181.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004721/0.7318, allocations: 3.366 MB / 0.7458 GB, free: 181.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.7319, allocations: 0.7812 kB / 0.7458 GB, free: 181.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008997/0.7328, allocations: 270.9 kB / 0.7461 GB, free: 181.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003827/0.7332, allocations: 143.5 kB / 0.7462 GB, free: 181.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.74e-05/0.7333, allocations: 47.67 kB / 0.7463 GB, free: 181.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002113/0.7354, allocations: 2.45 MB / 0.7487 GB, free: 179.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.7354, allocations: 3.5 kB / 0.7487 GB, free: 179.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003692/0.7391, allocations: 2.576 MB / 0.7512 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001954/0.7393, allocations: 170.5 kB / 0.7514 GB, free: 179.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.7395, allocations: 30.31 kB / 0.7514 GB, free: 179.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005623/0.74, allocations: 54.23 kB / 0.7514 GB, free: 179.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002061/0.7402, allocations: 111 kB / 0.7515 GB, free: 179.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.911e-05/0.7404, allocations: 54.19 kB / 0.7516 GB, free: 179.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004251/0.7408, allocations: 443.1 kB / 0.752 GB, free: 179.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8.42e-07/0.7408, allocations: 0 / 0.752 GB, free: 179.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00124/0.742, allocations: 0.509 MB / 0.7525 GB, free: 179.1 MB / 0.5762 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.0007657/0.7428, allocations: 0.5685 MB / 0.7531 GB, free: 179 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002481/0.7453, allocations: 1.641 MB / 0.7547 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.7453, allocations: 1.969 kB / 0.7547 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001498/0.7468, allocations: 0.9929 MB / 0.7556 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.7484, allocations: 383.9 kB / 0.756 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003908/0.7523, allocations: 2.447 MB / 0.7584 GB, free: 177.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005819/0.7529, allocations: 1.138 MB / 0.7595 GB, free: 177.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001053/0.754, allocations: 335.2 kB / 0.7598 GB, free: 177.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000368/0.7544, allocations: 134 kB / 0.76 GB, free: 177 MB / 0.5762 GB Notification: Performance of SimCode: time 8.31e-07/0.7544, allocations: 0 / 0.76 GB, free: 177 MB / 0.5762 GB Notification: Performance of Templates: time 0.04128/0.7957, allocations: 26.02 MB / 0.7854 GB, free: 170.6 MB / 0.5762 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 -s gbode -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