Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.001598/0.001598, allocations: 105.8 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.001462/0.001462, allocations: 187.7 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.75/1.75, allocations: 225.6 MB / 247.8 MB, free: 3.734 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.8104/0.8104, allocations: 94.6 MB / 397.3 MB, free: 488 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.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002562/0.002562, allocations: 87.86 kB / 0.5416 GB, free: 14.02 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.658/0.6606, allocations: 71.84 MB / 0.6118 GB, free: 3.953 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.2772/0.9377, allocations: 165 MB / 0.7729 GB, free: 15.99 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02511/0.9628, allocations: 12.98 MB / 0.7856 GB, free: 2.977 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002582/0.9654, allocations: 35.75 kB / 0.7856 GB, free: 2.941 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.003584/0.969, allocations: 0.5862 MB / 0.7862 GB, free: 2.352 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005104/0.9741, allocations: 0.9008 MB / 0.7871 GB, free: 1.445 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003934/0.978, allocations: 0.8057 MB / 0.7879 GB, free: 0.6367 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.00353/0.9816, allocations: 1.372 MB / 0.7892 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00089/0.9824, allocations: 207 kB / 0.7894 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00187/0.9843, allocations: 0.5757 MB / 0.79 GB, free: 14.46 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001754/0.9861, allocations: 0.673 MB / 0.7906 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0003294/0.9864, allocations: 76 kB / 0.7907 GB, free: 13.71 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00462/0.991, allocations: 1.408 MB / 0.7921 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004065/0.9914, allocations: 195.1 kB / 0.7923 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001314/0.9927, allocations: 0.5206 MB / 0.7928 GB, free: 11.59 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.00547/0.9982, allocations: 1.582 MB / 0.7943 GB, free: 10 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.9982, allocations: 0 / 0.7943 GB, free: 10 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.053e-06/0.9982, allocations: 0 / 0.7943 GB, free: 10 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 4.775e-05/0.9983, allocations: 0 / 0.7943 GB, free: 10 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003694/1.002, allocations: 1.466 MB / 0.7958 GB, free: 8.48 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.498e-05/1.002, allocations: 12.03 kB / 0.7958 GB, free: 8.469 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001535/1.002, allocations: 114.6 kB / 0.7959 GB, free: 8.348 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002488/1.002, allocations: 140.1 kB / 0.796 GB, free: 8.211 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001711/1.004, allocations: 0.7843 MB / 0.7968 GB, free: 7.383 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.357e-05/1.004, allocations: 50 kB / 0.7968 GB, free: 7.336 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/1.004, allocations: 71.95 kB / 0.7969 GB, free: 7.266 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/1.006, allocations: 0.7353 MB / 0.7976 GB, free: 6.516 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/1.006, allocations: 0 / 0.7976 GB, free: 6.516 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.902e-05/1.006, allocations: 28 kB / 0.7976 GB, free: 6.488 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.061e-05/1.006, allocations: 16 kB / 0.7977 GB, free: 6.473 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/1.007, allocations: 0.6363 MB / 0.7983 GB, free: 5.84 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004769/1.012, allocations: 3.121 MB / 0.8013 GB, free: 2.402 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/1.013, allocations: 0.5284 MB / 0.8018 GB, free: 1.863 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004496/1.014, allocations: 230.4 kB / 0.8021 GB, free: 1.637 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003496/1.017, allocations: 2.588 MB / 0.8046 GB, free: 14.63 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.818e-05/1.017, allocations: 43.05 kB / 0.8046 GB, free: 14.58 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=55): time 1.964e-06/1.017, allocations: 0 / 0.8046 GB, free: 14.58 MB / 0.6387 GB Notification: Performance of matching and sorting (n=56): time 0.004119/1.021, allocations: 1.791 MB / 0.8064 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/1.021, allocations: 55.97 kB / 0.8064 GB, free: 12.63 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/1.022, allocations: 0.6967 MB / 0.8071 GB, free: 11.93 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.363e-05/1.022, allocations: 37.7 kB / 0.8072 GB, free: 11.88 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.00039/1.023, allocations: 444.9 kB / 0.8076 GB, free: 11.45 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/1.023, allocations: 206.2 kB / 0.8078 GB, free: 11.24 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002647/1.023, allocations: 94.23 kB / 0.8079 GB, free: 11.14 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001525/1.023, allocations: 326 kB / 0.8082 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003466/1.024, allocations: 165 kB / 0.8083 GB, free: 10.66 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004162/1.024, allocations: 231.2 kB / 0.8086 GB, free: 10.41 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000804/1.025, allocations: 427.8 kB / 0.809 GB, free: 9.98 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/1.025, allocations: 3.938 kB / 0.809 GB, free: 9.977 MB / 0.6387 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001483/1.027, allocations: 0.6435 MB / 0.8096 GB, free: 9.324 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/1.027, allocations: 8 kB / 0.8096 GB, free: 9.316 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/1.027, allocations: 3.938 kB / 0.8096 GB, free: 9.312 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004637/1.027, allocations: 112.9 kB / 0.8097 GB, free: 9.199 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003677/1.027, allocations: 99.83 kB / 0.8098 GB, free: 9.102 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002922/1.03, allocations: 2.051 MB / 0.8118 GB, free: 6.914 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004041/1.031, allocations: 16.03 kB / 0.8118 GB, free: 6.898 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.555e-05/1.031, allocations: 23.98 kB / 0.8118 GB, free: 6.875 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004369/1.031, allocations: 217.6 kB / 0.8121 GB, free: 6.652 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/1.031, allocations: 95.44 kB / 0.8121 GB, free: 6.559 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/1.033, allocations: 0.8605 MB / 0.813 GB, free: 5.66 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/1.033, allocations: 8 kB / 0.813 GB, free: 5.652 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/1.033, allocations: 0 / 0.813 GB, free: 5.652 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/1.033, allocations: 3.938 kB / 0.813 GB, free: 5.648 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003009/1.036, allocations: 1.535 MB / 0.8145 GB, free: 4.047 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/1.036, allocations: 0 / 0.8145 GB, free: 4.047 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00034/1.037, allocations: 87.89 kB / 0.8146 GB, free: 3.961 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006516/1.037, allocations: 124.7 kB / 0.8147 GB, free: 3.836 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.812e-05/1.037, allocations: 19.98 kB / 0.8147 GB, free: 3.816 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00294/1.04, allocations: 2.055 MB / 0.8167 GB, free: 1.629 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.04, allocations: 4.031 kB / 0.8167 GB, free: 1.625 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/1.042, allocations: 0.9845 MB / 0.8177 GB, free: 0.6094 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003084/1.043, allocations: 156.5 kB / 0.8178 GB, free: 448 kB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/1.043, allocations: 15.98 kB / 0.8179 GB, free: 432 kB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003467/1.043, allocations: 20.06 kB / 0.8179 GB, free: 412 kB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/1.043, allocations: 48.44 kB / 0.8179 GB, free: 360 kB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/1.043, allocations: 23.98 kB / 0.8179 GB, free: 336 kB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0008668/1.044, allocations: 0.5107 MB / 0.8184 GB, free: 15.82 MB / 0.6544 GB Notification: Performance of sort global known variables: time 9.1e-08/1.044, allocations: 0 / 0.8184 GB, free: 15.82 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001448/1.046, allocations: 331.4 kB / 0.8188 GB, free: 15.5 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003529/1.049, allocations: 1.896 MB / 0.8206 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001714/1.051, allocations: 0.592 MB / 0.8212 GB, free: 12.96 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/1.051, allocations: 0 / 0.8212 GB, free: 12.96 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001063/1.052, allocations: 421.6 kB / 0.8216 GB, free: 12.54 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/1.054, allocations: 275.2 kB / 0.8219 GB, free: 12.28 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/1.067, allocations: 6.316 MB / 0.828 GB, free: 5.77 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008846/1.068, allocations: 1.009 MB / 0.829 GB, free: 4.734 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0007678/1.069, allocations: 141.9 kB / 0.8291 GB, free: 4.59 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006026/1.069, allocations: 375.3 kB / 0.8295 GB, free: 4.223 MB / 0.6544 GB Notification: Performance of SimCode: time 1.593e-06/1.069, allocations: 4 kB / 0.8295 GB, free: 4.219 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09339/1.163, allocations: 25.9 MB / 0.8548 GB, free: 10.54 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/14.38, allocations: 8 kB / 0.8548 GB, free: 10.53 MB / 0.6856 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.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: 19.06445900676772]