Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.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.002057/0.002057, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002549/0.002549, allocations: 213.2 kB / 22.25 MB, free: 5.258 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.439/1.439, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.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.7806/0.7806, allocations: 100.9 MB / 413.3 MB, free: 2.863 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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.SpecificValveType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType") [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.00272/0.00272, allocations: 89.75 kB / 0.5646 GB, free: 35.4 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1216, allocations: 74.61 MB / 0.6374 GB, free: 5.969 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.05763/0.1792, allocations: 41.35 MB / 0.6778 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01799/0.1972, allocations: 11.37 MB / 0.6889 GB, free: 1.062 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001675/0.1989, allocations: 75.31 kB / 0.689 GB, free: 0.9883 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002903/0.2018, allocations: 1.065 MB / 0.69 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006122/0.2079, allocations: 2.129 MB / 0.6921 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003769/0.2116, allocations: 1.227 MB / 0.6933 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004375/0.216, allocations: 2.84 MB / 0.6961 GB, free: 9.699 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007458/0.2168, allocations: 278.1 kB / 0.6963 GB, free: 9.398 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002916/0.2197, allocations: 1.475 MB / 0.6978 GB, free: 7.918 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001709/0.2214, allocations: 1.03 MB / 0.6988 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0003863/0.2218, allocations: 132 kB / 0.6989 GB, free: 6.754 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003185/0.225, allocations: 1.045 MB / 0.6999 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000611/0.2256, allocations: 426.2 kB / 0.7003 GB, free: 5.289 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.2267, allocations: 0.7809 MB / 0.7011 GB, free: 4.504 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.005268/0.232, allocations: 2.891 MB / 0.7039 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.232, allocations: 0 / 0.7039 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.493e-06/0.232, allocations: 0 / 0.7039 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.605e-05/0.2321, allocations: 0 / 0.7039 GB, free: 1.602 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.00525/0.2373, allocations: 2.486 MB / 0.7064 GB, free: 15.06 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.2374, allocations: 12.03 kB / 0.7064 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008848/0.2382, allocations: 271.4 kB / 0.7066 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002718/0.241, allocations: 1.265 MB / 0.7079 GB, free: 13.48 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.2411, allocations: 102.9 kB / 0.708 GB, free: 13.38 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002284/0.2413, allocations: 131.9 kB / 0.7081 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002857/0.2441, allocations: 1.547 MB / 0.7096 GB, free: 11.64 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/0.2442, allocations: 0 / 0.7096 GB, free: 11.64 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.2443, allocations: 60 kB / 0.7097 GB, free: 11.59 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.196e-05/0.2443, allocations: 35.98 kB / 0.7097 GB, free: 11.55 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002877/0.2472, allocations: 1.568 MB / 0.7112 GB, free: 9.977 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007096/0.2543, allocations: 3.565 MB / 0.7147 GB, free: 6.352 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002424/0.2567, allocations: 1.223 MB / 0.7159 GB, free: 5.125 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.2579, allocations: 0.6164 MB / 0.7165 GB, free: 4.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004805/0.2627, allocations: 1.966 MB / 0.7184 GB, free: 2.512 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001502/0.2642, allocations: 0.783 MB / 0.7192 GB, free: 1.695 MB / 0.545 GB Notification: Performance of pre-optimization done (n=139): time 4.419e-06/0.2642, allocations: 0 / 0.7192 GB, free: 1.695 MB / 0.545 GB Notification: Performance of matching and sorting (n=139): time 0.004637/0.2689, allocations: 1.94 MB / 0.7211 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.116e-05/0.269, allocations: 132 kB / 0.7212 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/0.2708, allocations: 1.251 MB / 0.7224 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0002098/0.271, allocations: 49.7 kB / 0.7225 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007113/0.2717, allocations: 0.7184 MB / 0.7232 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005366/0.2722, allocations: 499.7 kB / 0.7236 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004005/0.2726, allocations: 246.8 kB / 0.7239 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001862/0.2728, allocations: 353.9 kB / 0.7242 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009675/0.2738, allocations: 484.1 kB / 0.7247 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.275, allocations: 0.6972 MB / 0.7254 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002259/0.2773, allocations: 1.157 MB / 0.7265 GB, free: 10 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/0.2773, allocations: 4 kB / 0.7265 GB, free: 10 MB / 0.5606 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003305/0.2806, allocations: 1.547 MB / 0.728 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.247e-05/0.2806, allocations: 33.7 kB / 0.728 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.2807, allocations: 4 kB / 0.728 GB, free: 8.383 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004519/0.2811, allocations: 113.8 kB / 0.7282 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.2822, allocations: 271.6 kB / 0.7284 GB, free: 8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00319/0.2854, allocations: 2.956 MB / 0.7313 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.2864, allocations: 119.2 kB / 0.7314 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001761/0.2866, allocations: 63.97 kB / 0.7315 GB, free: 4.66 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (149): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008088/0.2874, allocations: 385.5 kB / 0.7318 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004244/0.2878, allocations: 178.8 kB / 0.732 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004574/0.2924, allocations: 2.105 MB / 0.7341 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.781e-05/0.2924, allocations: 16 kB / 0.7341 GB, free: 2.016 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.2924, allocations: 7.938 kB / 0.7341 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.011e-05/0.2924, allocations: 7.969 kB / 0.7341 GB, free: 2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006523/0.299, allocations: 2.939 MB / 0.737 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/0.299, allocations: 7.922 kB / 0.737 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.3, allocations: 271.6 kB / 0.7372 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004104/0.3004, allocations: 105.6 kB / 0.7373 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001664/0.3006, allocations: 47.97 kB / 0.7374 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003179/0.3038, allocations: 2.963 MB / 0.7403 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3038, allocations: 0 / 0.7403 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004826/0.3086, allocations: 2.31 MB / 0.7425 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009851/0.3096, allocations: 384.2 kB / 0.7429 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003363/0.3099, allocations: 48.12 kB / 0.7429 GB, free: 8.637 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007877/0.3107, allocations: 43.98 kB / 0.743 GB, free: 8.594 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002737/0.311, allocations: 125 kB / 0.7431 GB, free: 8.473 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/0.3111, allocations: 55.97 kB / 0.7432 GB, free: 8.418 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00143/0.3125, allocations: 0.8744 MB / 0.744 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.3125, allocations: 0 / 0.744 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001822/0.3144, allocations: 0.5653 MB / 0.7446 GB, free: 6.98 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.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 (149): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002485/0.3168, allocations: 0.8258 MB / 0.7454 GB, free: 6.312 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003546/0.3204, allocations: 1.509 MB / 0.7468 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/0.3204, allocations: 4 kB / 0.7468 GB, free: 4.754 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001828/0.3222, allocations: 0.9077 MB / 0.7477 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/0.3247, allocations: 451.5 kB / 0.7482 GB, free: 3.395 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006729/0.3314, allocations: 3.193 MB / 0.7513 GB, free: 160 kB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2435/0.5749, allocations: 0.7628 MB / 0.752 GB, free: 107.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001305/0.5762, allocations: 353 kB / 0.7524 GB, free: 107.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004342/0.5766, allocations: 181.1 kB / 0.7525 GB, free: 107.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.253e-06/0.5766, allocations: 1.969 kB / 0.7525 GB, free: 107.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.04269/0.6193, allocations: 29.91 MB / 0.7817 GB, free: 94.62 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.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.8134566601365805]