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.0013/0.0013, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001488/0.001488, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.998/1.998, allocations: 227.4 MB / 246.9 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4586/0.4586, allocations: 46.11 MB / 344.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002914/0.002914, allocations: 79.53 kB / 417.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2357, allocations: 62.44 MB / 479.9 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.04401/0.2798, allocations: 29.14 MB / 0.4971 GB, free: 8.504 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.5093/0.7891, allocations: 14.27 MB / 0.5111 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001167/0.7904, allocations: 10.72 kB / 0.5111 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001996/0.7925, allocations: 217.2 kB / 0.5113 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02519/0.8177, allocations: 2.927 MB / 0.5142 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01633/0.8341, allocations: 1.972 MB / 0.5161 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003554/0.8377, allocations: 1.146 MB / 0.5172 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009977/0.8387, allocations: 211.9 kB / 0.5174 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002407/0.8411, allocations: 407.7 kB / 0.5178 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00112/0.8423, allocations: 276.8 kB / 0.5181 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000209/0.8425, allocations: 19.28 kB / 0.5181 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0438/0.8863, allocations: 7.129 MB / 0.525 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005125/0.8869, allocations: 85.33 kB / 0.5251 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009277/0.8879, allocations: 212 kB / 0.5253 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01887/0.9068, allocations: 3.012 MB / 0.5283 GB, free: 9.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.826e-05/0.9069, allocations: 5.375 kB / 0.5283 GB, free: 9.422 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.536e-06/0.9069, allocations: 4 kB / 0.5283 GB, free: 9.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.9069, allocations: 0 / 0.5283 GB, free: 9.418 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.008776/0.9157, allocations: 1.243 MB / 0.5295 GB, free: 8.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.239e-05/0.9158, allocations: 12.19 kB / 0.5295 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003635/0.9195, allocations: 209.1 kB / 0.5297 GB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.9206, allocations: 361.4 kB / 0.53 GB, free: 8.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.669e-05/0.9207, allocations: 30.91 kB / 0.5301 GB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.9208, allocations: 29.56 kB / 0.5301 GB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003112/0.9239, allocations: 0.5893 MB / 0.5307 GB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.924, allocations: 9.312 kB / 0.5307 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.429e-05/0.9241, allocations: 14.94 kB / 0.5307 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.377e-05/0.9241, allocations: 8.25 kB / 0.5307 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003521/0.9277, allocations: 0.547 MB / 0.5312 GB, free: 7.805 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.00573/0.9334, allocations: 2.614 MB / 0.5338 GB, free: 5.391 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003064/0.9365, allocations: 479.5 kB / 0.5342 GB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00092/0.9375, allocations: 203.7 kB / 0.5344 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09911/1.037, allocations: 26.77 MB / 0.5606 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.464e-05/1.037, allocations: 38.56 kB / 0.5606 GB, free: 10.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 3.997e-06/1.037, allocations: 0 / 0.5606 GB, free: 10.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.005687/1.042, allocations: 0.8097 MB / 0.5614 GB, free: 9.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/1.043, allocations: 114.7 kB / 0.5615 GB, free: 9.613 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007389/1.043, allocations: 316.5 kB / 0.5618 GB, free: 9.301 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.832e-05/1.043, allocations: 33.7 kB / 0.5619 GB, free: 9.262 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002712/1.044, allocations: 204.2 kB / 0.5621 GB, free: 9.059 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/1.044, allocations: 85.73 kB / 0.5621 GB, free: 8.977 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002308/1.044, allocations: 65.59 kB / 0.5622 GB, free: 8.906 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003109/1.045, allocations: 346.8 kB / 0.5625 GB, free: 8.559 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008473/1.045, allocations: 153.7 kB / 0.5627 GB, free: 8.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/1.046, allocations: 243.8 kB / 0.5629 GB, free: 8.133 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001574/1.048, allocations: 379.1 kB / 0.5633 GB, free: 7.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.817e-06/1.048, allocations: 3.984 kB / 0.5633 GB, free: 7.727 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002065/1.05, allocations: 440.8 kB / 0.5637 GB, free: 7.289 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/1.05, allocations: 4 kB / 0.5637 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/1.05, allocations: 7.938 kB / 0.5637 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.103e-05/1.05, allocations: 7.625 kB / 0.5637 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007032/1.051, allocations: 92.06 kB / 0.5638 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.923e-05/1.051, allocations: 8 kB / 0.5638 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007476/1.052, allocations: 55.7 kB / 0.5639 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.15e-05/1.052, allocations: 16 kB / 0.5639 GB, free: 7.105 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.0003903/1.052, allocations: 165.7 kB / 0.564 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002292/1.053, allocations: 31.62 kB / 0.5641 GB, free: 6.902 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004797/1.057, allocations: 1.927 MB / 0.5659 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.035e-05/1.057, allocations: 31.89 kB / 0.566 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/1.057, allocations: 0 / 0.566 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/1.057, allocations: 7.938 kB / 0.566 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002248/1.06, allocations: 1.012 MB / 0.567 GB, free: 3.887 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.628e-05/1.06, allocations: 3.984 kB / 0.567 GB, free: 3.883 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007367/1.061, allocations: 75.94 kB / 0.567 GB, free: 3.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.09e-05/1.061, allocations: 0 / 0.567 GB, free: 3.809 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.102e-05/1.061, allocations: 11.98 kB / 0.5671 GB, free: 3.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-05/1.061, allocations: 3.938 kB / 0.5671 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.004e-06/1.061, allocations: 7.938 kB / 0.5671 GB, free: 3.785 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003564/1.064, allocations: 1.092 MB / 0.5681 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003913/1.065, allocations: 163.8 kB / 0.5683 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002053/1.065, allocations: 27.69 kB / 0.5683 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007553/1.066, allocations: 40.66 kB / 0.5684 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/1.066, allocations: 35.94 kB / 0.5684 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.822e-05/1.066, allocations: 11.94 kB / 0.5684 GB, free: 2.383 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009162/1.067, allocations: 331.1 kB / 0.5687 GB, free: 2.059 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.067, allocations: 0 / 0.5687 GB, free: 2.059 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.008131/1.075, allocations: 0.9916 MB / 0.5697 GB, free: 1.066 MB / 414.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.01232/1.087, allocations: 1.183 MB / 0.5708 GB, free: 15.97 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002722/1.09, allocations: 0.6107 MB / 0.5714 GB, free: 15.37 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.254e-05/1.09, allocations: 8 kB / 0.5714 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001551/1.092, allocations: 0.5166 MB / 0.572 GB, free: 14.84 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002889/1.095, allocations: 215.6 kB / 0.5722 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004838/1.1, allocations: 1.891 MB / 0.574 GB, free: 12.71 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000905/1.101, allocations: 0.9599 MB / 0.5749 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002649/1.101, allocations: 51.42 kB / 0.575 GB, free: 11.68 MB / 430.1 MB Notification: Performance of SimCode: time 1.322e-06/1.101, allocations: 0 / 0.575 GB, free: 11.68 MB / 430.1 MB Notification: Performance of Templates: time 0.07786/1.179, allocations: 24.15 MB / 0.5986 GB, free: 3.562 MB / 446.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 -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