Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.002547/0.002547, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 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.003043/0.003043, allocations: 169.3 kB / 24.28 MB, free: 152 kB / 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.56/1.56, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3355/0.3355, allocations: 32.8 MB / 293.9 MB, free: 1.203 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 375.3 MB, free: 4.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.726e-05/2.888e-05, allocations: 2.312 kB / 375.3 MB, free: 4.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03989/0.03992, allocations: 28.74 MB / 404 MB, free: 8.145 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02103/0.06096, allocations: 13.09 MB / 417.1 MB, free: 11.01 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003574/0.06131, allocations: 15.88 kB / 417.1 MB, free: 10.99 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008282/0.06214, allocations: 218.4 kB / 417.3 MB, free: 10.78 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01053/0.07267, allocations: 3.705 MB / 421 MB, free: 7.059 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006921/0.07959, allocations: 2.38 MB / 423.4 MB, free: 4.668 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001331/0.08092, allocations: 0.9156 MB / 424.3 MB, free: 3.746 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004253/0.08135, allocations: 225 kB / 424.5 MB, free: 3.523 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001023/0.08237, allocations: 0.5374 MB / 425.1 MB, free: 2.984 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004217/0.08279, allocations: 235.3 kB / 425.3 MB, free: 2.754 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 7.445e-05/0.08287, allocations: 32 kB / 425.3 MB, free: 2.723 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01457/0.09744, allocations: 6.918 MB / 432.3 MB, free: 11.8 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001882/0.09762, allocations: 103.7 kB / 432.4 MB, free: 11.7 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002995/0.09792, allocations: 151.7 kB / 432.5 MB, free: 11.55 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01206/0.11, allocations: 5.558 MB / 438.1 MB, free: 5.977 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.11, allocations: 4 kB / 438.1 MB, free: 5.973 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.228e-06/0.11, allocations: 3.984 kB / 438.1 MB, free: 5.969 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.11, allocations: 0 / 438.1 MB, free: 5.969 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003203/0.1132, allocations: 1.287 MB / 439.4 MB, free: 4.641 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.1132, allocations: 8.031 kB / 439.4 MB, free: 4.633 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001855/0.1151, allocations: 299.8 kB / 439.7 MB, free: 4.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006561/0.1158, allocations: 331.2 kB / 440 MB, free: 3.988 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.331e-05/0.1158, allocations: 25.03 kB / 440 MB, free: 3.965 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.082e-05/0.1159, allocations: 32.38 kB / 440 MB, free: 3.934 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.1176, allocations: 0.7367 MB / 440.8 MB, free: 3.105 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.1176, allocations: 192 / 440.8 MB, free: 3.105 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.206e-05/0.1176, allocations: 15.94 kB / 440.8 MB, free: 3.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.1177, allocations: 8 kB / 440.8 MB, free: 3.082 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001509/0.1192, allocations: 486 kB / 441.3 MB, free: 2.609 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003669/0.1228, allocations: 2.422 MB / 443.7 MB, free: 104 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1286/0.2515, allocations: 404.5 kB / 444.1 MB, free: 105.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003462/0.2518, allocations: 170.9 kB / 444.3 MB, free: 105.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04262/0.2944, allocations: 13.21 MB / 457.5 MB, free: 104.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.2944, allocations: 40.45 kB / 457.5 MB, free: 104.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 1.864e-06/0.2945, allocations: 0 / 457.5 MB, free: 104.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.002328/0.2968, allocations: 0.767 MB / 458.3 MB, free: 104.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.2968, allocations: 105.8 kB / 458.4 MB, free: 104 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/0.2971, allocations: 374.4 kB / 458.7 MB, free: 103.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.2972, allocations: 25.7 kB / 458.8 MB, free: 103.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.2973, allocations: 274.8 kB / 459 MB, free: 103.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.192e-05/0.2974, allocations: 90.56 kB / 459.1 MB, free: 103.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.2975, allocations: 88.72 kB / 459.2 MB, free: 103.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.114e-05/0.2976, allocations: 0.5333 MB / 459.7 MB, free: 102.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002729/0.2978, allocations: 116.4 kB / 459.9 MB, free: 102.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003555/0.2982, allocations: 309.6 kB / 460.2 MB, free: 102.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005575/0.2987, allocations: 350.5 kB / 460.5 MB, free: 102.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.2987, allocations: 2.938 kB / 460.5 MB, free: 102.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007748/0.2995, allocations: 389.3 kB / 460.9 MB, free: 102.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.2995, allocations: 6.312 kB / 460.9 MB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.2995, allocations: 3.281 kB / 460.9 MB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/0.2996, allocations: 3.156 kB / 460.9 MB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002636/0.2998, allocations: 73.28 kB / 461 MB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.2998, allocations: 10.17 kB / 461 MB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002443/0.3001, allocations: 49.34 kB / 461 MB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.177e-05/0.3001, allocations: 11.91 kB / 461 MB, free: 102.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (Opening.y,SinkP1.medium.phase,SourceP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001504/0.3003, allocations: 202.4 kB / 461.2 MB, free: 102 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.067e-05/0.3004, allocations: 38.75 kB / 461.3 MB, free: 102 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001527/0.3019, allocations: 1.29 MB / 462.6 MB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.451e-05/0.3019, allocations: 31.5 kB / 462.6 MB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3019, allocations: 3.938 kB / 462.6 MB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3019, allocations: 6.234 kB / 462.6 MB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006573/0.3026, allocations: 0.7174 MB / 463.3 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.3026, allocations: 0 / 463.3 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002189/0.3028, allocations: 53.98 kB / 463.4 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.3028, allocations: 6.891 kB / 463.4 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.964e-05/0.3028, allocations: 7.062 kB / 463.4 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.3028, allocations: 4 kB / 463.4 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3028, allocations: 0 / 463.4 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.3038, allocations: 0.924 MB / 464.3 MB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.304, allocations: 85.84 kB / 464.4 MB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.367e-05/0.304, allocations: 26.28 kB / 464.4 MB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.3042, allocations: 17.83 kB / 464.4 MB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.742e-05/0.3043, allocations: 38.61 kB / 464.5 MB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.3044, allocations: 13.72 kB / 464.5 MB, free: 100.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002775/0.3046, allocations: 350.2 kB / 464.8 MB, free: 100.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3046, allocations: 0 / 464.8 MB, free: 100.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002692/0.3073, allocations: 1.016 MB / 465.8 MB, free: 100.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004842/0.3122, allocations: 1.312 MB / 467.2 MB, free: 100.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.3132, allocations: 423 kB / 467.6 MB, free: 99.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.3132, allocations: 0 / 467.6 MB, free: 99.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005784/0.3138, allocations: 323.3 kB / 467.9 MB, free: 99.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.3151, allocations: 212.3 kB / 468.1 MB, free: 99.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.3171, allocations: 1.385 MB / 469.5 MB, free: 99.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.3174, allocations: 376.2 kB / 469.8 MB, free: 98.99 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004914/0.3179, allocations: 260.2 kB / 470.1 MB, free: 98.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.318, allocations: 45.06 kB / 470.1 MB, free: 98.96 MB / 410.7 MB Notification: Performance of SimCode: time 1.482e-06/0.318, allocations: 0 / 470.1 MB, free: 98.96 MB / 410.7 MB Notification: Performance of Templates: time 0.04676/0.3648, allocations: 40.06 MB / 0.4982 GB, free: 68.97 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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: 7.814248176990077]