Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009318/0.0009321, allocations: 198.2 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 226.5 MB / 244.1 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007667/0.0007668, allocations: 105.3 kB / 296.1 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.365/0.365, allocations: 44.83 MB / 393 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004453/0.0004454, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4126/0.4131, allocations: 62.96 MB / 0.5165 GB, free: 37.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.317/6.73, allocations: 2.761 GB / 3.277 GB, free: 5.984 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/6.731, allocations: 87.95 kB / 3.277 GB, free: 5.898 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.7982/7.529, allocations: 219.5 MB / 3.492 GB, free: 16.24 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.164e-06/7.529, allocations: 0 / 3.492 GB, free: 16.24 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.109e-05/7.529, allocations: 12 kB / 3.492 GB, free: 16.23 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.005808/7.535, allocations: 1.208 MB / 3.493 GB, free: 14.97 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/7.535, allocations: 8.031 kB / 3.493 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001738/7.537, allocations: 220.3 kB / 3.493 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005395/7.537, allocations: 383.2 kB / 3.493 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/7.537, allocations: 25.78 kB / 3.493 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.755e-05/7.537, allocations: 28 kB / 3.494 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/7.539, allocations: 0.6065 MB / 3.494 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/7.539, allocations: 3.938 kB / 3.494 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.637e-05/7.539, allocations: 12 kB / 3.494 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/7.539, allocations: 8 kB / 3.494 GB, free: 13.61 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/7.54, allocations: 0.5602 MB / 3.495 GB, free: 13.05 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.002336/7.542, allocations: 2.603 MB / 3.497 GB, free: 10.21 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001356/7.544, allocations: 470.1 kB / 3.498 GB, free: 9.742 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003753/7.544, allocations: 181.6 kB / 3.498 GB, free: 9.562 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3469/7.891, allocations: 26.64 MB / 3.524 GB, free: 83.55 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.197e-05/7.891, allocations: 40.56 kB / 3.524 GB, free: 83.51 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=25): time 2.865e-06/7.891, allocations: 0 / 3.524 GB, free: 83.51 MB / 0.5417 GB Notification: Performance of matching and sorting (n=25): time 0.002942/7.894, allocations: 0.8054 MB / 3.525 GB, free: 83.48 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/7.894, allocations: 107.8 kB / 3.525 GB, free: 83.35 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003902/7.895, allocations: 307.3 kB / 3.525 GB, free: 83.25 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/7.895, allocations: 32.52 kB / 3.525 GB, free: 83.22 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/7.895, allocations: 208.2 kB / 3.525 GB, free: 83.12 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 7.168e-05/7.895, allocations: 88.89 kB / 3.525 GB, free: 83.08 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.75e-05/7.895, allocations: 5.094 kB / 3.525 GB, free: 83.08 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.455e-05/7.895, allocations: 347.4 kB / 3.526 GB, free: 82.77 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003518/7.895, allocations: 143.7 kB / 3.526 GB, free: 82.77 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004005/7.896, allocations: 236.7 kB / 3.526 GB, free: 82.67 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007496/7.896, allocations: 372.5 kB / 3.526 GB, free: 82.58 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/7.897, allocations: 2.812 kB / 3.526 GB, free: 82.58 MB / 0.5417 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008748/7.897, allocations: 434.3 kB / 3.527 GB, free: 82.53 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/7.897, allocations: 12.09 kB / 3.527 GB, free: 82.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/7.897, allocations: 2.875 kB / 3.527 GB, free: 82.53 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/7.897, allocations: 2.844 kB / 3.527 GB, free: 82.53 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003193/7.898, allocations: 89.55 kB / 3.527 GB, free: 82.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/7.898, allocations: 2.688 kB / 3.527 GB, free: 82.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003304/7.898, allocations: 63.03 kB / 3.527 GB, free: 82.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.964e-05/7.898, allocations: 16.59 kB / 3.527 GB, free: 82.52 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.0001668/7.898, allocations: 169 kB / 3.527 GB, free: 82.41 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.772e-05/7.898, allocations: 31.19 kB / 3.527 GB, free: 82.39 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002052/7.9, allocations: 1.911 MB / 3.529 GB, free: 82.21 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.467e-05/7.901, allocations: 31.94 kB / 3.529 GB, free: 82.21 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/7.901, allocations: 0 / 3.529 GB, free: 82.21 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/7.901, allocations: 2.625 kB / 3.529 GB, free: 82.21 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008637/7.901, allocations: 0.9985 MB / 3.53 GB, free: 81.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/7.901, allocations: 3.594 kB / 3.53 GB, free: 81.97 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/7.902, allocations: 80 kB / 3.53 GB, free: 81.97 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/7.902, allocations: 2.656 kB / 3.53 GB, free: 81.97 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.23e-05/7.902, allocations: 9.984 kB / 3.53 GB, free: 81.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/7.902, allocations: 3.812 kB / 3.53 GB, free: 81.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/7.902, allocations: 0 / 3.53 GB, free: 81.97 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/7.903, allocations: 1.09 MB / 3.531 GB, free: 81.74 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/7.903, allocations: 226.3 kB / 3.531 GB, free: 81.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.765e-05/7.903, allocations: 7.812 kB / 3.531 GB, free: 81.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002883/7.903, allocations: 43.83 kB / 3.532 GB, free: 81.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.432e-05/7.904, allocations: 32.53 kB / 3.532 GB, free: 81.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/7.904, allocations: 19.14 kB / 3.532 GB, free: 81.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002936/7.904, allocations: 320.4 kB / 3.532 GB, free: 81.52 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.122e-06/7.904, allocations: 0 / 3.532 GB, free: 81.52 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005039/7.909, allocations: 1.017 MB / 3.533 GB, free: 81.52 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.006569/7.916, allocations: 1.382 MB / 3.534 GB, free: 81.41 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001178/7.917, allocations: 0.6057 MB / 3.535 GB, free: 81.39 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/7.917, allocations: 0 / 3.535 GB, free: 81.39 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005581/7.917, allocations: 0.5121 MB / 3.535 GB, free: 81.39 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/7.918, allocations: 201.8 kB / 3.536 GB, free: 81.39 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/7.92, allocations: 1.896 MB / 3.537 GB, free: 80.53 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/7.921, allocations: 0.9668 MB / 3.538 GB, free: 79.82 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/7.921, allocations: 40.22 kB / 3.538 GB, free: 79.82 MB / 0.5417 GB Notification: Performance of SimCode: time 4.71e-07/7.921, allocations: 0 / 3.538 GB, free: 79.82 MB / 0.5417 GB Notification: Performance of Templates: time 0.04168/7.962, allocations: 23.96 MB / 3.562 GB, free: 79.09 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches