Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00115/0.00115, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001252/0.001253, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2013/0.2013, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 75.89 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1055, allocations: 62.45 MB / 481.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02684/0.1324, allocations: 28.27 MB / 0.4978 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.215/0.3474, allocations: 13.29 MB / 0.5108 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002629/0.3477, allocations: 10.38 kB / 0.5108 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006568/0.3484, allocations: 256 kB / 0.511 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009578/0.358, allocations: 3.673 MB / 0.5146 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006544/0.3646, allocations: 2.37 MB / 0.5169 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001206/0.3658, allocations: 0.8965 MB / 0.5178 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003774/0.3662, allocations: 253.2 kB / 0.518 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006779/0.3669, allocations: 449.1 kB / 0.5185 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002875/0.3672, allocations: 265.2 kB / 0.5187 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.534e-05/0.3672, allocations: 34.22 kB / 0.5188 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01714/0.3844, allocations: 7.23 MB / 0.5258 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001795/0.3846, allocations: 105.6 kB / 0.5259 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003867/0.385, allocations: 215 kB / 0.5261 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.3952, allocations: 4.428 MB / 0.5304 GB, free: 8.246 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3952, allocations: 0 / 0.5304 GB, free: 8.246 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3952, allocations: 0 / 0.5304 GB, free: 8.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.305e-06/0.3952, allocations: 0 / 0.5304 GB, free: 8.246 MB / 382.1 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.003444/0.3987, allocations: 1.24 MB / 0.5317 GB, free: 7.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.3987, allocations: 9.812 kB / 0.5317 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001638/0.4004, allocations: 217.9 kB / 0.5319 GB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005086/0.4009, allocations: 385.6 kB / 0.5322 GB, free: 6.906 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.4009, allocations: 26.59 kB / 0.5323 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.069e-05/0.401, allocations: 27.84 kB / 0.5323 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.4023, allocations: 0.5875 MB / 0.5329 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.4024, allocations: 3.625 kB / 0.5329 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.4024, allocations: 12.12 kB / 0.5329 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/0.4024, allocations: 6.875 kB / 0.5329 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001449/0.4039, allocations: 0.5546 MB / 0.5334 GB, free: 6.23 MB / 382.1 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.00233/0.4062, allocations: 2.616 MB / 0.536 GB, free: 3.754 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.4076, allocations: 467.6 kB / 0.5364 GB, free: 3.523 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003896/0.408, allocations: 211.5 kB / 0.5366 GB, free: 3.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04556/0.4536, allocations: 26.88 MB / 0.5629 GB, free: 8.258 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.182e-05/0.4536, allocations: 38.56 kB / 0.5629 GB, free: 8.211 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.344e-06/0.4536, allocations: 0 / 0.5629 GB, free: 8.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002871/0.4565, allocations: 0.8175 MB / 0.5637 GB, free: 7.387 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.4566, allocations: 110.8 kB / 0.5638 GB, free: 7.254 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003392/0.4569, allocations: 308.5 kB / 0.5641 GB, free: 6.949 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.192e-05/0.457, allocations: 29.7 kB / 0.5641 GB, free: 6.914 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.4571, allocations: 208.2 kB / 0.5643 GB, free: 6.707 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.883e-05/0.4572, allocations: 84.19 kB / 0.5644 GB, free: 6.625 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.4573, allocations: 73.59 kB / 0.5645 GB, free: 6.539 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.4575, allocations: 346.8 kB / 0.5648 GB, free: 6.191 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003941/0.4579, allocations: 149.7 kB / 0.565 GB, free: 6.047 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004448/0.4583, allocations: 244.9 kB / 0.5652 GB, free: 5.773 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007851/0.4591, allocations: 381.2 kB / 0.5656 GB, free: 5.367 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4591, allocations: 0 / 0.5656 GB, free: 5.367 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001013/0.4602, allocations: 440.8 kB / 0.566 GB, free: 4.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.4602, allocations: 4.312 kB / 0.566 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.4602, allocations: 8 kB / 0.566 GB, free: 4.918 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.4602, allocations: 4 kB / 0.566 GB, free: 4.914 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003368/0.4606, allocations: 95.75 kB / 0.5661 GB, free: 4.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.4606, allocations: 7.984 kB / 0.5661 GB, free: 4.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002985/0.4609, allocations: 55.64 kB / 0.5662 GB, free: 4.758 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.07e-05/0.4609, allocations: 12 kB / 0.5662 GB, free: 4.746 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (SinkP1.medium.phase,SourceP1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001597/0.4611, allocations: 161.8 kB / 0.5663 GB, free: 4.578 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.574e-05/0.4612, allocations: 35.62 kB / 0.5664 GB, free: 4.543 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002291/0.4635, allocations: 1.905 MB / 0.5682 GB, free: 2.637 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.796e-05/0.4635, allocations: 32.45 kB / 0.5682 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.4635, allocations: 0 / 0.5682 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4636, allocations: 3.984 kB / 0.5682 GB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009202/0.4645, allocations: 1.02 MB / 0.5692 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.4645, allocations: 4 kB / 0.5692 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003069/0.4648, allocations: 75.92 kB / 0.5693 GB, free: 1.461 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.4648, allocations: 3.938 kB / 0.5693 GB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.4649, allocations: 8 kB / 0.5693 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.4649, allocations: 8.812 kB / 0.5693 GB, free: 1.441 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4649, allocations: 1.078 kB / 0.5693 GB, free: 1.441 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.4663, allocations: 1.1 MB / 0.5704 GB, free: 332 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.4664, allocations: 159.8 kB / 0.5706 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.085e-05/0.4665, allocations: 27.75 kB / 0.5706 GB, free: 124 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002752/0.4668, allocations: 31.91 kB / 0.5706 GB, free: 92 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.552e-05/0.4669, allocations: 31.95 kB / 0.5707 GB, free: 60 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.599e-05/0.4669, allocations: 11.98 kB / 0.5707 GB, free: 48 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003509/0.4673, allocations: 324 kB / 0.571 GB, free: 15.73 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4673, allocations: 0 / 0.571 GB, free: 15.73 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003365/0.4707, allocations: 0.9994 MB / 0.5719 GB, free: 14.73 MB / 430.1 MB 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,$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) * 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.005954/0.4766, allocations: 1.183 MB / 0.5731 GB, free: 13.64 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.4779, allocations: 0.6069 MB / 0.5737 GB, free: 13.04 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.4779, allocations: 4 kB / 0.5737 GB, free: 13.03 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006791/0.4786, allocations: 0.5205 MB / 0.5742 GB, free: 12.51 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.4797, allocations: 223.7 kB / 0.5744 GB, free: 12.31 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.482, allocations: 1.511 MB / 0.5759 GB, free: 10.77 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005714/0.4826, allocations: 0.9677 MB / 0.5768 GB, free: 9.781 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004936/0.4831, allocations: 274.8 kB / 0.5771 GB, free: 9.516 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.4833, allocations: 43.44 kB / 0.5771 GB, free: 9.473 MB / 430.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4833, allocations: 0 / 0.5771 GB, free: 9.473 MB / 430.1 MB Notification: Performance of Templates: time 0.05176/0.535, allocations: 39.51 MB / 0.6157 GB, free: 2.047 MB / 462.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches