Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_dev_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_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007976/0.007976, allocations: 100.4 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002284/0.002284, allocations: 192.2 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7668/0.7668, allocations: 93.7 MB / 384.2 MB, free: 5.285 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002564/0.002564, allocations: 87.84 kB / 0.5204 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.311, allocations: 68.25 MB / 0.5871 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.1286/0.4396, allocations: 65.09 MB / 0.6507 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0372/0.4769, allocations: 17.62 MB / 0.6679 GB, free: 7.309 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003039/0.4799, allocations: 79.5 kB / 0.6679 GB, free: 7.23 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.005177/0.4852, allocations: 1.188 MB / 0.6691 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01307/0.4983, allocations: 2.819 MB / 0.6719 GB, free: 3.199 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.007145/0.5055, allocations: 1.541 MB / 0.6734 GB, free: 1.656 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.008587/0.5141, allocations: 3.887 MB / 0.6772 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001715/0.5158, allocations: 0.6234 MB / 0.6778 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00428/0.5201, allocations: 1.607 MB / 0.6793 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003439/0.5236, allocations: 1.521 MB / 0.6808 GB, free: 9.945 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0005547/0.5242, allocations: 195.9 kB / 0.681 GB, free: 9.754 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007777/0.532, allocations: 1.678 MB / 0.6826 GB, free: 8.074 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0008472/0.5329, allocations: 489.9 kB / 0.6831 GB, free: 7.594 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.002359/0.5352, allocations: 1.255 MB / 0.6843 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.5461, allocations: 3.842 MB / 0.6881 GB, free: 2.48 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.5462, allocations: 0 / 0.6881 GB, free: 2.48 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.615e-06/0.5462, allocations: 4 kB / 0.6881 GB, free: 2.477 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.16e-05/0.5463, allocations: 0 / 0.6881 GB, free: 2.477 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: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.01048/0.5567, allocations: 3.072 MB / 0.6911 GB, free: 15.33 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.5568, allocations: 8.031 kB / 0.6911 GB, free: 15.32 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009921/0.5578, allocations: 291.2 kB / 0.6914 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004733/0.5626, allocations: 1.501 MB / 0.6928 GB, free: 13.49 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001957/0.5628, allocations: 140.1 kB / 0.693 GB, free: 13.35 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000484/0.5633, allocations: 192.3 kB / 0.6932 GB, free: 13.16 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006797/0.5701, allocations: 2.155 MB / 0.6953 GB, free: 10.98 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-05/0.5702, allocations: 7.938 kB / 0.6953 GB, free: 10.97 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002551/0.5705, allocations: 79.94 kB / 0.6953 GB, free: 10.89 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.442e-05/0.5706, allocations: 51.98 kB / 0.6954 GB, free: 10.84 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007146/0.5778, allocations: 2.267 MB / 0.6976 GB, free: 8.57 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0194/0.5972, allocations: 8.982 MB / 0.7064 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005411/0.6027, allocations: 1.909 MB / 0.7082 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002707/0.6054, allocations: 0.9828 MB / 0.7092 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01479/0.6202, allocations: 6.785 MB / 0.7158 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003017/0.6233, allocations: 0.9562 MB / 0.7168 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=200): time 6.993e-06/0.6233, allocations: 0 / 0.7168 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=200): time 0.01132/0.6346, allocations: 3.011 MB / 0.7197 GB, free: 84 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.6348, allocations: 85.45 kB / 0.7198 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003381/0.6382, allocations: 1.229 MB / 0.721 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0003553/0.6386, allocations: 61.64 kB / 0.721 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001398/0.6401, allocations: 0.884 MB / 0.7219 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00114/0.6412, allocations: 0.697 MB / 0.7226 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/0.6423, allocations: 327.5 kB / 0.7229 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002002/0.6425, allocations: 301.1 kB / 0.7232 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002343/0.6449, allocations: 0.656 MB / 0.7238 GB, free: 11.81 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002797/0.6477, allocations: 0.8833 MB / 0.7247 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005226/0.6529, allocations: 1.673 MB / 0.7263 GB, free: 9.125 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.653, allocations: 0 / 0.7263 GB, free: 9.125 MB / 0.5762 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.007944/0.6609, allocations: 2.164 MB / 0.7284 GB, free: 6.938 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.747e-05/0.6611, allocations: 41.64 kB / 0.7285 GB, free: 6.891 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.641e-05/0.6611, allocations: 8 kB / 0.7285 GB, free: 6.883 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009825/0.6621, allocations: 154.5 kB / 0.7286 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002735/0.6649, allocations: 399.4 kB / 0.729 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007838/0.6727, allocations: 4.834 MB / 0.7337 GB, free: 1.074 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00213/0.6749, allocations: 170.7 kB / 0.7339 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003739/0.6753, allocations: 87.97 kB / 0.734 GB, free: 0.8203 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.001201/0.6765, allocations: 375.2 kB / 0.7343 GB, free: 456 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007144/0.6772, allocations: 202.7 kB / 0.7345 GB, free: 252 kB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3167/0.994, allocations: 3.405 MB / 0.7379 GB, free: 139.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.187e-05/0.994, allocations: 27.09 kB / 0.7379 GB, free: 139.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.9941, allocations: 2.406 kB / 0.7379 GB, free: 139.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-05/0.9941, allocations: 11.67 kB / 0.7379 GB, free: 139.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00854/1.003, allocations: 4.774 MB / 0.7426 GB, free: 137.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/1.003, allocations: 3.656 kB / 0.7426 GB, free: 137.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001506/1.004, allocations: 400 kB / 0.7429 GB, free: 137.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005543/1.005, allocations: 166.1 kB / 0.7431 GB, free: 137.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001681/1.005, allocations: 80.39 kB / 0.7432 GB, free: 137.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003091/1.008, allocations: 4.834 MB / 0.7479 GB, free: 132.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.008, allocations: 7.875 kB / 0.7479 GB, free: 132.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00517/1.013, allocations: 3.335 MB / 0.7512 GB, free: 131.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007826/1.014, allocations: 0.5332 MB / 0.7517 GB, free: 131.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002324/1.014, allocations: 50.2 kB / 0.7517 GB, free: 131.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000752/1.015, allocations: 59.2 kB / 0.7518 GB, free: 131.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002936/1.015, allocations: 180.6 kB / 0.752 GB, free: 131 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/1.015, allocations: 89.27 kB / 0.752 GB, free: 131 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009239/1.016, allocations: 0.8605 MB / 0.7529 GB, free: 130.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.016, allocations: 0 / 0.7529 GB, free: 130.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001824/1.018, allocations: 0.8638 MB / 0.7537 GB, free: 130.5 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.001027/1.019, allocations: 0.8409 MB / 0.7546 GB, free: 130.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003319/1.023, allocations: 2.264 MB / 0.7568 GB, free: 129.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/1.023, allocations: 0 / 0.7568 GB, free: 129.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001889/1.025, allocations: 1.448 MB / 0.7582 GB, free: 128.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002728/1.027, allocations: 0.6463 MB / 0.7588 GB, free: 127.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005644/1.033, allocations: 3.922 MB / 0.7626 GB, free: 123.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000668/1.034, allocations: 1.477 MB / 0.7641 GB, free: 122.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001619/1.035, allocations: 0.4989 MB / 0.7646 GB, free: 121.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005305/1.036, allocations: 239.3 kB / 0.7648 GB, free: 121.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.122e-06/1.036, allocations: 0 / 0.7648 GB, free: 121.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.05183/1.088, allocations: 41.46 MB / 0.8053 GB, free: 80.51 MB / 0.5762 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches