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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002248/0.002248, allocations: 196.7 kB / 18.1 MB, free: 3.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.663/1.663, allocations: 226.5 MB / 245.4 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009845/0.0009846, allocations: 94.95 kB / 297.4 MB, free: 6.723 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.5586/0.5586, allocations: 44.82 MB / 394.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003687/0.0003688, allocations: 11.98 kB / 467.9 MB, free: 12.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.542/0.5424, allocations: 62.96 MB / 0.5184 GB, free: 37.56 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.411/6.954, allocations: 2.761 GB / 3.279 GB, free: 7.031 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/6.954, allocations: 91.94 kB / 3.279 GB, free: 6.945 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.6605/7.615, allocations: 219.5 MB / 3.494 GB, free: 16.57 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.455e-06/7.615, allocations: 0 / 3.494 GB, free: 16.57 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.813e-05/7.615, allocations: 12 kB / 3.494 GB, free: 16.55 MB / 0.5417 GB 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.005028/7.62, allocations: 1.208 MB / 3.495 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/7.62, allocations: 11.97 kB / 3.495 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001734/7.622, allocations: 224.2 kB / 3.495 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006089/7.622, allocations: 375.2 kB / 3.495 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.909e-05/7.622, allocations: 29.78 kB / 3.495 GB, free: 14.63 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.138e-05/7.622, allocations: 27.98 kB / 3.495 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/7.624, allocations: 0.6064 MB / 3.496 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/7.624, allocations: 3.938 kB / 3.496 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.837e-05/7.624, allocations: 12 kB / 3.496 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/7.624, allocations: 8 kB / 3.496 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001418/7.625, allocations: 0.5602 MB / 3.497 GB, free: 13.37 MB / 0.5417 GB 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.002572/7.628, allocations: 2.607 MB / 3.499 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001328/7.629, allocations: 470.1 kB / 3.5 GB, free: 10.06 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003543/7.63, allocations: 181.6 kB / 3.5 GB, free: 9.879 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3006/7.93, allocations: 26.63 MB / 3.526 GB, free: 84.57 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/7.93, allocations: 38.03 kB / 3.526 GB, free: 84.53 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=25): time 1.954e-06/7.93, allocations: 0 / 3.526 GB, free: 84.53 MB / 0.5417 GB Notification: Performance of matching and sorting (n=25): time 0.002421/7.933, allocations: 0.8134 MB / 3.527 GB, free: 84.5 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/7.933, allocations: 109 kB / 3.527 GB, free: 84.37 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002826/7.933, allocations: 309.5 kB / 3.527 GB, free: 84.27 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/7.933, allocations: 28.83 kB / 3.527 GB, free: 84.24 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.794e-05/7.933, allocations: 207.8 kB / 3.527 GB, free: 84.14 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.027e-05/7.933, allocations: 90.25 kB / 3.527 GB, free: 84.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.39e-05/7.933, allocations: 3.312 kB / 3.527 GB, free: 84.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.659e-05/7.933, allocations: 343.9 kB / 3.528 GB, free: 83.79 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003242/7.934, allocations: 146.4 kB / 3.528 GB, free: 83.79 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003551/7.934, allocations: 233.2 kB / 3.528 GB, free: 83.69 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006409/7.935, allocations: 371 kB / 3.528 GB, free: 83.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/7.935, allocations: 0 / 3.528 GB, free: 83.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008097/7.935, allocations: 435.1 kB / 3.529 GB, free: 83.55 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/7.936, allocations: 7.562 kB / 3.529 GB, free: 83.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/7.936, allocations: 0 / 3.529 GB, free: 83.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/7.936, allocations: 4.281 kB / 3.529 GB, free: 83.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002989/7.936, allocations: 92.48 kB / 3.529 GB, free: 83.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/7.936, allocations: 9.719 kB / 3.529 GB, free: 83.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003021/7.936, allocations: 56.34 kB / 3.529 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/7.936, allocations: 18.75 kB / 3.529 GB, free: 83.54 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001469/7.936, allocations: 167.6 kB / 3.529 GB, free: 83.43 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.444e-05/7.936, allocations: 31.16 kB / 3.529 GB, free: 83.41 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001863/7.938, allocations: 1.911 MB / 3.531 GB, free: 83.23 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.17e-05/7.938, allocations: 32.81 kB / 3.531 GB, free: 83.23 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/7.938, allocations: 0 / 3.531 GB, free: 83.23 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/7.938, allocations: 7.812 kB / 3.531 GB, free: 83.23 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007636/7.939, allocations: 0.9977 MB / 3.532 GB, free: 82.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/7.939, allocations: 0 / 3.532 GB, free: 82.99 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002804/7.939, allocations: 80.44 kB / 3.532 GB, free: 82.99 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/7.939, allocations: 3.938 kB / 3.532 GB, free: 82.99 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/7.939, allocations: 10.16 kB / 3.532 GB, free: 82.99 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/7.939, allocations: 3.938 kB / 3.532 GB, free: 82.99 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/7.939, allocations: 0 / 3.532 GB, free: 82.99 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/7.941, allocations: 1.094 MB / 3.533 GB, free: 82.76 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/7.941, allocations: 221 kB / 3.533 GB, free: 82.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.292e-05/7.941, allocations: 9.469 kB / 3.533 GB, free: 82.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002828/7.941, allocations: 44.64 kB / 3.533 GB, free: 82.62 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.916e-05/7.941, allocations: 35.34 kB / 3.534 GB, free: 82.62 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.04e-05/7.941, allocations: 8.5 kB / 3.534 GB, free: 82.62 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002726/7.942, allocations: 325 kB / 3.534 GB, free: 82.54 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.61e-07/7.942, allocations: 0 / 3.534 GB, free: 82.54 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.003901/7.945, allocations: 1.017 MB / 3.535 GB, free: 82.54 MB / 0.5417 GB 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,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004719/7.95, allocations: 1.383 MB / 3.536 GB, free: 82.43 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001068/7.951, allocations: 0.606 MB / 3.537 GB, free: 82.41 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/7.951, allocations: 3.969 kB / 3.537 GB, free: 82.41 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005419/7.952, allocations: 0.5124 MB / 3.537 GB, free: 82.41 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/7.953, allocations: 198.6 kB / 3.537 GB, free: 82.41 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/7.955, allocations: 1.871 MB / 3.539 GB, free: 81.58 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/7.955, allocations: 0.9651 MB / 3.54 GB, free: 80.87 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0003938/7.955, allocations: 251 kB / 3.54 GB, free: 80.87 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.479e-05/7.955, allocations: 40.16 kB / 3.541 GB, free: 80.86 MB / 0.5417 GB Notification: Performance of SimCode: time 4.51e-07/7.955, allocations: 0 / 3.541 GB, free: 80.86 MB / 0.5417 GB Notification: Performance of Templates: time 0.04287/7.998, allocations: 33.55 MB / 3.573 GB, free: 80.12 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches