Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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.001607/0.001607, allocations: 113 kB / 18.94 MB, free: 2.934 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.001791/0.001791, allocations: 210.2 kB / 22.25 MB, free: 5.086 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 8.031 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 0.7723/0.7723, allocations: 94.56 MB / 407 MB, free: 9.191 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.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_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.002768/0.002768, allocations: 85.41 kB / 0.555 GB, free: 38.82 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1275, allocations: 73.06 MB / 0.6263 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.05313/0.1806, allocations: 45.88 MB / 0.6711 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01794/0.1986, allocations: 12.5 MB / 0.6833 GB, free: 5.902 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001951/0.2005, allocations: 75.31 kB / 0.6834 GB, free: 5.828 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002798/0.2033, allocations: 1.17 MB / 0.6845 GB, free: 4.652 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.005855/0.2092, allocations: 2.144 MB / 0.6866 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003447/0.2126, allocations: 1.213 MB / 0.6878 GB, free: 1.281 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004111/0.2167, allocations: 2.864 MB / 0.6906 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006418/0.2174, allocations: 290.1 kB / 0.6909 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002662/0.22, allocations: 1.464 MB / 0.6923 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001838/0.2219, allocations: 1.124 MB / 0.6934 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0003368/0.2222, allocations: 139.9 kB / 0.6935 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003457/0.2257, allocations: 1.217 MB / 0.6947 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0005197/0.2262, allocations: 434.1 kB / 0.6951 GB, free: 9.715 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001312/0.2275, allocations: 0.9672 MB / 0.6961 GB, free: 8.742 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.005412/0.2329, allocations: 2.914 MB / 0.6989 GB, free: 5.816 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2329, allocations: 0 / 0.6989 GB, free: 5.816 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2329, allocations: 4 kB / 0.6989 GB, free: 5.812 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.831e-05/0.233, allocations: 0 / 0.6989 GB, free: 5.812 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: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.005411/0.2384, allocations: 2.482 MB / 0.7014 GB, free: 3.281 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.2385, allocations: 15.97 kB / 0.7014 GB, free: 3.266 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004022/0.2389, allocations: 194.4 kB / 0.7016 GB, free: 3.066 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004855/0.2393, allocations: 243.4 kB / 0.7018 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002731/0.2421, allocations: 1.261 MB / 0.703 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/0.2422, allocations: 106.7 kB / 0.7031 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001948/0.2424, allocations: 128 kB / 0.7033 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00283/0.2453, allocations: 1.521 MB / 0.7047 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/0.2453, allocations: 0 / 0.7047 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.2454, allocations: 59.94 kB / 0.7048 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.825e-05/0.2454, allocations: 32 kB / 0.7048 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003001/0.2484, allocations: 1.611 MB / 0.7064 GB, free: 14.02 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008981/0.2574, allocations: 6.221 MB / 0.7125 GB, free: 7.203 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002499/0.2599, allocations: 1.211 MB / 0.7137 GB, free: 5.984 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001213/0.2611, allocations: 0.6125 MB / 0.7143 GB, free: 5.367 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004854/0.266, allocations: 2.25 MB / 0.7165 GB, free: 3.098 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001347/0.2673, allocations: 0.6887 MB / 0.7171 GB, free: 2.398 MB / 0.545 GB Notification: Performance of pre-optimization done (n=139): time 2.955e-06/0.2673, allocations: 0 / 0.7171 GB, free: 2.398 MB / 0.545 GB Notification: Performance of matching and sorting (n=139): time 0.004578/0.2719, allocations: 1.99 MB / 0.7191 GB, free: 408 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.272, allocations: 68.72 kB / 0.7191 GB, free: 324 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001798/0.2738, allocations: 1.314 MB / 0.7204 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.868e-05/0.2738, allocations: 53.7 kB / 0.7205 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007041/0.2745, allocations: 0.7072 MB / 0.7212 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004018/0.2749, allocations: 491.7 kB / 0.7216 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004595/0.2754, allocations: 250.8 kB / 0.7219 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.2756, allocations: 357.9 kB / 0.7222 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000948/0.2765, allocations: 466.4 kB / 0.7227 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.2777, allocations: 0.624 MB / 0.7233 GB, free: 12 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002214/0.2799, allocations: 1.163 MB / 0.7244 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.2799, allocations: 4 kB / 0.7244 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003119/0.283, allocations: 1.557 MB / 0.7259 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.283, allocations: 33.7 kB / 0.726 GB, free: 9.172 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.283, allocations: 7.984 kB / 0.726 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004983/0.2835, allocations: 109.8 kB / 0.7261 GB, free: 9.051 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009665/0.2845, allocations: 271.6 kB / 0.7263 GB, free: 8.785 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003137/0.2876, allocations: 3.025 MB / 0.7293 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008179/0.2885, allocations: 127.2 kB / 0.7294 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002178/0.2887, allocations: 59.97 kB / 0.7295 GB, free: 5.352 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (149): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 1 * 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.0006958/0.2894, allocations: 385.4 kB / 0.7298 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003425/0.2897, allocations: 186.8 kB / 0.73 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004555/0.2943, allocations: 2.292 MB / 0.7322 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.2943, allocations: 16 kB / 0.7323 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.2943, allocations: 7.938 kB / 0.7323 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/0.2943, allocations: 7.969 kB / 0.7323 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006687/0.301, allocations: 3.429 MB / 0.7356 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.363e-05/0.301, allocations: 11.98 kB / 0.7356 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009725/0.302, allocations: 283.6 kB / 0.7359 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003481/0.3024, allocations: 109.7 kB / 0.736 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001907/0.3026, allocations: 51.97 kB / 0.7361 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003067/0.3056, allocations: 3.028 MB / 0.739 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3056, allocations: 32 / 0.739 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004604/0.3102, allocations: 2.402 MB / 0.7414 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/0.3113, allocations: 408.1 kB / 0.7417 GB, free: 8.438 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003077/0.3116, allocations: 47.92 kB / 0.7418 GB, free: 8.391 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000751/0.3124, allocations: 39.98 kB / 0.7418 GB, free: 8.352 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003521/0.3127, allocations: 133 kB / 0.742 GB, free: 8.223 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.3129, allocations: 59.97 kB / 0.742 GB, free: 8.164 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001428/0.3143, allocations: 0.9274 MB / 0.7429 GB, free: 7.242 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.3143, allocations: 0 / 0.7429 GB, free: 7.242 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001744/0.316, allocations: 0.6003 MB / 0.7435 GB, free: 6.641 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.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 (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.006818/0.3228, allocations: 3.709 MB / 0.7471 GB, free: 3.027 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002941/0.3258, allocations: 1.511 MB / 0.7486 GB, free: 1.48 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.3258, allocations: 0 / 0.7486 GB, free: 1.48 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.3274, allocations: 0.9427 MB / 0.7495 GB, free: 0.5117 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002284/0.3297, allocations: 0.4891 MB / 0.75 GB, free: 40 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2782/0.6079, allocations: 11.87 MB / 0.7616 GB, free: 113.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009879/0.6089, allocations: 1.348 MB / 0.7629 GB, free: 112.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001298/0.6102, allocations: 395.2 kB / 0.7633 GB, free: 112.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009839/0.6111, allocations: 0.7672 MB / 0.764 GB, free: 112.1 MB / 0.5762 GB Notification: Performance of SimCode: time 9.51e-07/0.6111, allocations: 0 / 0.764 GB, free: 112.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08114/0.6923, allocations: 46.08 MB / 0.809 GB, free: 74.82 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.82/15.52, allocations: 7.078 kB / 0.809 GB, free: 74.82 MB / 0.5762 GB " [Timeout remaining time 644] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.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.SpecificValveType_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.21588252391666]