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.001375/0.001375, 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.002496/0.002496, allocations: 161.7 kB / 22.76 MB, free: 1.68 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.548/1.548, allocations: 177.1 MB / 203.1 MB, free: 5.605 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.028/1.028, allocations: 118.6 MB / 378.2 MB, free: 1.492 MB / 346.7 MB " [Timeout remaining time 179] 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.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: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 482.9 MB, free: 8.293 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.537e-05/3.705e-05, allocations: 2.312 kB / 482.9 MB, free: 8.289 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.2506/0.2507, allocations: 151.4 MB / 0.6194 GB, free: 9.148 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.01785/0.2685, allocations: 10.16 MB / 0.6294 GB, free: 14.96 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002009/0.2705, allocations: 71.38 kB / 0.6294 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.002581/0.2731, allocations: 0.7371 MB / 0.6301 GB, free: 14.14 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.005978/0.2791, allocations: 1.855 MB / 0.632 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.004122/0.2832, allocations: 1.152 MB / 0.6331 GB, free: 11.12 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.005017/0.2882, allocations: 2.793 MB / 0.6358 GB, free: 8.316 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007282/0.2889, allocations: 290.3 kB / 0.6361 GB, free: 8 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003247/0.2922, allocations: 1.523 MB / 0.6376 GB, free: 6.473 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002314/0.2945, allocations: 1.255 MB / 0.6388 GB, free: 5.215 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002946/0.2948, allocations: 144 kB / 0.6389 GB, free: 5.074 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004688/0.2995, allocations: 1.692 MB / 0.6406 GB, free: 3.379 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0006372/0.3001, allocations: 382.5 kB / 0.6409 GB, free: 3.004 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.001099/0.3012, allocations: 0.6002 MB / 0.6415 GB, free: 2.402 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.2923/0.5935, allocations: 2.712 MB / 0.6442 GB, free: 18.82 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.5935, allocations: 0 / 0.6442 GB, free: 18.82 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.904e-06/0.5935, allocations: 0.8438 kB / 0.6442 GB, free: 18.82 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.697e-05/0.5936, 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.004577/0.5982, allocations: 2.034 MB / 0.6462 GB, free: 17.98 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.5982, allocations: 10.38 kB / 0.6462 GB, free: 17.98 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007376/0.599, allocations: 319.9 kB / 0.6465 GB, free: 17.86 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00171/0.6007, allocations: 0.9809 MB / 0.6474 GB, free: 17.56 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.036e-05/0.6008, allocations: 92.81 kB / 0.6475 GB, free: 17.55 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002043/0.601, allocations: 118.1 kB / 0.6476 GB, free: 17.55 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/0.6036, allocations: 1.552 MB / 0.6492 GB, free: 17.43 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.6036, allocations: 0 / 0.6492 GB, free: 17.43 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/0.6037, allocations: 52.5 kB / 0.6492 GB, free: 17.43 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-05/0.6038, allocations: 29.03 kB / 0.6492 GB, free: 17.43 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0026/0.6064, allocations: 1.705 MB / 0.6509 GB, free: 17.41 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00552/0.6119, allocations: 3.591 MB / 0.6544 GB, free: 16.71 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002166/0.6141, allocations: 1.182 MB / 0.6556 GB, free: 16.68 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001101/0.6152, allocations: 0.6353 MB / 0.6562 GB, free: 16.67 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004202/0.6194, allocations: 2.077 MB / 0.6582 GB, free: 16.38 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001236/0.6206, allocations: 0.7357 MB / 0.6589 GB, free: 16.32 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=128): time 4.188e-06/0.6206, allocations: 2.719 kB / 0.6589 GB, free: 16.32 MB / 0.5573 GB Notification: Performance of matching and sorting (n=129): time 0.007764/0.6284, allocations: 3.854 MB / 0.6627 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.6284, allocations: 66.31 kB / 0.6628 GB, free: 15.73 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009048/0.6293, allocations: 0.6922 MB / 0.6634 GB, free: 15.6 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.299e-05/0.6294, allocations: 51.08 kB / 0.6635 GB, free: 15.57 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004149/0.6298, allocations: 0.5508 MB / 0.664 GB, free: 15.33 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003052/0.6301, allocations: 462.3 kB / 0.6645 GB, free: 15.03 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003545/0.6305, allocations: 206.1 kB / 0.6647 GB, free: 15.01 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 9.187e-05/0.6306, allocations: 347.5 kB / 0.665 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.6316, allocations: 0.546 MB / 0.6655 GB, free: 14.67 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.6328, allocations: 0.6548 MB / 0.6662 GB, free: 14.57 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002211/0.635, allocations: 1.255 MB / 0.6674 GB, free: 14.46 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.635, allocations: 1.062 kB / 0.6674 GB, free: 14.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00367/0.6387, allocations: 1.704 MB / 0.6691 GB, free: 14.25 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.269e-05/0.6387, allocations: 35.16 kB / 0.6691 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.6387, allocations: 5.891 kB / 0.6691 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007035/0.6394, allocations: 169 kB / 0.6693 GB, free: 14.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.6405, allocations: 249 kB / 0.6695 GB, free: 14.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003911/0.6444, allocations: 2.575 MB / 0.672 GB, free: 12.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008817/0.6453, allocations: 49.55 kB / 0.6721 GB, free: 12.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001736/0.6454, allocations: 50.88 kB / 0.6721 GB, free: 12.84 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.0005847/0.646, allocations: 288.5 kB / 0.6724 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000499/0.6465, allocations: 190 kB / 0.6726 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004566/0.6511, allocations: 2.316 MB / 0.6748 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.6511, allocations: 18.06 kB / 0.6748 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.6511, allocations: 5.828 kB / 0.6748 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.6511, allocations: 6 kB / 0.6749 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005008/0.6561, allocations: 3.076 MB / 0.6779 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.6561, allocations: 1 kB / 0.6779 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009533/0.6571, allocations: 270 kB / 0.6781 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005112/0.6576, allocations: 152.8 kB / 0.6783 GB, free: 12.1 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.582e-05/0.6577, allocations: 49.73 kB / 0.6783 GB, free: 12.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002943/0.6606, allocations: 2.305 MB / 0.6806 GB, free: 26.73 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.6606, allocations: 0 / 0.6806 GB, free: 26.73 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004307/0.6649, allocations: 2.684 MB / 0.6832 GB, free: 26.41 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005694/0.6655, allocations: 294.3 kB / 0.6835 GB, free: 26.34 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.6657, allocations: 29.19 kB / 0.6835 GB, free: 26.34 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006236/0.6663, allocations: 52.36 kB / 0.6835 GB, free: 26.34 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002354/0.6665, allocations: 129.9 kB / 0.6837 GB, free: 26.33 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.6666, allocations: 50.64 kB / 0.6837 GB, free: 26.33 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0005616/0.6672, allocations: 498.8 kB / 0.6842 GB, free: 26.22 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6672, allocations: 0.8438 kB / 0.6842 GB, free: 26.22 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001527/0.6687, allocations: 0.539 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.0008837/0.6696, allocations: 0.5969 MB / 0.6853 GB, free: 26.03 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002785/0.6724, 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.567e-06/0.6724, allocations: 3.5 kB / 0.6868 GB, free: 25.78 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.6739, allocations: 0.9299 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.002294/0.6762, allocations: 0.5376 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.00529/0.6815, allocations: 2.798 MB / 0.691 GB, free: 24.57 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005292/0.682, allocations: 0.6147 MB / 0.6916 GB, free: 24.44 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001205/0.6832, allocations: 358.9 kB / 0.692 GB, free: 24.37 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003923/0.6836, allocations: 156 kB / 0.6921 GB, free: 24.36 MB / 0.573 GB Notification: Performance of SimCode: time 1.383e-06/0.6836, allocations: 3.094 kB / 0.6921 GB, free: 24.36 MB / 0.573 GB Notification: Performance of Templates: time 0.04166/0.7253, allocations: 29.62 MB / 0.721 GB, free: 14.8 MB / 0.573 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.538603767985478]