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.001282/0.001282, allocations: 72.45 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.001071/0.001071, allocations: 173.9 kB / 22.46 MB, free: 2.09 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 1.188/1.188, allocations: 177.1 MB / 202.8 MB, free: 5.707 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.8745/0.8745, allocations: 80.17 MB / 339.4 MB, free: 7.539 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: "" <> 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 1.994e-06/1.994e-06, allocations: 0 / 0.4924 GB, free: 6.633 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.953e-05/2.152e-05, allocations: 2.281 kB / 0.4924 GB, free: 6.629 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.2443/0.2444, allocations: 151.4 MB / 0.6402 GB, free: 0.5312 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.6932/0.9376, allocations: 10.13 MB / 0.6501 GB, free: 3.562 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003412/0.941, allocations: 67.78 kB / 0.6502 GB, free: 3.562 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.00406/0.9451, allocations: 0.7423 MB / 0.6509 GB, free: 3.539 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.01045/0.9555, allocations: 1.834 MB / 0.6527 GB, free: 3.48 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.006643/0.9622, allocations: 1.157 MB / 0.6538 GB, free: 3.453 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.008884/0.971, allocations: 2.775 MB / 0.6565 GB, free: 2.883 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001441/0.9725, allocations: 282.3 kB / 0.6568 GB, free: 2.801 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006508/0.979, allocations: 1.505 MB / 0.6583 GB, free: 2.652 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003549/0.9825, allocations: 1.258 MB / 0.6595 GB, free: 2.551 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0004866/0.983, allocations: 142.5 kB / 0.6596 GB, free: 2.551 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007532/0.9906, allocations: 1.696 MB / 0.6613 GB, free: 2.438 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0006697/0.9912, allocations: 384.3 kB / 0.6616 GB, free: 2.367 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.00239/0.9936, allocations: 0.5966 MB / 0.6622 GB, free: 2.297 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01037/1.004, allocations: 2.694 MB / 0.6649 GB, free: 2.023 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.474e-05/1.004, allocations: 0.875 kB / 0.6649 GB, free: 2.023 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.669e-06/1.004, allocations: 0 / 0.6649 GB, free: 2.023 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001071/1.004, allocations: 3.156 kB / 0.6649 GB, free: 2.023 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.005553/1.01, allocations: 1.995 MB / 0.6668 GB, free: 1.105 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 9.795e-05/1.01, allocations: 14.27 kB / 0.6668 GB, free: 1.105 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002253/1.01, allocations: 180 kB / 0.667 GB, free: 1.062 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005685/1.011, allocations: 187.6 kB / 0.6672 GB, free: 0.9727 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/1.012, allocations: 0.9088 MB / 0.6681 GB, free: 0.6641 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.443e-05/1.012, allocations: 94.66 kB / 0.6682 GB, free: 0.6562 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001924/1.013, allocations: 124.9 kB / 0.6683 GB, free: 0.6523 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00261/1.015, allocations: 1.549 MB / 0.6698 GB, free: 0.5312 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.908e-05/1.015, allocations: 3.938 kB / 0.6698 GB, free: 0.5273 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.387e-05/1.015, allocations: 52.25 kB / 0.6698 GB, free: 0.5273 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.768e-05/1.015, allocations: 30.23 kB / 0.6699 GB, free: 0.5273 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002526/1.018, allocations: 1.704 MB / 0.6715 GB, free: 0.5117 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006705/1.025, allocations: 3.717 MB / 0.6752 GB, free: 15.76 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002225/1.027, allocations: 1.187 MB / 0.6763 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/1.028, allocations: 0.6336 MB / 0.6769 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004313/1.032, allocations: 2.07 MB / 0.679 GB, free: 15.4 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001317/1.034, allocations: 0.7455 MB / 0.6797 GB, free: 15.34 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=128): time 8.846e-06/1.034, allocations: 0 / 0.6797 GB, free: 15.34 MB / 0.5573 GB Notification: Performance of matching and sorting (n=129): time 0.008144/1.042, allocations: 3.783 MB / 0.6834 GB, free: 14.82 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/1.042, allocations: 67.31 kB / 0.6834 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/1.043, allocations: 0.7189 MB / 0.6841 GB, free: 14.63 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.191e-05/1.043, allocations: 53.02 kB / 0.6842 GB, free: 14.59 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005171/1.043, allocations: 0.5318 MB / 0.6847 GB, free: 14.37 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003764/1.044, allocations: 466.8 kB / 0.6852 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002958/1.044, allocations: 205.2 kB / 0.6854 GB, free: 14.05 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003174/1.044, allocations: 344.4 kB / 0.6857 GB, free: 13.75 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009217/1.045, allocations: 0.5498 MB / 0.6862 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000948/1.046, allocations: 0.6575 MB / 0.6869 GB, free: 13.61 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/1.048, allocations: 1.252 MB / 0.6881 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/1.048, allocations: 3.125 kB / 0.6881 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003539/1.052, allocations: 1.643 MB / 0.6897 GB, free: 13.3 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 7.153e-05/1.052, allocations: 37.16 kB / 0.6897 GB, free: 13.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/1.052, allocations: 3.094 kB / 0.6897 GB, free: 13.27 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005466/1.052, allocations: 157 kB / 0.6899 GB, free: 13.25 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008435/1.053, allocations: 250.2 kB / 0.6901 GB, free: 13.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003626/1.057, allocations: 2.6 MB / 0.6927 GB, free: 11.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000981/1.058, allocations: 49.41 kB / 0.6927 GB, free: 11.85 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/1.058, allocations: 50.84 kB / 0.6928 GB, free: 11.85 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.0007562/1.059, allocations: 288.5 kB / 0.693 GB, free: 11.73 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002779/1.059, allocations: 137.8 kB / 0.6932 GB, free: 11.67 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004004/1.063, allocations: 2.321 MB / 0.6954 GB, free: 10.7 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/1.063, allocations: 16.31 kB / 0.6954 GB, free: 10.7 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/1.063, allocations: 3.594 kB / 0.6955 GB, free: 10.7 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/1.063, allocations: 6.844 kB / 0.6955 GB, free: 10.7 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00569/1.069, allocations: 3.196 MB / 0.6986 GB, free: 9.262 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/1.069, allocations: 0.8438 kB / 0.6986 GB, free: 9.262 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006738/1.069, allocations: 268.2 kB / 0.6988 GB, free: 9.246 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004081/1.07, allocations: 141.7 kB / 0.699 GB, free: 9.215 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/1.07, allocations: 45.23 kB / 0.699 GB, free: 9.195 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00289/1.073, allocations: 2.319 MB / 0.7013 GB, free: 7.344 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/1.073, allocations: 4.844 kB / 0.7013 GB, free: 7.344 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004256/1.077, allocations: 2.622 MB / 0.7038 GB, free: 6.164 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004598/1.077, allocations: 114.3 kB / 0.704 GB, free: 6.086 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/1.078, allocations: 29.58 kB / 0.704 GB, free: 6.066 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003757/1.078, allocations: 53.53 kB / 0.704 GB, free: 6.047 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002706/1.078, allocations: 115.6 kB / 0.7041 GB, free: 6.031 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/1.078, allocations: 54.22 kB / 0.7042 GB, free: 6.02 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001649/1.08, allocations: 0.5207 MB / 0.7047 GB, free: 5.789 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8e-08/1.08, allocations: 0 / 0.7047 GB, free: 5.789 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001989/1.082, allocations: 0.5468 MB / 0.7052 GB, free: 5.672 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.006417/1.088, allocations: 3.663 MB / 0.7088 GB, free: 3.871 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00342/1.092, allocations: 1.588 MB / 0.7104 GB, free: 3.188 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/1.092, allocations: 1 kB / 0.7104 GB, free: 3.188 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00154/1.093, allocations: 0.9317 MB / 0.7113 GB, free: 2.812 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002311/1.096, allocations: 0.5602 MB / 0.7118 GB, free: 2.629 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01906/1.115, allocations: 10.48 MB / 0.7221 GB, free: 11.53 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006895/1.115, allocations: 0.6037 MB / 0.7226 GB, free: 10.89 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001761/1.117, allocations: 359.3 kB / 0.723 GB, free: 10.59 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007024/1.118, allocations: 0.5823 MB / 0.7236 GB, free: 10 MB / 0.573 GB Notification: Performance of SimCode: time 2.154e-06/1.118, allocations: 0 / 0.7236 GB, free: 10 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1101/1.228, allocations: 45.14 MB / 0.7676 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/11.4, allocations: 11.09 kB / 0.7676 GB, free: 13.49 MB / 0.6198 GB " [Timeout remaining time 648] (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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 15.182695209980011]