Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 84.73 kB / 19.44 MB, free: 352 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002137/0.002137, allocations: 157.7 kB / 22.76 MB, free: 1.676 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.582/1.582, allocations: 177.2 MB / 203.1 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 1.09/1.09, allocations: 118.7 MB / 378.2 MB, free: 1.465 MB / 346.7 MB " [Timeout remaining time 178] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 482.9 MB, free: 8.289 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.875e-05/3.083e-05, allocations: 6.484 kB / 482.9 MB, free: 8.285 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.2242/0.2242, allocations: 144.9 MB / 0.6131 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.01598/0.2402, allocations: 10.34 MB / 0.6232 GB, free: 5.273 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001286/0.2415, allocations: 63.38 kB / 0.6232 GB, free: 5.211 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.001911/0.2434, allocations: 0.5235 MB / 0.6237 GB, free: 4.684 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.00301/0.2464, allocations: 0.9932 MB / 0.6247 GB, free: 3.684 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.002893/0.2493, allocations: 0.8482 MB / 0.6255 GB, free: 2.832 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.002564/0.2519, allocations: 1.573 MB / 0.6271 GB, free: 1.25 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004685/0.2523, allocations: 207.7 kB / 0.6273 GB, free: 1.039 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001536/0.2539, allocations: 0.8491 MB / 0.6281 GB, free: 192 kB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.2549, allocations: 0.5764 MB / 0.6287 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.255, allocations: 76 kB / 0.6287 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003146/0.2582, allocations: 1.224 MB / 0.6299 GB, free: 14.31 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002446/0.2584, allocations: 207 kB / 0.6301 GB, free: 14.11 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0005329/0.2589, allocations: 371 kB / 0.6305 GB, free: 13.74 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.003425/0.2624, allocations: 1.694 MB / 0.6321 GB, free: 12.04 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.2624, allocations: 4 kB / 0.6321 GB, free: 12.04 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2624, allocations: 0 / 0.6321 GB, free: 12.04 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 1.337e-05/0.2624, allocations: 0 / 0.6321 GB, free: 12.04 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002977/0.2654, allocations: 1.473 MB / 0.6336 GB, free: 10.53 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.2654, allocations: 12.03 kB / 0.6336 GB, free: 10.52 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004568/0.2659, allocations: 215.9 kB / 0.6338 GB, free: 10.31 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001601/0.2675, allocations: 0.8368 MB / 0.6346 GB, free: 9.43 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.18e-05/0.2675, allocations: 54.38 kB / 0.6347 GB, free: 9.379 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/0.2677, allocations: 80.31 kB / 0.6347 GB, free: 9.301 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.2691, allocations: 0.7618 MB / 0.6355 GB, free: 8.516 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.2692, allocations: 4.125 kB / 0.6355 GB, free: 8.512 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.886e-05/0.2692, allocations: 31.94 kB / 0.6355 GB, free: 8.48 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.988e-05/0.2692, allocations: 20 kB / 0.6355 GB, free: 8.461 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/0.2705, allocations: 0.6597 MB / 0.6362 GB, free: 7.805 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003666/0.2742, allocations: 2.026 MB / 0.6382 GB, free: 5.734 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.2755, allocations: 0.5047 MB / 0.6387 GB, free: 5.219 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004545/0.2759, allocations: 222.3 kB / 0.6389 GB, free: 5 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001914/0.2779, allocations: 0.8836 MB / 0.6397 GB, free: 4.098 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.501e-05/0.2779, allocations: 43.06 kB / 0.6398 GB, free: 4.047 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=55): time 1.863e-06/0.2779, allocations: 0 / 0.6398 GB, free: 4.047 MB / 0.5573 GB Notification: Performance of matching and sorting (n=56): time 0.00405/0.282, allocations: 1.592 MB / 0.6413 GB, free: 2.414 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.794e-05/0.282, allocations: 59.84 kB / 0.6414 GB, free: 2.344 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/0.2832, allocations: 0.7447 MB / 0.6421 GB, free: 1.574 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.2832, allocations: 37.7 kB / 0.6422 GB, free: 1.531 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004742/0.2837, allocations: 0.4927 MB / 0.6426 GB, free: 1.035 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.2839, allocations: 194.3 kB / 0.6428 GB, free: 0.8438 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001779/0.2841, allocations: 98.34 kB / 0.6429 GB, free: 0.7383 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001809/0.2842, allocations: 326 kB / 0.6432 GB, free: 424 kB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003641/0.2846, allocations: 161.2 kB / 0.6434 GB, free: 264 kB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2758/0.5604, allocations: 245.6 kB / 0.6436 GB, free: 171.1 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.5615, allocations: 441.5 kB / 0.644 GB, free: 171 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.5615, allocations: 4.438 kB / 0.644 GB, free: 171 MB / 0.5573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001738/0.5632, allocations: 0.6935 MB / 0.6447 GB, free: 170.9 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.5632, allocations: 9.141 kB / 0.6447 GB, free: 170.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.5633, allocations: 2.094 kB / 0.6447 GB, free: 170.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007287/0.564, allocations: 141.8 kB / 0.6449 GB, free: 170.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004075/0.5644, allocations: 102.1 kB / 0.645 GB, free: 170.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002092/0.5665, allocations: 1.905 MB / 0.6468 GB, free: 169.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004965/0.567, allocations: 18.52 kB / 0.6468 GB, free: 169.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.566e-05/0.567, allocations: 26.19 kB / 0.6469 GB, free: 169.4 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003661/0.5674, allocations: 217.6 kB / 0.6471 GB, free: 169.2 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003256/0.5677, allocations: 134 kB / 0.6472 GB, free: 169.2 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001847/0.5696, allocations: 0.8607 MB / 0.648 GB, free: 168.8 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.5696, allocations: 5.969 kB / 0.648 GB, free: 168.8 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.5696, allocations: 6.625 kB / 0.648 GB, free: 168.8 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.5696, allocations: 2.484 kB / 0.648 GB, free: 168.8 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002524/0.5721, allocations: 1.329 MB / 0.6493 GB, free: 168.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.5721, allocations: 4.812 kB / 0.6494 GB, free: 168.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003448/0.5725, allocations: 89.16 kB / 0.6494 GB, free: 168.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005753/0.5731, allocations: 147.5 kB / 0.6496 GB, free: 168.1 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.23e-05/0.5731, allocations: 19 kB / 0.6496 GB, free: 168.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001914/0.575, allocations: 1.911 MB / 0.6515 GB, free: 166.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.575, allocations: 3.094 kB / 0.6515 GB, free: 166.6 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.5767, allocations: 1 MB / 0.6524 GB, free: 166.1 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003077/0.577, allocations: 138.8 kB / 0.6526 GB, free: 166 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.791e-05/0.5771, allocations: 10.59 kB / 0.6526 GB, free: 166 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.5774, allocations: 19.09 kB / 0.6526 GB, free: 166 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.5775, allocations: 56.53 kB / 0.6527 GB, free: 166 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.969e-05/0.5776, allocations: 24.31 kB / 0.6527 GB, free: 166 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0006512/0.5782, allocations: 0.5257 MB / 0.6532 GB, free: 165.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7e-08/0.5782, allocations: 3.188 kB / 0.6532 GB, free: 165.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00111/0.5793, allocations: 348.3 kB / 0.6535 GB, free: 165.7 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000774/0.5801, allocations: 0.4884 MB / 0.654 GB, free: 165.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001209/0.5813, allocations: 0.5886 MB / 0.6546 GB, free: 165.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.5813, allocations: 0 / 0.6546 GB, free: 165.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006494/0.582, allocations: 411.1 kB / 0.655 GB, free: 165.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/0.5834, allocations: 352.6 kB / 0.6553 GB, free: 165 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.587, allocations: 1.749 MB / 0.657 GB, free: 164.1 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004699/0.5875, allocations: 454.9 kB / 0.6574 GB, free: 164 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0005889/0.588, allocations: 164.9 kB / 0.6576 GB, free: 163.9 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.5882, allocations: 81.98 kB / 0.6577 GB, free: 163.9 MB / 0.5573 GB Notification: Performance of SimCode: time 1.683e-06/0.5882, allocations: 0 / 0.6577 GB, free: 163.9 MB / 0.5573 GB Notification: Performance of Templates: time 0.03664/0.6249, allocations: 18.51 MB / 0.6758 GB, free: 158.5 MB / 0.5573 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.118004838936031]