Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.002023/0.002023, 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.002467/0.002467, allocations: 208.3 kB / 22.25 MB, free: 5.086 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.513/1.513, allocations: 230.6 MB / 256 MB, free: 8.016 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.8116/0.8116, allocations: 94.55 MB / 407 MB, free: 9.191 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.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [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.03 kB / 0.5554 GB, free: 38.61 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1211, allocations: 73.05 MB / 0.6268 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.07574/0.1968, allocations: 66.38 MB / 0.6916 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02448/0.2213, allocations: 17.71 MB / 0.7089 GB, free: 11.6 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002265/0.2235, allocations: 111 kB / 0.709 GB, free: 11.49 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003335/0.2269, allocations: 1.191 MB / 0.7102 GB, free: 10.29 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008435/0.2353, allocations: 2.882 MB / 0.713 GB, free: 7.391 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005143/0.2405, allocations: 1.589 MB / 0.7145 GB, free: 5.797 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.006563/0.247, allocations: 3.926 MB / 0.7184 GB, free: 1.852 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001037/0.2481, allocations: 391 kB / 0.7187 GB, free: 1.441 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003706/0.2518, allocations: 1.673 MB / 0.7204 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002559/0.2543, allocations: 1.571 MB / 0.7219 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.000463/0.2548, allocations: 192 kB / 0.7221 GB, free: 14 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005116/0.2599, allocations: 1.755 MB / 0.7238 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0006466/0.2605, allocations: 0.4978 MB / 0.7243 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001706/0.2623, allocations: 1.255 MB / 0.7255 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.007636/0.2699, allocations: 3.837 MB / 0.7293 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2699, allocations: 0 / 0.7293 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.753e-06/0.2699, allocations: 0 / 0.7293 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.179e-05/0.2699, allocations: 4 kB / 0.7293 GB, free: 6.621 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.006607/0.2766, allocations: 3.005 MB / 0.7322 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.2766, allocations: 11.97 kB / 0.7322 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005857/0.2772, allocations: 291.2 kB / 0.7325 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00286/0.28, allocations: 1.378 MB / 0.7338 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.2802, allocations: 140.1 kB / 0.734 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002911/0.2804, allocations: 196.3 kB / 0.7342 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003898/0.2843, allocations: 2.198 MB / 0.7363 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.128e-05/0.2844, allocations: 4 kB / 0.7363 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001545/0.2845, allocations: 79.98 kB / 0.7364 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-05/0.2846, allocations: 44 kB / 0.7364 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004121/0.2887, allocations: 2.345 MB / 0.7387 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01262/0.3013, allocations: 8.93 MB / 0.7474 GB, free: 3.008 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00359/0.3049, allocations: 1.793 MB / 0.7492 GB, free: 1.199 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001801/0.3067, allocations: 0.8891 MB / 0.7501 GB, free: 316 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.273/0.5797, allocations: 3.172 MB / 0.7532 GB, free: 117.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001645/0.5814, allocations: 0.9613 MB / 0.7541 GB, free: 117.3 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 4.148e-06/0.5814, allocations: 0 / 0.7541 GB, free: 117.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.006009/0.5874, allocations: 2.798 MB / 0.7568 GB, free: 116.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.5874, allocations: 73.14 kB / 0.7569 GB, free: 116.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001421/0.5889, allocations: 1.236 MB / 0.7581 GB, free: 115.8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.589, allocations: 61.98 kB / 0.7582 GB, free: 115.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005123/0.5895, allocations: 0.8766 MB / 0.759 GB, free: 115.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004174/0.5899, allocations: 0.6938 MB / 0.7597 GB, free: 114.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004202/0.5904, allocations: 328 kB / 0.76 GB, free: 114.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.181e-05/0.5904, allocations: 308.8 kB / 0.7603 GB, free: 114.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.5915, allocations: 0.6592 MB / 0.7609 GB, free: 114 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001291/0.5928, allocations: 0.8935 MB / 0.7618 GB, free: 113.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003231/0.596, allocations: 1.68 MB / 0.7635 GB, free: 112.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/0.596, allocations: 1.562 kB / 0.7635 GB, free: 112.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004533/0.6006, allocations: 2.176 MB / 0.7656 GB, free: 111.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.582e-05/0.6006, allocations: 38.59 kB / 0.7656 GB, free: 111.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.6006, allocations: 3.719 kB / 0.7656 GB, free: 111.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006025/0.6012, allocations: 159.3 kB / 0.7658 GB, free: 111.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001644/0.6029, allocations: 403 kB / 0.7662 GB, free: 111.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002977/0.6059, allocations: 4.534 MB / 0.7706 GB, free: 107.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001248/0.6071, allocations: 167.7 kB / 0.7708 GB, free: 107.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001892/0.6073, allocations: 88.66 kB / 0.7708 GB, free: 107.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (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.0007508/0.6081, allocations: 362.5 kB / 0.7712 GB, free: 107.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000417/0.6085, allocations: 205.3 kB / 0.7714 GB, free: 107 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005375/0.6138, allocations: 3.428 MB / 0.7747 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/0.6139, allocations: 27.47 kB / 0.7748 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.6139, allocations: 0 / 0.7748 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.487e-05/0.6139, allocations: 11.16 kB / 0.7748 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007083/0.621, allocations: 4.755 MB / 0.7794 GB, free: 103.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.597e-06/0.621, allocations: 3.969 kB / 0.7794 GB, free: 103.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/0.6222, allocations: 399.6 kB / 0.7798 GB, free: 103.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004641/0.6227, allocations: 166.2 kB / 0.78 GB, free: 103 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001342/0.6228, allocations: 71.61 kB / 0.78 GB, free: 102.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002783/0.6256, allocations: 4.54 MB / 0.7845 GB, free: 98.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.6256, allocations: 3.938 kB / 0.7845 GB, free: 98.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005238/0.6308, allocations: 3.353 MB / 0.7877 GB, free: 96.79 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008961/0.6317, allocations: 466.5 kB / 0.7882 GB, free: 96.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003252/0.6321, allocations: 54 kB / 0.7882 GB, free: 96.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009369/0.633, allocations: 60.98 kB / 0.7883 GB, free: 96.35 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002649/0.6333, allocations: 177.6 kB / 0.7885 GB, free: 96.18 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001541/0.6334, allocations: 87.95 kB / 0.7885 GB, free: 96.09 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009911/0.6344, allocations: 0.8678 MB / 0.7894 GB, free: 95.24 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.6344, allocations: 0 / 0.7894 GB, free: 95.24 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002105/0.6365, allocations: 0.8654 MB / 0.7902 GB, free: 94.41 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.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 (225): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (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.001108/0.6376, allocations: 0.8459 MB / 0.7911 GB, free: 93.76 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003626/0.6412, allocations: 2.161 MB / 0.7932 GB, free: 91.55 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.6412, allocations: 0 / 0.7932 GB, free: 91.55 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002028/0.6433, allocations: 1.369 MB / 0.7945 GB, free: 90.15 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003036/0.6463, allocations: 0.651 MB / 0.7951 GB, free: 89.54 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006055/0.6524, allocations: 3.929 MB / 0.799 GB, free: 85.57 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006563/0.653, allocations: 1.475 MB / 0.8004 GB, free: 84.06 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001565/0.6546, allocations: 0.4964 MB / 0.8009 GB, free: 83.64 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005345/0.6551, allocations: 243.3 kB / 0.8011 GB, free: 83.41 MB / 0.5762 GB Notification: Performance of SimCode: time 1.012e-06/0.6551, allocations: 0 / 0.8011 GB, free: 83.41 MB / 0.5762 GB Notification: Performance of Templates: time 0.05741/0.7125, allocations: 42.99 MB / 0.8431 GB, free: 40.71 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.666945460718125]