Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 85.91 kB / 22.21 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009434/0.0009434, allocations: 162.1 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9982/0.9982, allocations: 177 MB / 205.9 MB, free: 4.457 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1677/0.1677, allocations: 34.87 MB / 297.4 MB, free: 13.34 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|SourceP1.ports.[0-9,]+..m_flow|SourceP1.ports.[0-9,]+..p|SourceP1.ports.[0-9,]+..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.[0-9,]+..m_flow|SinkP1.ports.[0-9,]+..p|SinkP1.ports.[0-9,]+..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|SourceP1.ports.[0-9,]+..m_flow|SourceP1.ports.[0-9,]+..p|SourceP1.ports.[0-9,]+..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.[0-9,]+..m_flow|SinkP1.ports.[0-9,]+..p|SinkP1.ports.[0-9,]+..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 380 MB, free: 22.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.875e-05/3.033e-05, allocations: 3 kB / 380 MB, free: 22.74 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01338/0.01341, allocations: 14.68 MB / 394.7 MB, free: 8.004 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01087/0.02428, allocations: 11.67 MB / 406.4 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005/0.02478, allocations: 15.88 kB / 406.4 MB, free: 12.28 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006177/0.0254, allocations: 150.9 kB / 406.5 MB, free: 12.13 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009355/0.03476, allocations: 3.689 MB / 410.2 MB, free: 8.422 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00585/0.04061, allocations: 2.072 MB / 412.3 MB, free: 6.344 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001323/0.04193, allocations: 0.9391 MB / 413.2 MB, free: 5.402 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003726/0.0423, allocations: 221 kB / 413.4 MB, free: 5.184 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007883/0.04309, allocations: 0.5455 MB / 414 MB, free: 4.637 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002827/0.04337, allocations: 239.3 kB / 414.2 MB, free: 4.402 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.382e-05/0.04342, allocations: 32 kB / 414.2 MB, free: 4.371 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01161/0.05502, allocations: 6.777 MB / 421 MB, free: 13.59 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001987/0.05522, allocations: 99.66 kB / 421.1 MB, free: 13.49 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002934/0.05552, allocations: 159.7 kB / 421.3 MB, free: 13.33 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01307/0.06859, allocations: 5.235 MB / 426.5 MB, free: 8.086 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.06859, allocations: 4 kB / 426.5 MB, free: 8.082 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.0686, allocations: 0 / 426.5 MB, free: 8.082 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.0686, allocations: 0 / 426.5 MB, free: 8.082 MB / 346.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.003224/0.07183, allocations: 1.241 MB / 427.8 MB, free: 6.801 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.07188, allocations: 12.03 kB / 427.8 MB, free: 6.789 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001068/0.07295, allocations: 295.8 kB / 428.1 MB, free: 6.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.07336, allocations: 323.3 kB / 428.4 MB, free: 6.156 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.0734, allocations: 32.97 kB / 428.4 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.894e-05/0.07344, allocations: 28.38 kB / 428.4 MB, free: 6.098 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008993/0.07434, allocations: 0.6892 MB / 429.1 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.07435, allocations: 192 / 429.1 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.07438, allocations: 19.94 kB / 429.1 MB, free: 5.297 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.617e-06/0.07439, allocations: 8 kB / 429.1 MB, free: 5.289 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000575/0.07496, allocations: 328 kB / 429.5 MB, free: 4.969 MB / 346.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.001906/0.07687, allocations: 2.184 MB / 431.6 MB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007088/0.07757, allocations: 361.2 kB / 432 MB, free: 2.344 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.393e-05/0.07766, allocations: 64.31 kB / 432.1 MB, free: 2.277 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02283/0.1005, allocations: 11.43 MB / 443.5 MB, free: 6.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.307e-05/0.1006, allocations: 45.38 kB / 443.5 MB, free: 6.785 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 3.146e-06/0.1006, allocations: 0 / 443.5 MB, free: 6.785 MB / 362.7 MB Notification: Performance of matching and sorting (n=25): time 0.001424/0.102, allocations: 0.5623 MB / 444.1 MB, free: 6.219 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.102, allocations: 106.8 kB / 444.2 MB, free: 6.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.1023, allocations: 322.1 kB / 444.5 MB, free: 5.758 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/0.1023, allocations: 33.7 kB / 444.5 MB, free: 5.719 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.1025, allocations: 259.1 kB / 444.8 MB, free: 5.461 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.697e-05/0.1026, allocations: 87.19 kB / 444.9 MB, free: 5.375 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.699e-05/0.1026, allocations: 79.28 kB / 445 MB, free: 5.289 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.1028, allocations: 0.5195 MB / 445.5 MB, free: 4.758 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.708e-05/0.1029, allocations: 54.78 kB / 445.5 MB, free: 4.707 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.1031, allocations: 248.5 kB / 445.8 MB, free: 4.398 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002231/0.1033, allocations: 233.2 kB / 446 MB, free: 4.125 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.1033, allocations: 8.031 kB / 446 MB, free: 4.117 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003505/0.1037, allocations: 277 kB / 446.3 MB, free: 3.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.1037, allocations: 9.562 kB / 446.3 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1037, allocations: 0 / 446.3 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.1037, allocations: 4 kB / 446.3 MB, free: 3.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.1039, allocations: 80.16 kB / 446.4 MB, free: 3.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.872e-06/0.1039, allocations: 7.984 kB / 446.4 MB, free: 3.742 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000141/0.104, allocations: 27.84 kB / 446.4 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/0.1041, allocations: 15.98 kB / 446.4 MB, free: 3.699 MB / 362.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_a.phase,V1.state_b.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.0001469/0.1042, allocations: 184.4 kB / 446.6 MB, free: 3.508 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.02e-05/0.1043, allocations: 39.81 kB / 446.6 MB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0014/0.1057, allocations: 1.127 MB / 447.8 MB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.641e-05/0.1057, allocations: 31.94 kB / 447.8 MB, free: 2.297 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1057, allocations: 0 / 447.8 MB, free: 2.297 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.1057, allocations: 0 / 447.8 MB, free: 2.297 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005464/0.1063, allocations: 0.6024 MB / 448.4 MB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.1063, allocations: 3.984 kB / 448.4 MB, free: 1.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000126/0.1064, allocations: 51.97 kB / 448.5 MB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.1064, allocations: 4 kB / 448.5 MB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.1064, allocations: 12 kB / 448.5 MB, free: 1.598 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.1064, allocations: 0 / 448.5 MB, free: 1.598 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.1064, allocations: 3.984 kB / 448.5 MB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006685/0.1071, allocations: 0.7637 MB / 449.2 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.637e-05/0.1071, allocations: 95.14 kB / 449.3 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.06e-05/0.1072, allocations: 19.84 kB / 449.4 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.1073, allocations: 23.98 kB / 449.4 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.189e-05/0.1074, allocations: 35.8 kB / 449.4 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.1074, allocations: 16 kB / 449.4 MB, free: 0.625 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001775/0.1076, allocations: 283 kB / 449.7 MB, free: 356 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1076, allocations: 0 / 449.7 MB, free: 356 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0029/0.1105, allocations: 1.01 MB / 450.7 MB, free: 15.34 MB / 378.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.003915/0.1144, allocations: 1.307 MB / 452 MB, free: 14.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005308/0.1149, allocations: 272.5 kB / 452.3 MB, free: 13.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.1149, allocations: 3.938 kB / 452.3 MB, free: 13.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002339/0.1151, allocations: 223.4 kB / 452.5 MB, free: 13.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007311/0.1159, allocations: 225.7 kB / 452.7 MB, free: 13.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.1177, allocations: 1.327 MB / 454.1 MB, free: 11.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.1178, allocations: 177.5 kB / 454.2 MB, free: 11.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003126/0.1181, allocations: 261.7 kB / 454.5 MB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006793/0.1188, allocations: 254 kB / 454.7 MB, free: 11.25 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.1188, allocations: 0 / 454.7 MB, free: 11.25 MB / 378.7 MB Notification: Performance of Templates: time 0.2323/0.3511, allocations: 45.35 MB / 0.4884 GB, free: 98.84 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.014618827030063]