Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0009815/0.0009815, allocations: 81.86 kB / 21.44 MB, free: 3.055 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.001248/0.001248, allocations: 165.4 kB / 24.84 MB, free: 9.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8187/0.8187, allocations: 158.6 MB / 186.7 MB, free: 2.789 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.119/0.119, allocations: 32.38 MB / 271.5 MB, free: 14.53 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.[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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 348.9 MB, free: 9.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.052e-05/1.211e-05, allocations: 10.25 kB / 348.9 MB, free: 9.168 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01007/0.01008, allocations: 14.56 MB / 363.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009416/0.0195, allocations: 11.67 MB / 375.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001645/0.01966, allocations: 15.88 kB / 375.2 MB, free: 14.82 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003637/0.02003, allocations: 142.9 kB / 375.3 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005937/0.02596, allocations: 3.697 MB / 379 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003425/0.02939, allocations: 2.066 MB / 381.1 MB, free: 8.895 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007368/0.03013, allocations: 0.9352 MB / 382 MB, free: 7.957 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002945/0.03042, allocations: 217.1 kB / 382.2 MB, free: 7.742 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000901/0.03132, allocations: 0.5375 MB / 382.7 MB, free: 7.203 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.03154, allocations: 239.3 kB / 383 MB, free: 6.969 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.03158, allocations: 32 kB / 383 MB, free: 6.938 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007634/0.03922, allocations: 6.75 MB / 389.8 MB, free: 184 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.809e-05/0.03931, allocations: 115.6 kB / 389.9 MB, free: 68 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.03943, allocations: 159.7 kB / 390 MB, free: 15.91 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004848/0.04428, allocations: 5.219 MB / 395.2 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.04428, allocations: 0 / 395.2 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.04428, allocations: 3.938 kB / 395.3 MB, free: 10.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.04429, allocations: 0 / 395.3 MB, free: 10.68 MB / 330.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.001495/0.04578, allocations: 1.229 MB / 396.5 MB, free: 9.406 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.04581, allocations: 8.031 kB / 396.5 MB, free: 9.398 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001053/0.04687, allocations: 311.7 kB / 396.8 MB, free: 9.094 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000556/0.04742, allocations: 323.3 kB / 397.1 MB, free: 8.746 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.04745, allocations: 25.03 kB / 397.1 MB, free: 8.723 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.408e-05/0.04748, allocations: 36.38 kB / 397.2 MB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007654/0.04825, allocations: 0.6825 MB / 397.9 MB, free: 7.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.04826, allocations: 192 / 397.9 MB, free: 7.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.555e-05/0.04829, allocations: 15.94 kB / 397.9 MB, free: 7.895 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.04829, allocations: 8 kB / 397.9 MB, free: 7.887 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005368/0.04883, allocations: 340 kB / 398.2 MB, free: 7.555 MB / 330.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.001382/0.05021, allocations: 2.172 MB / 400.4 MB, free: 5.305 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006479/0.05086, allocations: 354.5 kB / 400.7 MB, free: 4.945 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.704e-05/0.05094, allocations: 71.62 kB / 400.8 MB, free: 4.871 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01998/0.07092, allocations: 10.94 MB / 411.7 MB, free: 9.914 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.07094, allocations: 41.39 kB / 411.8 MB, free: 9.863 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.463e-06/0.07094, allocations: 0 / 411.8 MB, free: 9.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.001103/0.07205, allocations: 0.5688 MB / 412.4 MB, free: 9.289 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.07209, allocations: 106.8 kB / 412.5 MB, free: 9.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.07228, allocations: 314.1 kB / 412.8 MB, free: 8.836 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.0723, allocations: 33.7 kB / 412.8 MB, free: 8.797 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.07241, allocations: 263 kB / 413.1 MB, free: 8.535 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.888e-05/0.07246, allocations: 91.23 kB / 413.1 MB, free: 8.445 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.866e-05/0.07254, allocations: 83.27 kB / 413.2 MB, free: 8.355 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.07266, allocations: 0.5117 MB / 413.7 MB, free: 7.832 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.063e-05/0.07273, allocations: 55.94 kB / 413.8 MB, free: 7.777 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.07288, allocations: 243 kB / 414 MB, free: 7.473 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002026/0.07308, allocations: 245.1 kB / 414.3 MB, free: 7.188 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.07308, allocations: 0 / 414.3 MB, free: 7.188 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002917/0.07338, allocations: 277 kB / 414.5 MB, free: 6.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.07339, allocations: 8.312 kB / 414.5 MB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.279e-06/0.07339, allocations: 4 kB / 414.5 MB, free: 6.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.0734, allocations: 4 kB / 414.6 MB, free: 6.895 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.07357, allocations: 75.89 kB / 414.6 MB, free: 6.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.07357, allocations: 7.938 kB / 414.6 MB, free: 6.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.07368, allocations: 35.83 kB / 414.7 MB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.07369, allocations: 8 kB / 414.7 MB, free: 6.77 MB / 346.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.0001032/0.0738, allocations: 180.5 kB / 414.9 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.344e-05/0.07385, allocations: 39.81 kB / 414.9 MB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008536/0.0747, allocations: 1.131 MB / 416 MB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.696e-05/0.07472, allocations: 31.95 kB / 416.1 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.07472, allocations: 0 / 416.1 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.07473, allocations: 3.984 kB / 416.1 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004233/0.07515, allocations: 0.6062 MB / 416.7 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.07515, allocations: 4 kB / 416.7 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.07527, allocations: 59.91 kB / 416.7 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.07528, allocations: 0 / 416.7 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.07529, allocations: 11.98 kB / 416.7 MB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.07529, allocations: 0 / 416.7 MB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.07529, allocations: 0 / 416.7 MB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005321/0.07583, allocations: 0.7639 MB / 417.5 MB, free: 3.875 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.029e-05/0.07588, allocations: 91.16 kB / 417.6 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.66e-05/0.07591, allocations: 27.84 kB / 417.6 MB, free: 3.758 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.07602, allocations: 19.98 kB / 417.6 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.57e-05/0.07607, allocations: 31.8 kB / 417.7 MB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.07609, allocations: 12 kB / 417.7 MB, free: 3.695 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001479/0.07624, allocations: 291 kB / 418 MB, free: 3.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.07624, allocations: 0 / 418 MB, free: 3.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001783/0.07802, allocations: 1.002 MB / 419 MB, free: 2.406 MB / 346.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.002539/0.08056, allocations: 1.319 MB / 420.3 MB, free: 1.086 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003051/0.08086, allocations: 274.2 kB / 420.6 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.08087, allocations: 0 / 420.6 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001855/0.08105, allocations: 223.4 kB / 420.8 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005695/0.08162, allocations: 223.2 kB / 421 MB, free: 392 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.08318, allocations: 1.316 MB / 422.3 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.825e-05/0.08328, allocations: 177.5 kB / 422.5 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002408/0.08352, allocations: 252 kB / 422.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003035/0.08383, allocations: 250 kB / 423 MB, free: 14.34 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.08383, allocations: 0 / 423 MB, free: 14.34 MB / 362.7 MB Notification: Performance of Templates: time 0.1381/0.2219, allocations: 45.27 MB / 468.2 MB, free: 53.59 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 5.43313345592469]