Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001297/0.001297, allocations: 111 kB / 21.19 MB, free: 0.6758 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.001426/0.001426, allocations: 215 kB / 24.48 MB, free: 3.98 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.394/1.394, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2374/0.2374, allocations: 46.97 MB / 361.6 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 63.88 kB / 0.4973 GB, free: 7.211 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3426, allocations: 66.03 MB / 0.5618 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0323/0.3749, allocations: 25.9 MB / 0.5871 GB, free: 10.18 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.017/0.3919, allocations: 11.77 MB / 0.5986 GB, free: 14.37 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000342/0.3923, allocations: 11.88 kB / 0.5986 GB, free: 14.36 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007943/0.3931, allocations: 238.4 kB / 0.5988 GB, free: 14.12 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009613/0.4027, allocations: 3.638 MB / 0.6024 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006589/0.4093, allocations: 2.355 MB / 0.6047 GB, free: 8.133 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001251/0.4105, allocations: 0.9042 MB / 0.6056 GB, free: 7.227 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003886/0.4109, allocations: 228.7 kB / 0.6058 GB, free: 6.996 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007908/0.4117, allocations: 438.4 kB / 0.6062 GB, free: 6.566 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003884/0.4121, allocations: 286.8 kB / 0.6065 GB, free: 6.285 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.894e-05/0.4122, allocations: 32 kB / 0.6065 GB, free: 6.254 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01389/0.4261, allocations: 7.192 MB / 0.6135 GB, free: 15.05 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002099/0.4263, allocations: 99.66 kB / 0.6136 GB, free: 14.96 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000305/0.4266, allocations: 187.2 kB / 0.6138 GB, free: 14.77 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01128/0.4379, allocations: 4.423 MB / 0.6181 GB, free: 10.34 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.4379, allocations: 0 / 0.6181 GB, free: 10.34 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4379, allocations: 0 / 0.6181 GB, free: 10.34 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.4379, allocations: 0 / 0.6181 GB, free: 10.34 MB / 462.1 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.003575/0.4414, allocations: 1.184 MB / 0.6193 GB, free: 9.117 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.4415, allocations: 8.031 kB / 0.6193 GB, free: 9.109 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001741/0.4432, allocations: 212.5 kB / 0.6195 GB, free: 8.902 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006822/0.4439, allocations: 321.2 kB / 0.6198 GB, free: 8.559 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.949e-05/0.4439, allocations: 25.03 kB / 0.6198 GB, free: 8.535 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.887e-05/0.444, allocations: 28.38 kB / 0.6199 GB, free: 8.508 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.4457, allocations: 0.733 MB / 0.6206 GB, free: 7.699 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.4457, allocations: 7.922 kB / 0.6206 GB, free: 7.691 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.224e-05/0.4458, allocations: 12 kB / 0.6206 GB, free: 7.68 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.4458, allocations: 8 kB / 0.6206 GB, free: 7.672 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001627/0.4474, allocations: 0.5254 MB / 0.6211 GB, free: 7.145 MB / 462.1 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.002928/0.4503, allocations: 1.852 MB / 0.6229 GB, free: 5.223 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001622/0.4519, allocations: 442.1 kB / 0.6233 GB, free: 4.781 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004497/0.4524, allocations: 176.7 kB / 0.6235 GB, free: 4.605 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04763/0.5, allocations: 13.2 MB / 0.6364 GB, free: 7.387 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.695e-05/0.5001, allocations: 42.56 kB / 0.6364 GB, free: 7.336 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.826e-06/0.5001, allocations: 0 / 0.6364 GB, free: 7.336 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002933/0.503, allocations: 0.782 MB / 0.6372 GB, free: 6.547 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.728e-05/0.5031, allocations: 114.7 kB / 0.6373 GB, free: 6.41 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004933/0.5036, allocations: 276.2 kB / 0.6376 GB, free: 6.133 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/0.5036, allocations: 33.64 kB / 0.6376 GB, free: 6.094 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.5038, allocations: 212.4 kB / 0.6378 GB, free: 5.883 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.064e-05/0.5039, allocations: 91.22 kB / 0.6379 GB, free: 5.793 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.504, allocations: 65.69 kB / 0.638 GB, free: 5.723 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.5042, allocations: 346.8 kB / 0.6383 GB, free: 5.375 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003812/0.5046, allocations: 135.9 kB / 0.6384 GB, free: 5.242 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005096/0.5051, allocations: 283.3 kB / 0.6387 GB, free: 4.914 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008182/0.5059, allocations: 358 kB / 0.639 GB, free: 4.531 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.5059, allocations: 0 / 0.639 GB, free: 4.531 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001076/0.507, allocations: 428.9 kB / 0.6394 GB, free: 4.105 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.507, allocations: 6.344 kB / 0.6394 GB, free: 4.102 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.507, allocations: 4 kB / 0.6394 GB, free: 4.098 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.5071, allocations: 4 kB / 0.6395 GB, free: 4.094 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003607/0.5074, allocations: 79.88 kB / 0.6395 GB, free: 4.016 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.5074, allocations: 12.25 kB / 0.6395 GB, free: 4.004 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002611/0.5077, allocations: 43.81 kB / 0.6396 GB, free: 3.961 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.5077, allocations: 16 kB / 0.6396 GB, free: 3.945 MB / 478.1 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.0002118/0.5079, allocations: 165.7 kB / 0.6398 GB, free: 3.773 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.324e-05/0.508, allocations: 35.75 kB / 0.6398 GB, free: 3.738 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002706/0.5107, allocations: 1.959 MB / 0.6417 GB, free: 1.777 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.281e-05/0.5108, allocations: 27.95 kB / 0.6417 GB, free: 1.75 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.5108, allocations: 3.938 kB / 0.6417 GB, free: 1.746 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.5108, allocations: 11.98 kB / 0.6417 GB, free: 1.734 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.5118, allocations: 0.8594 MB / 0.6426 GB, free: 0.8398 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.5118, allocations: 0 / 0.6426 GB, free: 0.8398 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003068/0.5122, allocations: 75.86 kB / 0.6427 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.5122, allocations: 4 kB / 0.6427 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.5122, allocations: 4 kB / 0.6427 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.5122, allocations: 4 kB / 0.6427 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.5122, allocations: 0 / 0.6427 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0017/0.5139, allocations: 1.116 MB / 0.6438 GB, free: 15.62 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.514, allocations: 87.16 kB / 0.6438 GB, free: 15.53 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.621e-05/0.5141, allocations: 27.72 kB / 0.6439 GB, free: 15.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002515/0.5143, allocations: 27.97 kB / 0.6439 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.434e-05/0.5144, allocations: 39.88 kB / 0.6439 GB, free: 15.44 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.5145, allocations: 12 kB / 0.6439 GB, free: 15.43 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003523/0.5148, allocations: 295.1 kB / 0.6442 GB, free: 15.14 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5148, allocations: 0 / 0.6442 GB, free: 15.14 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003034/0.5178, allocations: 1.014 MB / 0.6452 GB, free: 14.12 MB / 494.1 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.004404/0.5222, allocations: 1.18 MB / 0.6464 GB, free: 12.93 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00144/0.5237, allocations: 0.5911 MB / 0.6469 GB, free: 12.34 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.5237, allocations: 0 / 0.6469 GB, free: 12.34 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006855/0.5244, allocations: 421 kB / 0.6473 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/0.5255, allocations: 193.9 kB / 0.6475 GB, free: 11.75 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002435/0.5279, allocations: 1.549 MB / 0.649 GB, free: 10.17 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.5283, allocations: 370.1 kB / 0.6494 GB, free: 9.777 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004729/0.5288, allocations: 270.8 kB / 0.6497 GB, free: 9.512 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.5289, allocations: 43.42 kB / 0.6497 GB, free: 9.469 MB / 494.1 MB Notification: Performance of SimCode: time 1.392e-06/0.5289, allocations: 0 / 0.6497 GB, free: 9.469 MB / 494.1 MB Notification: Performance of Templates: time 0.05961/0.5885, allocations: 40.35 MB / 0.6891 GB, free: 1.293 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.475589412992122]