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.0008037/0.0008037, allocations: 80.53 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007652/0.0007652, allocations: 173.9 kB / 23.21 MB, free: 1.355 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 0.8386/0.8386, allocations: 177.1 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.4713/0.4713, allocations: 80.18 MB / 340.1 MB, free: 7.559 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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.233e-06/1.233e-06, allocations: 0 / 0.4936 GB, free: 6.332 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.694e-05/1.818e-05, allocations: 3.531 kB / 0.4936 GB, free: 6.328 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1262/0.1262, allocations: 151.4 MB / 0.6414 GB, free: 56 kB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.2381/0.3643, allocations: 10.13 MB / 0.6513 GB, free: 4.359 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006118/0.3649, allocations: 72.27 kB / 0.6514 GB, free: 4.359 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.001098/0.366, allocations: 0.7408 MB / 0.6521 GB, free: 4.336 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.002269/0.3683, allocations: 1.836 MB / 0.6539 GB, free: 4.273 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.001509/0.3698, allocations: 1.155 MB / 0.655 GB, free: 4.25 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.001894/0.3717, allocations: 2.781 MB / 0.6578 GB, free: 3.668 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003678/0.3721, allocations: 275.6 kB / 0.658 GB, free: 3.586 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001194/0.3732, allocations: 1.515 MB / 0.6595 GB, free: 3.434 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009819/0.3742, allocations: 1.257 MB / 0.6607 GB, free: 3.328 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.3744, allocations: 143.3 kB / 0.6609 GB, free: 3.328 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001903/0.3763, allocations: 1.692 MB / 0.6625 GB, free: 3.219 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.3765, allocations: 379.3 kB / 0.6629 GB, free: 3.148 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0004858/0.377, allocations: 0.5964 MB / 0.6635 GB, free: 3.082 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001901/0.3789, allocations: 2.697 MB / 0.6661 GB, free: 2.812 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.3789, allocations: 1.031 kB / 0.6661 GB, free: 2.812 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3789, allocations: 0 / 0.6661 GB, free: 2.812 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.325e-05/0.3789, allocations: 0 / 0.6661 GB, free: 2.812 MB / 0.5417 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.001946/0.3808, allocations: 1.997 MB / 0.668 GB, free: 1.887 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.3809, allocations: 13.12 kB / 0.6681 GB, free: 1.887 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002277/0.3811, allocations: 190.2 kB / 0.6682 GB, free: 1.797 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008779/0.382, allocations: 0.9202 MB / 0.6691 GB, free: 1.484 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.796e-05/0.382, allocations: 87.19 kB / 0.6692 GB, free: 1.48 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.3821, allocations: 125.4 kB / 0.6693 GB, free: 1.477 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.3835, allocations: 1.551 MB / 0.6708 GB, free: 1.355 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.3835, allocations: 3.094 kB / 0.6709 GB, free: 1.355 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.377e-05/0.3836, allocations: 52.09 kB / 0.6709 GB, free: 1.352 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.3836, allocations: 29.38 kB / 0.6709 GB, free: 1.352 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.3851, allocations: 1.7 MB / 0.6726 GB, free: 1.336 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003203/0.3883, allocations: 3.549 MB / 0.6761 GB, free: 0.6289 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.3896, allocations: 1.188 MB / 0.6772 GB, free: 0.582 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006425/0.3903, allocations: 0.6383 MB / 0.6778 GB, free: 0.5664 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002134/0.3924, allocations: 2.066 MB / 0.6799 GB, free: 268 kB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007332/0.3931, allocations: 0.7399 MB / 0.6806 GB, free: 216 kB / 0.5417 GB Notification: Performance of pre-optimization done (n=128): time 2.454e-06/0.3931, allocations: 1.094 kB / 0.6806 GB, free: 216 kB / 0.5417 GB Notification: Performance of matching and sorting (n=129): time 0.004376/0.3975, allocations: 3.783 MB / 0.6843 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/0.3976, allocations: 64.53 kB / 0.6843 GB, free: 15.63 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004403/0.398, allocations: 0.6667 MB / 0.685 GB, free: 15.49 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.658e-05/0.3981, allocations: 45.48 kB / 0.685 GB, free: 15.46 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002634/0.3983, allocations: 0.551 MB / 0.6856 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002224/0.3985, allocations: 455.4 kB / 0.686 GB, free: 14.92 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001927/0.3987, allocations: 205.7 kB / 0.6862 GB, free: 14.91 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 9.33e-05/0.3988, allocations: 350.1 kB / 0.6865 GB, free: 14.6 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005673/0.3994, allocations: 0.5454 MB / 0.6871 GB, free: 14.57 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006349/0.4, allocations: 0.6581 MB / 0.6877 GB, free: 14.46 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.4013, allocations: 1.254 MB / 0.6889 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4013, allocations: 0 / 0.6889 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001739/0.403, allocations: 1.639 MB / 0.6905 GB, free: 14.16 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/0.4031, allocations: 36.7 kB / 0.6906 GB, free: 14.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.4031, allocations: 1 kB / 0.6906 GB, free: 14.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002835/0.4034, allocations: 158.1 kB / 0.6907 GB, free: 14.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004482/0.4038, allocations: 246.8 kB / 0.691 GB, free: 14.11 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/0.406, allocations: 2.566 MB / 0.6935 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/0.4063, allocations: 47.7 kB / 0.6935 GB, free: 12.53 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.332e-05/0.4064, allocations: 54.84 kB / 0.6936 GB, free: 12.52 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.0003136/0.4067, allocations: 288.8 kB / 0.6938 GB, free: 12.31 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000166/0.4068, allocations: 131.3 kB / 0.694 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002544/0.4094, allocations: 2.328 MB / 0.6962 GB, free: 11.27 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.4094, allocations: 17.03 kB / 0.6962 GB, free: 11.27 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.4094, allocations: 0 / 0.6962 GB, free: 11.27 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.4094, allocations: 11.8 kB / 0.6963 GB, free: 11.27 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003424/0.4128, allocations: 3.051 MB / 0.6992 GB, free: 9.906 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.4128, allocations: 3.688 kB / 0.6992 GB, free: 9.906 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004781/0.4133, allocations: 264.1 kB / 0.6995 GB, free: 9.895 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002283/0.4135, allocations: 142.8 kB / 0.6996 GB, free: 9.859 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.935e-05/0.4136, allocations: 45.59 kB / 0.6997 GB, free: 9.836 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00159/0.4152, allocations: 2.277 MB / 0.7019 GB, free: 8.031 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4152, allocations: 1.312 kB / 0.7019 GB, free: 8.031 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/0.4179, allocations: 2.62 MB / 0.7045 GB, free: 6.852 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 9.044e-05/0.418, allocations: 109.6 kB / 0.7046 GB, free: 6.777 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.024e-05/0.4181, allocations: 30.48 kB / 0.7046 GB, free: 6.758 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002848/0.4184, allocations: 52.89 kB / 0.7046 GB, free: 6.738 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.4185, allocations: 124.2 kB / 0.7048 GB, free: 6.719 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.872e-05/0.4186, allocations: 53.02 kB / 0.7048 GB, free: 6.707 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003383/0.4189, allocations: 480.6 kB / 0.7053 GB, free: 6.508 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8e-08/0.4189, allocations: 2.969 kB / 0.7053 GB, free: 6.508 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0008737/0.4198, allocations: 0.5342 MB / 0.7058 GB, free: 6.398 MB / 0.5573 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.0006761/0.4205, allocations: 0.5985 MB / 0.7064 GB, free: 6.207 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001781/0.4223, allocations: 1.588 MB / 0.7079 GB, free: 5.527 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4223, allocations: 0 / 0.7079 GB, free: 5.527 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.4233, allocations: 0.9282 MB / 0.7088 GB, free: 5.148 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.4245, allocations: 0.5109 MB / 0.7093 GB, free: 4.98 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003129/0.4276, allocations: 2.779 MB / 0.712 GB, free: 3.707 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.428, allocations: 0.6028 MB / 0.7126 GB, free: 3.551 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005363/0.4286, allocations: 164.3 kB / 0.7128 GB, free: 3.512 MB / 0.5573 GB Notification: Performance of SimCode: time 4.41e-07/0.4286, allocations: 3.188 kB / 0.7128 GB, free: 3.512 MB / 0.5573 GB Notification: Performance of Templates: time 0.02194/0.4505, allocations: 31.24 MB / 0.7433 GB, free: 7.562 MB / 0.5886 GB " [Timeout remaining time 660] 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: 6.677137546241283]