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.0009958/0.0009958, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 225.6 MB / 234.8 MB, free: 3.191 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008312/0.0008312, allocations: 99.44 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2054/0.2054, allocations: 45.15 MB / 383.8 MB, free: 216 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.313e-05/1.316e-05, allocations: 4 kB / 453.2 MB, free: 75.8 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1155, allocations: 63.25 MB / 0.5044 GB, free: 12.6 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.519/6.634, allocations: 2.76 GB / 3.264 GB, free: 82.96 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/6.634, allocations: 82.91 kB / 3.264 GB, free: 82.94 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.7375/7.372, allocations: 216.2 MB / 3.475 GB, free: 82.37 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.916e-06/7.372, allocations: 0 / 3.475 GB, free: 82.37 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.762e-05/7.372, allocations: 12 kB / 3.475 GB, free: 82.36 MB / 0.5261 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.00587/7.378, allocations: 1.171 MB / 3.477 GB, free: 81.15 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/7.378, allocations: 8.031 kB / 3.477 GB, free: 81.14 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002045/7.38, allocations: 223.3 kB / 3.477 GB, free: 80.92 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007192/7.381, allocations: 373.8 kB / 3.477 GB, free: 80.53 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/7.381, allocations: 12 kB / 3.477 GB, free: 80.52 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.736e-05/7.381, allocations: 20 kB / 3.477 GB, free: 80.5 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004689/7.381, allocations: 297.5 kB / 3.478 GB, free: 80.21 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005125/7.382, allocations: 381.4 kB / 3.478 GB, free: 79.79 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/7.382, allocations: 4 kB / 3.478 GB, free: 79.79 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.336e-05/7.382, allocations: 0 / 3.478 GB, free: 79.79 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/7.382, allocations: 15.89 kB / 3.478 GB, free: 79.77 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.01622/7.398, allocations: 10.85 MB / 3.488 GB, free: 67.84 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004009/7.399, allocations: 234.6 kB / 3.489 GB, free: 67.61 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/7.399, allocations: 124.8 kB / 3.489 GB, free: 67.48 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04153/7.44, allocations: 26.71 MB / 3.515 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/7.441, allocations: 30.56 kB / 3.515 GB, free: 37.34 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 2.425e-06/7.441, allocations: 0 / 3.515 GB, free: 37.34 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.001738/7.442, allocations: 0.514 MB / 3.515 GB, free: 36.82 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/7.442, allocations: 110.8 kB / 3.516 GB, free: 36.69 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002618/7.443, allocations: 222.3 kB / 3.516 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.537e-05/7.443, allocations: 29.7 kB / 3.516 GB, free: 36.43 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.536e-05/7.443, allocations: 215.7 kB / 3.516 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.98e-05/7.443, allocations: 74.84 kB / 3.516 GB, free: 36.14 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.456e-05/7.443, allocations: 0 / 3.516 GB, free: 36.14 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.706e-05/7.443, allocations: 342.8 kB / 3.516 GB, free: 35.79 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/7.443, allocations: 87.92 kB / 3.516 GB, free: 35.71 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/7.443, allocations: 171.1 kB / 3.517 GB, free: 35.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006433/7.444, allocations: 169.1 kB / 3.517 GB, free: 35.34 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/7.444, allocations: 0 / 3.517 GB, free: 35.34 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008551/7.445, allocations: 366.7 kB / 3.517 GB, free: 34.97 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/7.445, allocations: 4 kB / 3.517 GB, free: 34.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/7.445, allocations: 7.953 kB / 3.517 GB, free: 34.96 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/7.445, allocations: 4 kB / 3.517 GB, free: 34.96 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003312/7.445, allocations: 88.2 kB / 3.517 GB, free: 34.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/7.445, allocations: 7.984 kB / 3.517 GB, free: 34.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003715/7.446, allocations: 55.66 kB / 3.517 GB, free: 34.81 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/7.446, allocations: 16 kB / 3.517 GB, free: 34.79 MB / 0.5261 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 () * 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.0001068/7.446, allocations: 116.9 kB / 3.517 GB, free: 34.68 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.495e-05/7.446, allocations: 31.7 kB / 3.517 GB, free: 34.64 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001631/7.447, allocations: 1.624 MB / 3.519 GB, free: 33.01 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.262e-05/7.447, allocations: 27.91 kB / 3.519 GB, free: 32.98 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/7.447, allocations: 0 / 3.519 GB, free: 32.98 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/7.447, allocations: 0 / 3.519 GB, free: 32.98 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008078/7.448, allocations: 0.8504 MB / 3.52 GB, free: 32.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/7.448, allocations: 0 / 3.52 GB, free: 32.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002861/7.449, allocations: 79.88 kB / 3.52 GB, free: 32.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/7.449, allocations: 3.984 kB / 3.52 GB, free: 32.02 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/7.449, allocations: 8 kB / 3.52 GB, free: 32.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/7.449, allocations: 0 / 3.52 GB, free: 32.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/7.449, allocations: 0 / 3.52 GB, free: 32.01 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/7.45, allocations: 0.9188 MB / 3.521 GB, free: 31.07 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002194/7.45, allocations: 223.5 kB / 3.521 GB, free: 30.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.637e-05/7.45, allocations: 0 / 3.521 GB, free: 30.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003166/7.45, allocations: 31.97 kB / 3.521 GB, free: 30.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.819e-05/7.45, allocations: 32.23 kB / 3.521 GB, free: 30.77 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/7.451, allocations: 15.98 kB / 3.521 GB, free: 30.76 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002759/7.451, allocations: 282.9 kB / 3.521 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/7.451, allocations: 0 / 3.521 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0047/7.455, allocations: 1.007 MB / 3.522 GB, free: 29.47 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.007391/7.463, allocations: 1.44 MB / 3.524 GB, free: 28.12 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0007253/7.464, allocations: 462 kB / 3.524 GB, free: 27.67 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/7.464, allocations: 0 / 3.524 GB, free: 27.67 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003883/7.464, allocations: 425.7 kB / 3.525 GB, free: 27.25 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/7.465, allocations: 168.1 kB / 3.525 GB, free: 27.09 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/7.467, allocations: 1.027 MB / 3.526 GB, free: 26.04 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/7.467, allocations: 0.9636 MB / 3.527 GB, free: 25.05 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0003911/7.467, allocations: 251.2 kB / 3.527 GB, free: 24.81 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.857e-05/7.467, allocations: 35.42 kB / 3.527 GB, free: 24.78 MB / 0.5261 GB Notification: Performance of SimCode: time 3.6e-07/7.467, allocations: 4 kB / 3.527 GB, free: 24.77 MB / 0.5261 GB Notification: Performance of Templates: time 0.3085/7.776, allocations: 27.67 MB / 3.554 GB, free: 100.7 MB / 0.5261 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/jenkins/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