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.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.002062/0.002062, allocations: 113 kB / 18.94 MB, free: 2.934 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.002605/0.002605, allocations: 208.7 kB / 22.25 MB, free: 5.082 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.564/1.564, allocations: 230.6 MB / 256 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.781/0.781, allocations: 94.56 MB / 407 MB, free: 9.203 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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.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_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_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00264/0.00264, allocations: 91.66 kB / 0.5554 GB, free: 38.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1367, allocations: 73.05 MB / 0.6268 GB, free: 15.99 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4934/0.6301, allocations: 174.4 MB / 0.7971 GB, free: 1.68 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01175/0.6418, allocations: 11.05 MB / 0.8079 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002526/0.6444, allocations: 69.28 kB / 0.8079 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003141/0.6475, allocations: 0.8038 MB / 0.8087 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004716/0.6522, allocations: 1.704 MB / 0.8104 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003157/0.6554, allocations: 1.14 MB / 0.8115 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003419/0.6588, allocations: 2.563 MB / 0.814 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005903/0.6594, allocations: 287.8 kB / 0.8143 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002024/0.6614, allocations: 1.086 MB / 0.8153 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001807/0.6632, allocations: 1.389 MB / 0.8167 GB, free: 472 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002203/0.6634, allocations: 141.9 kB / 0.8168 GB, free: 472 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004235/0.6677, allocations: 1.992 MB / 0.8188 GB, free: 16 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004285/0.6681, allocations: 368.1 kB / 0.8191 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.6693, allocations: 0.8026 MB / 0.8199 GB, free: 15.31 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.009191/0.6785, allocations: 2.619 MB / 0.8225 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.6785, allocations: 3.938 kB / 0.8225 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.124e-06/0.6785, allocations: 0 / 0.8225 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.468e-05/0.6786, allocations: 0 / 0.8225 GB, free: 13.91 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.004908/0.6835, allocations: 2.001 MB / 0.8244 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.6835, allocations: 10.16 kB / 0.8244 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003693/0.6839, allocations: 179.6 kB / 0.8246 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/0.6858, allocations: 0.9032 MB / 0.8255 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.625e-05/0.6859, allocations: 95.12 kB / 0.8256 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/0.686, allocations: 129.9 kB / 0.8257 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002707/0.6887, allocations: 1.545 MB / 0.8272 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.242e-05/0.6888, allocations: 6.297 kB / 0.8272 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/0.6889, allocations: 50.41 kB / 0.8273 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.6889, allocations: 31.84 kB / 0.8273 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002913/0.6918, allocations: 1.708 MB / 0.8289 GB, free: 9.84 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009001/0.7008, allocations: 6.183 MB / 0.835 GB, free: 4.262 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0024/0.7032, allocations: 1.2 MB / 0.8362 GB, free: 3.613 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001121/0.7043, allocations: 0.6385 MB / 0.8368 GB, free: 3.281 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004715/0.709, allocations: 2.284 MB / 0.839 GB, free: 1.672 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001413/0.7105, allocations: 0.7319 MB / 0.8397 GB, free: 1.23 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 4.038e-06/0.7105, allocations: 0 / 0.8397 GB, free: 1.23 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.008469/0.7189, allocations: 3.775 MB / 0.8434 GB, free: 15.12 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.934e-05/0.719, allocations: 76.66 kB / 0.8435 GB, free: 15.03 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.7201, allocations: 0.7127 MB / 0.8442 GB, free: 14.3 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001268/0.7202, allocations: 45.7 kB / 0.8442 GB, free: 14.25 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005366/0.7208, allocations: 0.5365 MB / 0.8448 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000507/0.7213, allocations: 455 kB / 0.8452 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003684/0.7216, allocations: 202.9 kB / 0.8454 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000232/0.7219, allocations: 349.9 kB / 0.8457 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/0.723, allocations: 0.5179 MB / 0.8462 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001255/0.7242, allocations: 0.6291 MB / 0.8468 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/0.7266, allocations: 1.251 MB / 0.8481 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.7266, allocations: 4 kB / 0.8481 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003597/0.7302, allocations: 1.6 MB / 0.8496 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.716e-05/0.7303, allocations: 39.72 kB / 0.8497 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.7303, allocations: 0 / 0.8497 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005857/0.7309, allocations: 168.7 kB / 0.8498 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.7319, allocations: 243.7 kB / 0.8501 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004523/0.7364, allocations: 2.605 MB / 0.8526 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009836/0.7374, allocations: 59.88 kB / 0.8527 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001957/0.7376, allocations: 55.97 kB / 0.8527 GB, free: 5.383 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.0006285/0.7382, allocations: 290.2 kB / 0.853 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003327/0.7386, allocations: 127.2 kB / 0.8531 GB, free: 4.969 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004788/0.7434, allocations: 2.317 MB / 0.8554 GB, free: 2.676 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-05/0.7434, allocations: 16 kB / 0.8554 GB, free: 2.66 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.7434, allocations: 4 kB / 0.8554 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.026e-05/0.7434, allocations: 7.969 kB / 0.8554 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006929/0.7503, allocations: 3.388 MB / 0.8587 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.7503, allocations: 0 / 0.8587 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.7514, allocations: 271.7 kB / 0.859 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005066/0.7519, allocations: 140.9 kB / 0.8591 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.752, allocations: 47.92 kB / 0.8591 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003165/0.7552, allocations: 2.339 MB / 0.8614 GB, free: 12.33 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.7552, allocations: 4 kB / 0.8614 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005252/0.7604, allocations: 2.615 MB / 0.864 GB, free: 9.676 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003968/0.7608, allocations: 115.1 kB / 0.8641 GB, free: 9.562 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001812/0.761, allocations: 28 kB / 0.8641 GB, free: 9.535 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006204/0.7616, allocations: 51.95 kB / 0.8642 GB, free: 9.484 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/0.7619, allocations: 125.1 kB / 0.8643 GB, free: 9.359 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.762, allocations: 55.91 kB / 0.8643 GB, free: 9.305 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007793/0.7628, allocations: 0.5233 MB / 0.8649 GB, free: 8.77 MB / 0.6231 GB Notification: Performance of sort global known variables: time 9e-08/0.7628, allocations: 0 / 0.8649 GB, free: 8.77 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001742/0.7645, allocations: 0.5149 MB / 0.8654 GB, free: 8.254 MB / 0.6231 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.001094/0.7656, allocations: 0.5757 MB / 0.8659 GB, free: 7.703 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003395/0.769, allocations: 1.559 MB / 0.8674 GB, free: 6.117 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.769, allocations: 0 / 0.8674 GB, free: 6.117 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001939/0.771, allocations: 0.9357 MB / 0.8684 GB, free: 5.172 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002157/0.7731, allocations: 393.4 kB / 0.8687 GB, free: 4.801 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005541/0.7787, allocations: 2.651 MB / 0.8713 GB, free: 2.113 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/0.7797, allocations: 1.191 MB / 0.8725 GB, free: 0.8906 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001247/0.7809, allocations: 346.5 kB / 0.8728 GB, free: 0.5977 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004252/0.7814, allocations: 151.4 kB / 0.873 GB, free: 460 kB / 0.6231 GB Notification: Performance of SimCode: time 1.242e-06/0.7814, allocations: 4 kB / 0.873 GB, free: 456 kB / 0.6231 GB Notification: Performance of Templates: time 0.05153/0.8329, allocations: 27.62 MB / 0.8999 GB, free: 5.074 MB / 0.6544 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_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_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.313179068733007]