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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 102.7 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001511/0.001511, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 225.6 MB / 247.8 MB, free: 3.719 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.5952/0.5952, allocations: 94.6 MB / 397.3 MB, free: 480 kB / 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-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: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002316/0.002316, allocations: 79.86 kB / 0.5416 GB, free: 14.02 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4072/0.4095, allocations: 71.85 MB / 0.6118 GB, free: 3.941 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.203/0.6125, allocations: 173.9 MB / 0.7816 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01531/0.6278, allocations: 11.01 MB / 0.7923 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001968/0.6298, allocations: 51.69 kB / 0.7924 GB, free: 12.04 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.00239/0.6322, allocations: 0.8037 MB / 0.7931 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.004916/0.6371, allocations: 1.69 MB / 0.7948 GB, free: 9.535 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003125/0.6402, allocations: 1.114 MB / 0.7959 GB, free: 8.418 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.003434/0.6437, allocations: 2.526 MB / 0.7984 GB, free: 5.883 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005631/0.6442, allocations: 305.8 kB / 0.7986 GB, free: 5.551 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001906/0.6461, allocations: 1.058 MB / 0.7997 GB, free: 4.488 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001804/0.6479, allocations: 1.386 MB / 0.801 GB, free: 3.098 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002411/0.6482, allocations: 144 kB / 0.8012 GB, free: 2.957 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004195/0.6524, allocations: 1.973 MB / 0.8031 GB, free: 0.9805 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0003478/0.6527, allocations: 362.6 kB / 0.8034 GB, free: 0.625 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0009738/0.6537, allocations: 0.8086 MB / 0.8042 GB, free: 15.81 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004573/0.6583, allocations: 2.606 MB / 0.8068 GB, free: 13.2 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.6583, allocations: 7.984 kB / 0.8068 GB, free: 13.19 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6583, allocations: 0 / 0.8068 GB, free: 13.19 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 3.104e-05/0.6583, allocations: 0 / 0.8068 GB, free: 13.19 MB / 0.6387 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.004151/0.6625, allocations: 2.077 MB / 0.8088 GB, free: 11.05 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.6625, allocations: 12.03 kB / 0.8088 GB, free: 11.04 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002134/0.6627, allocations: 181.8 kB / 0.809 GB, free: 10.85 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000341/0.663, allocations: 175.9 kB / 0.8092 GB, free: 10.68 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001707/0.6648, allocations: 0.9951 MB / 0.8101 GB, free: 9.641 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.113e-05/0.6648, allocations: 86.78 kB / 0.8102 GB, free: 9.555 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000194/0.665, allocations: 123.9 kB / 0.8103 GB, free: 9.434 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002546/0.6676, allocations: 1.524 MB / 0.8118 GB, free: 7.867 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.32e-05/0.6676, allocations: 3.938 kB / 0.8118 GB, free: 7.863 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-05/0.6677, allocations: 47.98 kB / 0.8119 GB, free: 7.816 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.6677, allocations: 32 kB / 0.8119 GB, free: 7.785 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002721/0.6704, allocations: 1.665 MB / 0.8135 GB, free: 6.113 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008019/0.6785, allocations: 6.246 MB / 0.8196 GB, free: 15.25 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002404/0.6809, allocations: 1.18 MB / 0.8208 GB, free: 14.06 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/0.6819, allocations: 0.6333 MB / 0.8214 GB, free: 13.43 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005289/0.6872, allocations: 4.01 MB / 0.8253 GB, free: 8.965 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001289/0.6885, allocations: 0.7356 MB / 0.826 GB, free: 8.215 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=128): time 3.236e-06/0.6885, allocations: 4 kB / 0.826 GB, free: 8.211 MB / 0.6544 GB Notification: Performance of matching and sorting (n=129): time 0.007472/0.696, allocations: 3.983 MB / 0.8299 GB, free: 4.141 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.047e-05/0.6961, allocations: 64.72 kB / 0.83 GB, free: 4.066 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008621/0.6969, allocations: 0.7166 MB / 0.8307 GB, free: 3.34 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 7.952e-05/0.697, allocations: 45.7 kB / 0.8307 GB, free: 3.289 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004396/0.6974, allocations: 0.5365 MB / 0.8313 GB, free: 2.746 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003794/0.6978, allocations: 456 kB / 0.8317 GB, free: 2.297 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003173/0.6981, allocations: 206.9 kB / 0.8319 GB, free: 2.086 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.6983, allocations: 345.9 kB / 0.8322 GB, free: 1.742 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009512/0.6992, allocations: 0.5218 MB / 0.8327 GB, free: 1.223 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/0.7003, allocations: 0.6173 MB / 0.8333 GB, free: 0.582 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002092/0.7024, allocations: 1.244 MB / 0.8345 GB, free: 15.31 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.7024, allocations: 4 kB / 0.8346 GB, free: 15.31 MB / 0.67 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002994/0.7054, allocations: 1.596 MB / 0.8361 GB, free: 13.7 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 4.897e-05/0.7054, allocations: 37.7 kB / 0.8361 GB, free: 13.65 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.7054, allocations: 4 kB / 0.8362 GB, free: 13.65 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004841/0.7059, allocations: 156.2 kB / 0.8363 GB, free: 13.5 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009056/0.7068, allocations: 251.6 kB / 0.8365 GB, free: 13.25 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004036/0.7109, allocations: 2.72 MB / 0.8392 GB, free: 10.39 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006877/0.7115, allocations: 52 kB / 0.8392 GB, free: 10.34 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/0.7117, allocations: 51.98 kB / 0.8393 GB, free: 10.29 MB / 0.67 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.0005771/0.7122, allocations: 297.5 kB / 0.8396 GB, free: 9.984 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002242/0.7125, allocations: 123.2 kB / 0.8397 GB, free: 9.863 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004196/0.7167, allocations: 2.307 MB / 0.8419 GB, free: 7.578 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.7167, allocations: 12 kB / 0.842 GB, free: 7.566 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.7167, allocations: 7.984 kB / 0.842 GB, free: 7.559 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.7167, allocations: 3.984 kB / 0.842 GB, free: 7.555 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00558/0.7223, allocations: 3.405 MB / 0.8453 GB, free: 4.066 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.7223, allocations: 4 kB / 0.8453 GB, free: 4.062 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009349/0.7232, allocations: 267.5 kB / 0.8456 GB, free: 3.801 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004042/0.7236, allocations: 153 kB / 0.8457 GB, free: 3.648 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.174e-05/0.7237, allocations: 47.97 kB / 0.8457 GB, free: 3.602 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002764/0.7265, allocations: 2.439 MB / 0.8481 GB, free: 1.031 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.7265, allocations: 3.938 kB / 0.8481 GB, free: 1.027 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004487/0.731, allocations: 2.605 MB / 0.8507 GB, free: 14.39 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003198/0.7313, allocations: 196.2 kB / 0.8509 GB, free: 14.18 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.7314, allocations: 28 kB / 0.8509 GB, free: 14.15 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005456/0.732, allocations: 51.95 kB / 0.8509 GB, free: 14.1 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/0.7322, allocations: 113.1 kB / 0.851 GB, free: 13.98 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.7323, allocations: 55.97 kB / 0.8511 GB, free: 13.93 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0006653/0.733, allocations: 0.5195 MB / 0.8516 GB, free: 13.4 MB / 0.6856 GB Notification: Performance of sort global known variables: time 7e-08/0.733, allocations: 0 / 0.8516 GB, free: 13.4 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001365/0.7344, allocations: 0.5149 MB / 0.8521 GB, free: 12.88 MB / 0.6856 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.005502/0.7399, allocations: 3.62 MB / 0.8556 GB, free: 9.227 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002935/0.7428, allocations: 1.547 MB / 0.8572 GB, free: 7.652 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.7428, allocations: 0 / 0.8572 GB, free: 7.652 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001704/0.7445, allocations: 0.9279 MB / 0.8581 GB, free: 6.715 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/0.7463, allocations: 385.3 kB / 0.8584 GB, free: 6.352 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3002/1.046, allocations: 10.16 MB / 0.8684 GB, free: 229.8 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006384/1.047, allocations: 1.187 MB / 0.8695 GB, free: 229.1 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001086/1.048, allocations: 351.1 kB / 0.8698 GB, free: 229.1 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006438/1.049, allocations: 0.5811 MB / 0.8704 GB, free: 228.6 MB / 0.6856 GB Notification: Performance of SimCode: time 1.042e-06/1.049, allocations: 1 kB / 0.8704 GB, free: 228.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07887/1.128, allocations: 38.63 MB / 0.9081 GB, free: 211.8 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/13.49, allocations: 7.938 kB / 0.9081 GB, free: 211.8 MB / 0.6856 GB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.842730611097068]