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.001475/0.001475, allocations: 103.2 kB / 16.36 MB, free: 6.336 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.001605/0.001605, allocations: 198 kB / 17.3 MB, free: 5.883 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 / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6742/0.6742, allocations: 89.5 MB / 380.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.001631, allocations: 75.88 kB / 459.7 MB, free: 10.58 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1166, allocations: 67.3 MB / 0.5146 GB, free: 7.203 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3716/0.4883, allocations: 173 MB / 0.6835 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01297/0.5013, allocations: 10.92 MB / 0.6942 GB, free: 15.28 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.5029, allocations: 25.38 kB / 0.6942 GB, free: 15.25 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002123/0.505, allocations: 0.7922 MB / 0.695 GB, free: 14.46 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004386/0.5095, allocations: 1.612 MB / 0.6966 GB, free: 12.84 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00326/0.5128, allocations: 1.11 MB / 0.6977 GB, free: 11.72 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002934/0.5157, allocations: 2.412 MB / 0.7 GB, free: 9.301 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007223/0.5165, allocations: 447.1 kB / 0.7004 GB, free: 8.898 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001734/0.5182, allocations: 0.9809 MB / 0.7014 GB, free: 7.914 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001872/0.5201, allocations: 1.336 MB / 0.7027 GB, free: 6.574 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002655/0.5204, allocations: 144 kB / 0.7028 GB, free: 6.434 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004162/0.5245, allocations: 1.93 MB / 0.7047 GB, free: 4.5 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003893/0.525, allocations: 350.8 kB / 0.7051 GB, free: 4.156 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0009324/0.5259, allocations: 0.77 MB / 0.7058 GB, free: 3.383 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003866/0.5298, allocations: 2.454 MB / 0.7082 GB, free: 0.9258 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.5298, allocations: 0 / 0.7082 GB, free: 0.9258 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.286e-06/0.5298, allocations: 0 / 0.7082 GB, free: 0.9258 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.299e-05/0.5299, allocations: 3.938 kB / 0.7082 GB, free: 0.9219 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.003739/0.5336, allocations: 1.893 MB / 0.7101 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.5337, allocations: 12.03 kB / 0.7101 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003108/0.534, allocations: 151.7 kB / 0.7102 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.5351, allocations: 0.7368 MB / 0.7109 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.657e-05/0.5352, allocations: 90.78 kB / 0.711 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001839/0.5354, allocations: 128.5 kB / 0.7112 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002457/0.5378, allocations: 1.528 MB / 0.7126 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.5379, allocations: 0 / 0.7126 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.538, allocations: 52 kB / 0.7127 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.529e-05/0.538, allocations: 30.38 kB / 0.7127 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002835/0.5409, allocations: 1.668 MB / 0.7144 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007133/0.548, allocations: 6.179 MB / 0.7204 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/0.5503, allocations: 1.291 MB / 0.7216 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001118/0.5514, allocations: 0.6958 MB / 0.7223 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004903/0.5564, allocations: 4.019 MB / 0.7262 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001241/0.5576, allocations: 0.7334 MB / 0.727 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=128): time 4.96e-06/0.5576, allocations: 4 kB / 0.727 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=129): time 0.007276/0.5649, allocations: 3.915 MB / 0.7308 GB, free: 8.496 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.565, allocations: 68.72 kB / 0.7309 GB, free: 8.418 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000666/0.5657, allocations: 0.5863 MB / 0.7314 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.426e-05/0.5658, allocations: 45.7 kB / 0.7315 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003428/0.5661, allocations: 468.6 kB / 0.7319 GB, free: 7.309 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003309/0.5665, allocations: 441.6 kB / 0.7323 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003304/0.5668, allocations: 210.8 kB / 0.7325 GB, free: 6.66 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.5669, allocations: 341.9 kB / 0.7329 GB, free: 6.32 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009246/0.5679, allocations: 0.5179 MB / 0.7334 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/0.5689, allocations: 0.629 MB / 0.734 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002073/0.571, allocations: 1.244 MB / 0.7352 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.571, allocations: 0 / 0.7352 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002921/0.5739, allocations: 1.578 MB / 0.7367 GB, free: 2.289 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.574, allocations: 30.33 kB / 0.7368 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.574, allocations: 4 kB / 0.7368 GB, free: 2.25 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005032/0.5745, allocations: 160.7 kB / 0.7369 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009488/0.5755, allocations: 243.7 kB / 0.7372 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1902/0.7657, allocations: 2.719 MB / 0.7398 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000846/0.7666, allocations: 45.73 kB / 0.7399 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.7668, allocations: 52.75 kB / 0.7399 GB, free: 182 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.0004559/0.7672, allocations: 284.5 kB / 0.7402 GB, free: 181.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/0.7674, allocations: 101.1 kB / 0.7403 GB, free: 181.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003966/0.7714, allocations: 2.294 MB / 0.7425 GB, free: 181.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.7714, allocations: 15.88 kB / 0.7425 GB, free: 181.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.7715, allocations: 2.469 kB / 0.7425 GB, free: 181.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.8e-05/0.7715, allocations: 8.359 kB / 0.7425 GB, free: 181.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005107/0.7766, allocations: 3.371 MB / 0.7458 GB, free: 181.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.485e-06/0.7766, allocations: 3.344 kB / 0.7458 GB, free: 181.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009346/0.7776, allocations: 265.4 kB / 0.7461 GB, free: 181.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004165/0.778, allocations: 150.8 kB / 0.7462 GB, free: 181.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.7781, allocations: 41.05 kB / 0.7463 GB, free: 181.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002143/0.7803, allocations: 2.45 MB / 0.7487 GB, free: 179.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.644e-06/0.7803, allocations: 0.5469 kB / 0.7487 GB, free: 179.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003834/0.7841, allocations: 2.579 MB / 0.7512 GB, free: 179.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002442/0.7844, allocations: 171.1 kB / 0.7514 GB, free: 179.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/0.7846, allocations: 33.48 kB / 0.7514 GB, free: 179.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005681/0.7851, allocations: 51.73 kB / 0.7514 GB, free: 179.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002122/0.7853, allocations: 116 kB / 0.7515 GB, free: 179.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.7855, allocations: 53.75 kB / 0.7516 GB, free: 179.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004693/0.7859, allocations: 437.5 kB / 0.752 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7859, allocations: 1.781 kB / 0.752 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001279/0.7872, allocations: 0.5091 MB / 0.7525 GB, free: 179.4 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.0007821/0.788, allocations: 0.571 MB / 0.7531 GB, free: 179.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002569/0.7906, allocations: 1.636 MB / 0.7547 GB, free: 179.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.7906, allocations: 3.469 kB / 0.7547 GB, free: 179.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001616/0.7922, allocations: 0.9959 MB / 0.7556 GB, free: 179 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001693/0.7939, allocations: 380.6 kB / 0.756 GB, free: 179 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004085/0.798, allocations: 2.449 MB / 0.7584 GB, free: 178 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005926/0.7987, allocations: 1.136 MB / 0.7595 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001124/0.7998, allocations: 335 kB / 0.7598 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003692/0.8002, allocations: 138.3 kB / 0.76 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of SimCode: time 6.01e-07/0.8002, allocations: 1.688 kB / 0.76 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.04398/0.8442, allocations: 26.02 MB / 0.7854 GB, free: 170.9 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 cvode -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