Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.SpecificValveType.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.001596/0.001596, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001743/0.001743, allocations: 216.4 kB / 22.25 MB, free: 5.262 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.721/1.721, allocations: 230.6 MB / 256 MB, free: 7.809 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 1.027/1.027, allocations: 94.63 MB / 407.1 MB, free: 8.914 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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) [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.00258/0.00258, allocations: 87.05 kB / 0.5549 GB, free: 38.44 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2085/0.211, allocations: 73.06 MB / 0.6263 GB, free: 216 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.SpecificValveType): time 0.04601/0.2571, allocations: 34.21 MB / 0.6597 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02252/0.2796, allocations: 13.78 MB / 0.6731 GB, free: 52 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002168/0.2818, allocations: 75.36 kB / 0.6732 GB, free: 15.97 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 0.002893/0.2846, allocations: 0.8822 MB / 0.6741 GB, free: 15.09 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 0.005605/0.2903, allocations: 1.371 MB / 0.6754 GB, free: 13.71 MB / 0.5138 GB Notification: Performance of NFTyping.typeClassSections: time 0.004213/0.2945, allocations: 1.024 MB / 0.6764 GB, free: 12.68 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 0.004203/0.2987, allocations: 1.964 MB / 0.6783 GB, free: 10.71 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000555/0.2992, allocations: 215.4 kB / 0.6785 GB, free: 10.48 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002666/0.3019, allocations: 1.078 MB / 0.6796 GB, free: 9.398 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.303, allocations: 0.6488 MB / 0.6802 GB, free: 8.746 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 0.000179/0.3032, allocations: 92 kB / 0.6803 GB, free: 8.656 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003177/0.3064, allocations: 0.7843 MB / 0.6811 GB, free: 7.871 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 0.0004381/0.3068, allocations: 330.5 kB / 0.6814 GB, free: 7.547 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 0.0008112/0.3076, allocations: 0.5708 MB / 0.682 GB, free: 6.973 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.003771/0.3114, allocations: 2.112 MB / 0.684 GB, free: 4.852 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.3114, allocations: 0 / 0.684 GB, free: 4.852 MB / 0.5138 GB Notification: Performance of FrontEnd: time 3.346e-06/0.3114, allocations: 4 kB / 0.684 GB, free: 4.848 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 2.048e-05/0.3114, allocations: 0 / 0.684 GB, free: 4.848 MB / 0.5138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 202 * Number of variables: 202 Notification: Performance of Generate backend data structure: time 0.004172/0.3156, allocations: 2.032 MB / 0.686 GB, free: 2.773 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.546e-05/0.3156, allocations: 12.03 kB / 0.686 GB, free: 2.762 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000182/0.3158, allocations: 127.1 kB / 0.6861 GB, free: 2.629 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004987/0.3163, allocations: 218.8 kB / 0.6863 GB, free: 2.414 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002338/0.3187, allocations: 1.127 MB / 0.6875 GB, free: 1.246 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.779e-05/0.3187, allocations: 58 kB / 0.6875 GB, free: 1.188 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.3189, allocations: 87.95 kB / 0.6876 GB, free: 1.102 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.3204, allocations: 0.9073 MB / 0.6885 GB, free: 172 kB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.3204, allocations: 0 / 0.6885 GB, free: 172 kB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.098e-05/0.3205, allocations: 32 kB / 0.6885 GB, free: 140 kB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.47e-05/0.3206, allocations: 23.94 kB / 0.6885 GB, free: 116 kB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.3222, allocations: 0.7925 MB / 0.6893 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004797/0.327, allocations: 2.327 MB / 0.6916 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.3283, allocations: 0.6086 MB / 0.6922 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005844/0.3289, allocations: 290.7 kB / 0.6924 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002947/0.3318, allocations: 1.143 MB / 0.6936 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.646e-05/0.3319, allocations: 43.16 kB / 0.6936 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=73): time 3.016e-06/0.3319, allocations: 0 / 0.6936 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of matching and sorting (n=73): time 0.002953/0.3348, allocations: 1.065 MB / 0.6946 GB, free: 9.742 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.365e-05/0.3349, allocations: 68 kB / 0.6947 GB, free: 9.664 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002166/0.3371, allocations: 1.344 MB / 0.696 GB, free: 8.309 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.788e-05/0.3371, allocations: 37.7 kB / 0.6961 GB, free: 8.266 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006726/0.3378, allocations: 0.6323 MB / 0.6967 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002667/0.3381, allocations: 261.7 kB / 0.6969 GB, free: 7.367 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002452/0.3383, allocations: 146.5 kB / 0.6971 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002105/0.3385, allocations: 330 kB / 0.6974 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004548/0.339, allocations: 209.8 kB / 0.6976 GB, free: 6.684 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006173/0.3396, allocations: 371.4 kB / 0.6979 GB, free: 6.273 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.3406, allocations: 0.5397 MB / 0.6985 GB, free: 5.711 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3406, allocations: 4 kB / 0.6985 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001738/0.3424, allocations: 0.8219 MB / 0.6993 GB, free: 4.871 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.3424, allocations: 7.938 kB / 0.6993 GB, free: 4.863 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.3424, allocations: 8.188 kB / 0.6993 GB, free: 4.855 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004626/0.3429, allocations: 117.6 kB / 0.6994 GB, free: 4.734 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005582/0.3434, allocations: 135.8 kB / 0.6995 GB, free: 4.602 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003337/0.3468, allocations: 2.993 MB / 0.7024 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005895/0.3474, allocations: 63.5 kB / 0.7025 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.425e-05/0.3474, allocations: 28 kB / 0.7025 GB, free: 1.289 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (75): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0005791/0.348, allocations: 321.7 kB / 0.7028 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002535/0.3483, allocations: 167 kB / 0.703 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002231/0.3505, allocations: 1.091 MB / 0.7041 GB, free: 15.69 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.3505, allocations: 15.98 kB / 0.7041 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3505, allocations: 192 / 0.7041 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.3505, allocations: 3.938 kB / 0.7041 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00344/0.354, allocations: 1.795 MB / 0.7058 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/0.354, allocations: 8.031 kB / 0.7058 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000439/0.3544, allocations: 107.9 kB / 0.7059 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003798/0.3548, allocations: 117.5 kB / 0.7061 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.373e-05/0.3548, allocations: 23.98 kB / 0.7061 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003404/0.3582, allocations: 2.989 MB / 0.709 GB, free: 10.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.3582, allocations: 4 kB / 0.709 GB, free: 10.32 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002385/0.3606, allocations: 1.189 MB / 0.7102 GB, free: 9.094 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006118/0.3612, allocations: 272.6 kB / 0.7104 GB, free: 8.828 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.3614, allocations: 20 kB / 0.7104 GB, free: 8.809 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004368/0.3618, allocations: 19.98 kB / 0.7105 GB, free: 8.789 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.362, allocations: 56.55 kB / 0.7105 GB, free: 8.734 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.576e-05/0.362, allocations: 27.98 kB / 0.7105 GB, free: 8.707 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001653/0.3637, allocations: 0.9507 MB / 0.7115 GB, free: 7.762 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.3637, allocations: 7.938 kB / 0.7115 GB, free: 7.754 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001501/0.3652, allocations: 391.2 kB / 0.7119 GB, free: 7.371 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.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 (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.00462/0.3698, allocations: 2.378 MB / 0.7142 GB, free: 5.102 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001827/0.3716, allocations: 0.7721 MB / 0.7149 GB, free: 4.305 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.3716, allocations: 0 / 0.7149 GB, free: 4.305 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0009518/0.3726, allocations: 0.5367 MB / 0.7155 GB, free: 3.742 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/0.3744, allocations: 415 kB / 0.7158 GB, free: 3.355 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01581/0.3902, allocations: 9.102 MB / 0.7247 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008598/0.391, allocations: 0.6221 MB / 0.7253 GB, free: 9.375 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001027/0.392, allocations: 246.8 kB / 0.7256 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008229/0.3929, allocations: 0.5578 MB / 0.7261 GB, free: 8.59 MB / 0.5606 GB Notification: Performance of SimCode: time 2.034e-06/0.3929, allocations: 0 / 0.7261 GB, free: 8.59 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6011/0.9939, allocations: 35.88 MB / 0.7612 GB, free: 116.7 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.31/16.31, allocations: 6.781 kB / 0.7612 GB, free: 116.7 MB / 0.5763 GB " [Timeout remaining time 644] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.SpecificValveType.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_SpecificValveType_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_SpecificValveType.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.SpecificValveType_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.SpecificValveType.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: 21.021967417094857]