Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.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.001389/0.001389, allocations: 80.69 kB / 19.18 MB, free: 2.52 MB / 14.72 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.001509/0.001509, allocations: 169.5 kB / 22.46 MB, free: 5.371 MB / 14.72 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.454/1.454, allocations: 177.2 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.9988/0.9988, allocations: 116.1 MB / 375.2 MB, free: 7.535 MB / 350.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 0.5538 GB, free: 13.78 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.414e-05/3.594e-05, allocations: 2.281 kB / 0.5538 GB, free: 13.77 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4976/0.4976, allocations: 151.4 MB / 0.7016 GB, free: 6.223 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01383/0.5114, allocations: 10.15 MB / 0.7115 GB, free: 6.176 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001632/0.5131, allocations: 68.69 kB / 0.7115 GB, free: 6.176 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002323/0.5154, allocations: 0.7438 MB / 0.7123 GB, free: 6.152 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.006262/0.5217, allocations: 1.834 MB / 0.7141 GB, free: 6.086 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003847/0.5255, allocations: 1.15 MB / 0.7152 GB, free: 6.062 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003897/0.5294, allocations: 2.787 MB / 0.7179 GB, free: 5.305 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006451/0.53, allocations: 279 kB / 0.7182 GB, free: 5.215 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002732/0.5328, allocations: 1.51 MB / 0.7197 GB, free: 5.066 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00179/0.5346, allocations: 1.259 MB / 0.7209 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000278/0.5348, allocations: 144.1 kB / 0.721 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004049/0.5389, allocations: 1.694 MB / 0.7227 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003542/0.5392, allocations: 389 kB / 0.723 GB, free: 4.773 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009154/0.5402, allocations: 0.5931 MB / 0.7236 GB, free: 4.711 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004684/0.5448, allocations: 2.691 MB / 0.7262 GB, free: 4.441 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.5449, allocations: 1.969 kB / 0.7263 GB, free: 4.441 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.312e-06/0.5449, allocations: 0.9062 kB / 0.7263 GB, free: 4.441 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.206e-05/0.5449, allocations: 0 / 0.7263 GB, free: 4.441 MB / 0.5919 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.003898/0.5488, allocations: 2.007 MB / 0.7282 GB, free: 3.508 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.5488, allocations: 9.562 kB / 0.7282 GB, free: 3.508 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004652/0.5493, allocations: 193.3 kB / 0.7284 GB, free: 3.414 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001445/0.5508, allocations: 0.9122 MB / 0.7293 GB, free: 3.098 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.876e-05/0.5508, allocations: 93.56 kB / 0.7294 GB, free: 3.094 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001681/0.551, allocations: 120.2 kB / 0.7295 GB, free: 3.094 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002347/0.5533, allocations: 1.548 MB / 0.731 GB, free: 2.973 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.966e-05/0.5534, allocations: 0 / 0.731 GB, free: 2.973 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.5535, allocations: 53.72 kB / 0.7311 GB, free: 2.969 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.5535, allocations: 28.06 kB / 0.7311 GB, free: 2.969 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002499/0.556, allocations: 1.71 MB / 0.7328 GB, free: 2.953 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005742/0.5617, allocations: 3.548 MB / 0.7362 GB, free: 2.23 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002185/0.5639, allocations: 1.191 MB / 0.7374 GB, free: 2.168 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009906/0.5649, allocations: 0.6329 MB / 0.738 GB, free: 2.16 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003807/0.5687, allocations: 2.062 MB / 0.74 GB, free: 1.855 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001218/0.5699, allocations: 0.732 MB / 0.7407 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 3.627e-06/0.5699, allocations: 3.031 kB / 0.7407 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.007404/0.5773, allocations: 3.789 MB / 0.7444 GB, free: 0.9688 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.5774, allocations: 70.75 kB / 0.7445 GB, free: 0.9023 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006989/0.5781, allocations: 0.6622 MB / 0.7452 GB, free: 0.6172 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.394e-05/0.5782, allocations: 48.45 kB / 0.7452 GB, free: 0.5703 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000314/0.5785, allocations: 0.545 MB / 0.7457 GB, free: 144 kB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003653/0.5788, allocations: 455.5 kB / 0.7462 GB, free: 15.78 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003409/0.5792, allocations: 209.3 kB / 0.7464 GB, free: 15.69 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001712/0.5794, allocations: 344.6 kB / 0.7467 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009821/0.5803, allocations: 0.5486 MB / 0.7472 GB, free: 15.13 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.5815, allocations: 0.6545 MB / 0.7479 GB, free: 14.82 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002216/0.5837, allocations: 1.253 MB / 0.7491 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.5837, allocations: 0.8438 kB / 0.7491 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003892/0.5876, allocations: 1.639 MB / 0.7507 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.322e-05/0.5877, allocations: 40.8 kB / 0.7507 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/0.5877, allocations: 2 kB / 0.7507 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006794/0.5884, allocations: 157.6 kB / 0.7509 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009759/0.5894, allocations: 242.2 kB / 0.7511 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004181/0.5936, allocations: 2.569 MB / 0.7536 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000895/0.5945, allocations: 52.92 kB / 0.7537 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/0.5946, allocations: 52.89 kB / 0.7537 GB, free: 11.5 MB / 0.6075 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.0006405/0.5953, allocations: 292.8 kB / 0.754 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003733/0.5957, allocations: 135.5 kB / 0.7541 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004361/0.6, allocations: 2.308 MB / 0.7564 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.6, allocations: 15 kB / 0.7564 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.6, allocations: 2.719 kB / 0.7564 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.82e-05/0.6001, allocations: 7.5 kB / 0.7564 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006049/0.6061, allocations: 3.052 MB / 0.7594 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.6061, allocations: 1.25 kB / 0.7594 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.6071, allocations: 271.5 kB / 0.7597 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004678/0.6076, allocations: 142.5 kB / 0.7598 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/0.6077, allocations: 43.72 kB / 0.7598 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002919/0.6106, allocations: 2.294 MB / 0.7621 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.6106, allocations: 0 / 0.7621 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00496/0.6156, allocations: 2.61 MB / 0.7646 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007014/0.6163, allocations: 284.8 kB / 0.7649 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001824/0.6165, allocations: 29.69 kB / 0.7649 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006586/0.6171, allocations: 54.11 kB / 0.765 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002681/0.6174, allocations: 127.7 kB / 0.7651 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/0.6175, allocations: 52.45 kB / 0.7651 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006169/0.6181, allocations: 485.8 kB / 0.7656 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.6181, allocations: 0 / 0.7656 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001739/0.6199, allocations: 0.5418 MB / 0.7661 GB, free: 5.289 MB / 0.6075 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.001139/0.621, allocations: 0.5918 MB / 0.7667 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003103/0.6241, allocations: 1.586 MB / 0.7683 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.6241, allocations: 1.031 kB / 0.7683 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.6259, allocations: 0.9399 MB / 0.7692 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002667/0.6286, allocations: 0.4985 MB / 0.7697 GB, free: 3.867 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006326/0.6349, allocations: 2.734 MB / 0.7723 GB, free: 1.711 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006963/0.6356, allocations: 0.6137 MB / 0.7729 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00137/0.6369, allocations: 352.7 kB / 0.7733 GB, free: 0.7578 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004472/0.6374, allocations: 144.5 kB / 0.7734 GB, free: 0.6172 MB / 0.6075 GB Notification: Performance of SimCode: time 1.232e-06/0.6374, allocations: 0 / 0.7734 GB, free: 0.6172 MB / 0.6075 GB Notification: Performance of Templates: time 0.05336/0.6908, allocations: 29.35 MB / 0.8021 GB, free: 3.867 MB / 0.6387 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.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.215522285550833]