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.001113/0.001113, allocations: 115.9 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.001233/0.001233, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2189/0.2189, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 71.88 kB / 419 MB, free: 18.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1313, allocations: 62.45 MB / 481.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02873/0.1601, allocations: 28.26 MB / 0.4978 GB, free: 8.148 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2353/0.3954, allocations: 13.31 MB / 0.5108 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003891/0.3958, allocations: 11.94 kB / 0.5108 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007114/0.3966, allocations: 250.8 kB / 0.511 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009797/0.4064, allocations: 3.663 MB / 0.5146 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005902/0.4123, allocations: 2.375 MB / 0.5169 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00129/0.4136, allocations: 0.8968 MB / 0.5178 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003467/0.414, allocations: 247.2 kB / 0.518 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006943/0.4147, allocations: 453 kB / 0.5185 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003064/0.415, allocations: 270.6 kB / 0.5187 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.594e-05/0.4151, allocations: 34.38 kB / 0.5188 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01512/0.4302, allocations: 7.233 MB / 0.5258 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002097/0.4305, allocations: 100.3 kB / 0.5259 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004746/0.4309, allocations: 219.6 kB / 0.5261 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01147/0.4424, allocations: 4.422 MB / 0.5304 GB, free: 8.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.4425, allocations: 1.469 kB / 0.5304 GB, free: 8.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4425, allocations: 0 / 0.5304 GB, free: 8.457 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.4425, allocations: 0 / 0.5304 GB, free: 8.457 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.003763/0.4463, allocations: 1.243 MB / 0.5317 GB, free: 7.555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.4463, allocations: 9.125 kB / 0.5317 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001644/0.448, allocations: 213.9 kB / 0.5319 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004809/0.4485, allocations: 384.9 kB / 0.5322 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.857e-05/0.4485, allocations: 26.78 kB / 0.5323 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.867e-05/0.4485, allocations: 26.44 kB / 0.5323 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.4499, allocations: 0.5951 MB / 0.5329 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.4499, allocations: 7.609 kB / 0.5329 GB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.45, allocations: 14.12 kB / 0.5329 GB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.45, allocations: 8.406 kB / 0.5329 GB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001475/0.4515, allocations: 0.549 MB / 0.5334 GB, free: 6.438 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.002391/0.4539, allocations: 2.621 MB / 0.536 GB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.4552, allocations: 466.3 kB / 0.5364 GB, free: 3.727 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003839/0.4556, allocations: 200.3 kB / 0.5366 GB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04492/0.5006, allocations: 26.88 MB / 0.5629 GB, free: 8.398 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.721e-05/0.5007, allocations: 46.48 kB / 0.5629 GB, free: 8.348 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.304e-06/0.5007, allocations: 4 kB / 0.5629 GB, free: 8.344 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002799/0.5035, allocations: 0.8175 MB / 0.5637 GB, free: 7.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.587e-05/0.5035, allocations: 106.8 kB / 0.5638 GB, free: 7.391 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003266/0.5039, allocations: 304.6 kB / 0.5641 GB, free: 7.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.5039, allocations: 29.7 kB / 0.5641 GB, free: 7.055 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.5041, allocations: 216.1 kB / 0.5644 GB, free: 6.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.455e-05/0.5041, allocations: 85.59 kB / 0.5644 GB, free: 6.758 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.5043, allocations: 73.59 kB / 0.5645 GB, free: 6.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.5044, allocations: 340.1 kB / 0.5648 GB, free: 6.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003969/0.5048, allocations: 149.7 kB / 0.565 GB, free: 6.195 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004385/0.5053, allocations: 244.8 kB / 0.5652 GB, free: 5.918 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007843/0.5061, allocations: 385.2 kB / 0.5656 GB, free: 5.508 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.5061, allocations: 4 kB / 0.5656 GB, free: 5.504 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009671/0.507, allocations: 436.8 kB / 0.566 GB, free: 5.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.5071, allocations: 4 kB / 0.566 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.5071, allocations: 4 kB / 0.566 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.5071, allocations: 4 kB / 0.566 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003346/0.5074, allocations: 99.8 kB / 0.5661 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.5075, allocations: 4.312 kB / 0.5661 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002808/0.5077, allocations: 51.66 kB / 0.5662 GB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.16e-05/0.5078, allocations: 16.5 kB / 0.5662 GB, free: 4.891 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.0001708/0.508, allocations: 157.8 kB / 0.5663 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.675e-05/0.508, allocations: 31.62 kB / 0.5663 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002296/0.5103, allocations: 1.916 MB / 0.5682 GB, free: 2.781 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-05/0.5104, allocations: 35.83 kB / 0.5683 GB, free: 2.746 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.5104, allocations: 0 / 0.5683 GB, free: 2.746 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.5104, allocations: 0 / 0.5683 GB, free: 2.746 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009383/0.5113, allocations: 1.017 MB / 0.5692 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.5114, allocations: 3.984 kB / 0.5692 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000314/0.5117, allocations: 75.88 kB / 0.5693 GB, free: 1.609 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.5117, allocations: 0 / 0.5693 GB, free: 1.609 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/0.5117, allocations: 15.94 kB / 0.5693 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.5117, allocations: 7.922 kB / 0.5693 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.5117, allocations: 0 / 0.5693 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.5132, allocations: 1.096 MB / 0.5704 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.5133, allocations: 163.8 kB / 0.5706 GB, free: 300 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.552e-05/0.5134, allocations: 23.75 kB / 0.5706 GB, free: 276 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.5137, allocations: 28.78 kB / 0.5706 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.809e-05/0.5138, allocations: 35.95 kB / 0.5707 GB, free: 212 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.5138, allocations: 8 kB / 0.5707 GB, free: 204 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003404/0.5141, allocations: 339.1 kB / 0.571 GB, free: 15.87 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.475e-06/0.5142, allocations: 0 / 0.571 GB, free: 15.87 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003726/0.5179, allocations: 0.9915 MB / 0.572 GB, free: 14.88 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.004774/0.5227, allocations: 1.182 MB / 0.5731 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.524, allocations: 0.6104 MB / 0.5737 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.524, allocations: 0 / 0.5737 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007102/0.5247, allocations: 0.517 MB / 0.5742 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.5258, allocations: 233.8 kB / 0.5744 GB, free: 12.45 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.528, allocations: 1.507 MB / 0.5759 GB, free: 10.91 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005052/0.5285, allocations: 0.9638 MB / 0.5768 GB, free: 9.922 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004141/0.529, allocations: 266.9 kB / 0.5771 GB, free: 9.664 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.5291, allocations: 43.42 kB / 0.5771 GB, free: 9.621 MB / 430.1 MB Notification: Performance of SimCode: time 3.3e-07/0.5291, allocations: 4 kB / 0.5771 GB, free: 9.617 MB / 430.1 MB Notification: Performance of Templates: time 0.0519/0.581, allocations: 39.52 MB / 0.6157 GB, free: 2.188 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 cvode -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