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.00145/0.00145, allocations: 88.72 kB / 19.44 MB, free: 356 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.001643/0.001643, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.501/1.501, allocations: 177.1 MB / 203.1 MB, free: 5.59 MB / 186.7 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 1.035/1.035, allocations: 118.6 MB / 378.2 MB, free: 1.445 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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.643e-06/1.643e-06, allocations: 0 / 482.9 MB, free: 8.332 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.485e-05/2.649e-05, allocations: 3.188 kB / 482.9 MB, free: 8.328 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.2254/0.2254, allocations: 151.4 MB / 0.6194 GB, free: 9.117 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.01751/0.2429, allocations: 10.15 MB / 0.6293 GB, free: 14.93 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001641/0.2445, allocations: 71.38 kB / 0.6294 GB, free: 14.86 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.002829/0.2474, allocations: 0.7449 MB / 0.6301 GB, free: 14.11 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.006202/0.2536, allocations: 1.852 MB / 0.632 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.004296/0.2579, allocations: 1.152 MB / 0.6331 GB, free: 11.09 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.005139/0.263, allocations: 2.781 MB / 0.6358 GB, free: 8.301 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001002/0.264, allocations: 294.2 kB / 0.6361 GB, free: 7.98 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004633/0.2686, allocations: 1.523 MB / 0.6376 GB, free: 6.453 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003026/0.2717, allocations: 1.263 MB / 0.6388 GB, free: 5.188 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0006636/0.2723, allocations: 140 kB / 0.6389 GB, free: 5.051 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005316/0.2777, allocations: 1.7 MB / 0.6406 GB, free: 3.348 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0006788/0.2783, allocations: 378.5 kB / 0.6409 GB, free: 2.977 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.001806/0.2801, allocations: 0.6002 MB / 0.6415 GB, free: 2.375 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.3245/0.6046, allocations: 2.713 MB / 0.6442 GB, free: 18.82 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.6046, allocations: 0.9375 kB / 0.6442 GB, free: 18.82 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.653e-06/0.6046, allocations: 0 / 0.6442 GB, free: 18.82 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 8.762e-05/0.6047, allocations: 0 / 0.6442 GB, free: 18.82 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: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.005012/0.6097, allocations: 2.031 MB / 0.6462 GB, free: 17.98 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.6098, allocations: 9.812 kB / 0.6462 GB, free: 17.98 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007895/0.6106, allocations: 322.8 kB / 0.6465 GB, free: 17.87 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001781/0.6124, allocations: 0.9824 MB / 0.6474 GB, free: 17.56 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.737e-05/0.6124, allocations: 93.53 kB / 0.6475 GB, free: 17.56 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002016/0.6126, allocations: 122.1 kB / 0.6477 GB, free: 17.56 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002608/0.6153, allocations: 1.546 MB / 0.6492 GB, free: 17.44 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.6153, allocations: 0.6875 kB / 0.6492 GB, free: 17.44 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/0.6154, allocations: 53.47 kB / 0.6492 GB, free: 17.43 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.692e-05/0.6154, allocations: 29.34 kB / 0.6492 GB, free: 17.43 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002568/0.618, allocations: 1.706 MB / 0.6509 GB, free: 17.42 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005946/0.6239, allocations: 3.582 MB / 0.6544 GB, free: 16.72 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002175/0.6261, allocations: 1.191 MB / 0.6556 GB, free: 16.69 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009435/0.6271, allocations: 0.6342 MB / 0.6562 GB, free: 16.68 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003967/0.631, allocations: 2.079 MB / 0.6582 GB, free: 16.38 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001292/0.6323, allocations: 0.7339 MB / 0.6589 GB, free: 16.33 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=128): time 4.578e-06/0.6323, allocations: 5.016 kB / 0.6589 GB, free: 16.32 MB / 0.5573 GB Notification: Performance of matching and sorting (n=129): time 0.008013/0.6403, allocations: 3.854 MB / 0.6627 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.6404, allocations: 66.62 kB / 0.6628 GB, free: 15.73 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009966/0.6414, allocations: 0.6936 MB / 0.6634 GB, free: 15.6 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.522e-05/0.6415, allocations: 48.84 kB / 0.6635 GB, free: 15.57 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004524/0.6419, allocations: 0.5493 MB / 0.664 GB, free: 15.33 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003566/0.6423, allocations: 460.2 kB / 0.6645 GB, free: 15.03 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003767/0.6427, allocations: 205.7 kB / 0.6647 GB, free: 15.01 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.6428, allocations: 347.2 kB / 0.665 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.6439, allocations: 0.5455 MB / 0.6655 GB, free: 14.67 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001225/0.6451, allocations: 0.6563 MB / 0.6662 GB, free: 14.57 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002411/0.6475, allocations: 1.257 MB / 0.6674 GB, free: 14.46 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.6475, allocations: 0.5938 kB / 0.6674 GB, free: 14.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004091/0.6516, allocations: 1.708 MB / 0.6691 GB, free: 14.25 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.198e-05/0.6517, allocations: 35.06 kB / 0.6691 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.6517, allocations: 3.062 kB / 0.6691 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007079/0.6524, allocations: 169.4 kB / 0.6693 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009851/0.6534, allocations: 247.1 kB / 0.6695 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003868/0.6572, allocations: 2.568 MB / 0.672 GB, free: 12.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009041/0.6581, allocations: 50.72 kB / 0.6721 GB, free: 12.85 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001677/0.6583, allocations: 52.89 kB / 0.6721 GB, free: 12.85 MB / 0.5573 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.0006427/0.659, allocations: 289 kB / 0.6724 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005251/0.6595, allocations: 194 kB / 0.6726 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004626/0.6641, allocations: 2.312 MB / 0.6748 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/0.6641, allocations: 18.97 kB / 0.6748 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.6641, allocations: 3.438 kB / 0.6748 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.806e-05/0.6642, allocations: 10.52 kB / 0.6749 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005272/0.6694, allocations: 3.076 MB / 0.6779 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.6694, allocations: 3.094 kB / 0.6779 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009437/0.6704, allocations: 269.8 kB / 0.6781 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005225/0.6709, allocations: 153.4 kB / 0.6783 GB, free: 12.09 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.326e-05/0.671, allocations: 47.3 kB / 0.6783 GB, free: 12.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003245/0.6742, allocations: 2.303 MB / 0.6806 GB, free: 26.73 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.6742, allocations: 0 / 0.6806 GB, free: 26.73 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004368/0.6786, allocations: 2.689 MB / 0.6832 GB, free: 26.41 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006307/0.6792, allocations: 293.3 kB / 0.6835 GB, free: 26.34 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001592/0.6794, allocations: 30.42 kB / 0.6835 GB, free: 26.34 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006089/0.68, allocations: 51.41 kB / 0.6835 GB, free: 26.34 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002269/0.6802, allocations: 122.5 kB / 0.6837 GB, free: 26.33 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.6803, allocations: 56.22 kB / 0.6837 GB, free: 26.33 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0005499/0.6809, allocations: 0.4913 MB / 0.6842 GB, free: 26.22 MB / 0.573 GB Notification: Performance of sort global known variables: time 8e-08/0.6809, allocations: 0 / 0.6842 GB, free: 26.22 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001471/0.6824, allocations: 0.5384 MB / 0.6847 GB, free: 26.18 MB / 0.573 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.0009892/0.6833, allocations: 0.5946 MB / 0.6853 GB, free: 26.03 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002976/0.6863, allocations: 1.584 MB / 0.6868 GB, free: 25.78 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.6863, allocations: 2.047 kB / 0.6868 GB, free: 25.78 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001548/0.6879, allocations: 0.9344 MB / 0.6878 GB, free: 25.64 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002377/0.6902, allocations: 0.5306 MB / 0.6883 GB, free: 25.57 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005357/0.6956, allocations: 2.806 MB / 0.691 GB, free: 24.57 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005177/0.6961, allocations: 0.61 MB / 0.6916 GB, free: 24.44 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001111/0.6972, allocations: 358.6 kB / 0.692 GB, free: 24.37 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000376/0.6976, allocations: 156.9 kB / 0.6921 GB, free: 24.36 MB / 0.573 GB Notification: Performance of SimCode: time 9.42e-07/0.6976, allocations: 0 / 0.6921 GB, free: 24.36 MB / 0.573 GB Notification: Performance of Templates: time 0.04263/0.7402, allocations: 29.63 MB / 0.721 GB, free: 14.83 MB / 0.573 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.484817418036982]