Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,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.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,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.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001039/0.001039, allocations: 194.5 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.278/1.278, allocations: 226.5 MB / 244.1 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008053/0.0008052, allocations: 109.8 kB / 296.1 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3891/0.3891, allocations: 44.82 MB / 393 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002791/0.0002792, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.3881, allocations: 62.95 MB / 0.5165 GB, free: 37.39 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.421/6.809, allocations: 2.761 GB / 3.277 GB, free: 6.996 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/6.809, allocations: 91.94 kB / 3.277 GB, free: 6.906 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.741/7.55, allocations: 219.7 MB / 3.492 GB, free: 17.1 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.765e-06/7.55, allocations: 0 / 3.492 GB, free: 17.1 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.109e-05/7.55, allocations: 8 kB / 3.492 GB, free: 17.09 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.005384/7.556, allocations: 1.228 MB / 3.493 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/7.556, allocations: 12.03 kB / 3.493 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00161/7.557, allocations: 220.2 kB / 3.493 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000478/7.558, allocations: 383.1 kB / 3.493 GB, free: 15.17 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.143e-05/7.558, allocations: 21.78 kB / 3.493 GB, free: 15.15 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.937e-05/7.558, allocations: 36 kB / 3.493 GB, free: 15.12 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/7.559, allocations: 0.6182 MB / 3.494 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/7.559, allocations: 7.875 kB / 3.494 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.933e-05/7.559, allocations: 12 kB / 3.494 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/7.559, allocations: 8 kB / 3.494 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/7.561, allocations: 0.5836 MB / 3.495 GB, free: 13.85 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.002571/7.563, allocations: 2.599 MB / 3.497 GB, free: 11.01 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/7.565, allocations: 490 kB / 3.498 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004415/7.565, allocations: 197.4 kB / 3.498 GB, free: 10.33 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3436/7.909, allocations: 26.63 MB / 3.524 GB, free: 84.31 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/7.909, allocations: 33.97 kB / 3.524 GB, free: 84.27 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=25): time 3.527e-06/7.909, allocations: 3.969 kB / 3.524 GB, free: 84.27 MB / 0.5417 GB Notification: Performance of matching and sorting (n=25): time 0.002691/7.911, allocations: 0.8544 MB / 3.525 GB, free: 84.24 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/7.912, allocations: 110.2 kB / 3.525 GB, free: 84.12 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003206/7.912, allocations: 314 kB / 3.525 GB, free: 84.02 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/7.912, allocations: 28.58 kB / 3.525 GB, free: 83.98 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000105/7.912, allocations: 207 kB / 3.525 GB, free: 83.89 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.265e-05/7.912, allocations: 88.7 kB / 3.525 GB, free: 83.85 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.667e-05/7.912, allocations: 3.438 kB / 3.525 GB, free: 83.85 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.959e-05/7.912, allocations: 346.2 kB / 3.526 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/7.913, allocations: 161 kB / 3.526 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004398/7.913, allocations: 250.8 kB / 3.526 GB, free: 83.43 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007725/7.914, allocations: 404.1 kB / 3.527 GB, free: 83.35 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/7.914, allocations: 0 / 3.527 GB, free: 83.35 MB / 0.5417 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009352/7.915, allocations: 456.5 kB / 3.527 GB, free: 83.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/7.915, allocations: 7.125 kB / 3.527 GB, free: 83.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/7.915, allocations: 3.844 kB / 3.527 GB, free: 83.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/7.915, allocations: 3.938 kB / 3.527 GB, free: 83.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003421/7.915, allocations: 100.2 kB / 3.527 GB, free: 83.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/7.915, allocations: 8.562 kB / 3.527 GB, free: 83.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003535/7.916, allocations: 70.59 kB / 3.527 GB, free: 83.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.955e-05/7.916, allocations: 18.95 kB / 3.527 GB, free: 83.29 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: 4 (SourceP1.medium.phase,SinkP1.medium.phase,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.000169/7.916, allocations: 165.9 kB / 3.527 GB, free: 83.17 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.722e-05/7.916, allocations: 36.25 kB / 3.527 GB, free: 83.15 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002102/7.918, allocations: 1.933 MB / 3.529 GB, free: 82.97 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.178e-05/7.918, allocations: 27.41 kB / 3.529 GB, free: 82.97 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/7.918, allocations: 0.8438 kB / 3.529 GB, free: 82.97 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/7.918, allocations: 7.984 kB / 3.529 GB, free: 82.97 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008572/7.919, allocations: 1.005 MB / 3.53 GB, free: 82.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/7.919, allocations: 0 / 3.53 GB, free: 82.74 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/7.919, allocations: 95.95 kB / 3.53 GB, free: 82.74 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/7.919, allocations: 2.906 kB / 3.53 GB, free: 82.74 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/7.919, allocations: 6.969 kB / 3.53 GB, free: 82.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/7.919, allocations: 0 / 3.53 GB, free: 82.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/7.919, allocations: 3.656 kB / 3.53 GB, free: 82.74 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/7.921, allocations: 1.122 MB / 3.531 GB, free: 82.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/7.921, allocations: 218.8 kB / 3.532 GB, free: 82.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.64e-05/7.921, allocations: 9.969 kB / 3.532 GB, free: 82.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/7.921, allocations: 56.28 kB / 3.532 GB, free: 82.36 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.079e-05/7.921, allocations: 32.45 kB / 3.532 GB, free: 82.36 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.216e-05/7.921, allocations: 10.67 kB / 3.532 GB, free: 82.36 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003023/7.922, allocations: 325.4 kB / 3.532 GB, free: 82.28 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.92e-07/7.922, allocations: 0 / 3.532 GB, free: 82.28 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004791/7.926, allocations: 1.021 MB / 3.533 GB, free: 82.28 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: 18 ($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) * 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.007827/7.934, allocations: 1.38 MB / 3.534 GB, free: 82.18 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001375/7.936, allocations: 0.6266 MB / 3.535 GB, free: 82.16 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/7.936, allocations: 2.625 kB / 3.535 GB, free: 82.16 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0006172/7.936, allocations: 0.5314 MB / 3.536 GB, free: 82.16 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/7.937, allocations: 209.1 kB / 3.536 GB, free: 82.16 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/7.94, allocations: 1.903 MB / 3.538 GB, free: 81.29 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/7.94, allocations: 0.9627 MB / 3.539 GB, free: 80.59 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/7.94, allocations: 43 kB / 3.539 GB, free: 80.58 MB / 0.5417 GB Notification: Performance of SimCode: time 5.41e-07/7.94, allocations: 5.391 kB / 3.539 GB, free: 80.58 MB / 0.5417 GB Notification: Performance of Templates: time 0.04426/7.984, allocations: 24 MB / 3.562 GB, free: 79.86 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches