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.0009329/0.000933, allocations: 95.19 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.7 MB / 246.8 MB, free: 9.762 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2024/0.2024, allocations: 46.18 MB / 345.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002525/0.0002527, allocations: 8.328 kB / 419.5 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1038, allocations: 63.56 MB / 483.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02954/0.1334, allocations: 28.43 MB / 0.4995 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2223/0.3557, allocations: 14.04 MB / 0.5132 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003674/0.3561, allocations: 11.88 kB / 0.5133 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006357/0.3567, allocations: 212.6 kB / 0.5135 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008888/0.3656, allocations: 2.928 MB / 0.5163 GB, free: 11.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005496/0.3712, allocations: 1.973 MB / 0.5182 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001464/0.3726, allocations: 1.143 MB / 0.5194 GB, free: 11.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003521/0.373, allocations: 213.6 kB / 0.5196 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007197/0.3737, allocations: 403.3 kB / 0.52 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003127/0.374, allocations: 274.7 kB / 0.5202 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.3741, allocations: 15.38 kB / 0.5202 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01416/0.3883, allocations: 7.13 MB / 0.5272 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001969/0.3885, allocations: 88.8 kB / 0.5273 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003643/0.3889, allocations: 227.2 kB / 0.5275 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.4, allocations: 4.386 MB / 0.5318 GB, free: 8.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.4001, allocations: 5.5 kB / 0.5318 GB, free: 8.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4001, allocations: 0 / 0.5318 GB, free: 8.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.914e-06/0.4001, allocations: 0 / 0.5318 GB, free: 8.879 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.003596/0.4037, allocations: 1.181 MB / 0.5329 GB, free: 8.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.4038, allocations: 9.625 kB / 0.5329 GB, free: 8.031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001726/0.4055, allocations: 217.5 kB / 0.5331 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004667/0.406, allocations: 366.4 kB / 0.5335 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.688e-05/0.406, allocations: 26.78 kB / 0.5335 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.964e-05/0.4061, allocations: 30.44 kB / 0.5336 GB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.4076, allocations: 0.6198 MB / 0.5342 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.4077, allocations: 9.5 kB / 0.5342 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.245e-05/0.4077, allocations: 15.62 kB / 0.5342 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.4077, allocations: 8.281 kB / 0.5342 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.4093, allocations: 0.5917 MB / 0.5348 GB, free: 6.914 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.002521/0.4118, allocations: 2.64 MB / 0.5373 GB, free: 4.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.4133, allocations: 0.5014 MB / 0.5378 GB, free: 4.195 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00045/0.4138, allocations: 219.9 kB / 0.538 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0515/0.4653, allocations: 26.99 MB / 0.5644 GB, free: 8.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.4654, allocations: 34.56 kB / 0.5644 GB, free: 8.867 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 3.686e-06/0.4654, allocations: 0 / 0.5644 GB, free: 8.867 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003225/0.4687, allocations: 0.8917 MB / 0.5653 GB, free: 7.969 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.005e-05/0.4687, allocations: 106.8 kB / 0.5654 GB, free: 7.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003432/0.4691, allocations: 316.4 kB / 0.5657 GB, free: 7.527 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.4691, allocations: 37.7 kB / 0.5657 GB, free: 7.484 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.4693, allocations: 196.3 kB / 0.5659 GB, free: 7.289 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.672e-05/0.4694, allocations: 89.48 kB / 0.566 GB, free: 7.203 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-05/0.4694, allocations: 29.7 kB / 0.566 GB, free: 7.168 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.4695, allocations: 342.8 kB / 0.5664 GB, free: 6.824 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004507/0.47, allocations: 167.9 kB / 0.5665 GB, free: 6.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005126/0.4705, allocations: 272.6 kB / 0.5668 GB, free: 6.355 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000972/0.4715, allocations: 419.1 kB / 0.5672 GB, free: 5.914 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.4715, allocations: 0 / 0.5672 GB, free: 5.914 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001162/0.4727, allocations: 484.8 kB / 0.5677 GB, free: 5.434 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.4727, allocations: 8 kB / 0.5677 GB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.4727, allocations: 4.312 kB / 0.5677 GB, free: 5.422 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.4727, allocations: 8 kB / 0.5677 GB, free: 5.414 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003758/0.4731, allocations: 96.69 kB / 0.5678 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.4731, allocations: 4 kB / 0.5678 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004127/0.4736, allocations: 71.64 kB / 0.5678 GB, free: 5.246 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-05/0.4736, allocations: 16 kB / 0.5679 GB, free: 5.23 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.000201/0.4738, allocations: 161.7 kB / 0.568 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.209e-05/0.4739, allocations: 43.47 kB / 0.568 GB, free: 5.02 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002672/0.4766, allocations: 1.969 MB / 0.57 GB, free: 3.055 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.633e-05/0.4766, allocations: 31.89 kB / 0.57 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.4767, allocations: 3.984 kB / 0.57 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.4767, allocations: 0 / 0.57 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.4777, allocations: 1.007 MB / 0.571 GB, free: 1.969 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.758e-06/0.4777, allocations: 4 kB / 0.571 GB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003708/0.4781, allocations: 95.86 kB / 0.5711 GB, free: 1.871 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.4781, allocations: 3.984 kB / 0.5711 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.4781, allocations: 8 kB / 0.5711 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.4782, allocations: 7.938 kB / 0.5711 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4782, allocations: 0 / 0.5711 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00171/0.4799, allocations: 1.139 MB / 0.5722 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002473/0.4801, allocations: 219.5 kB / 0.5724 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.278e-05/0.4802, allocations: 8 kB / 0.5724 GB, free: 464 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003671/0.4806, allocations: 51.84 kB / 0.5725 GB, free: 412 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.4807, allocations: 39.88 kB / 0.5725 GB, free: 372 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.652e-05/0.4807, allocations: 12 kB / 0.5725 GB, free: 360 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003928/0.4811, allocations: 327.1 kB / 0.5728 GB, free: 32 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4811, allocations: 0 / 0.5728 GB, free: 32 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.003387/0.4845, allocations: 0.9993 MB / 0.5738 GB, free: 15.03 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.005746/0.4903, allocations: 1.184 MB / 0.575 GB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.4919, allocations: 0.6459 MB / 0.5756 GB, free: 13.29 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.4919, allocations: 0 / 0.5756 GB, free: 13.29 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008542/0.4928, allocations: 0.5362 MB / 0.5761 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/0.4942, allocations: 211.7 kB / 0.5763 GB, free: 12.55 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/0.4967, allocations: 1.89 MB / 0.5782 GB, free: 10.63 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005539/0.4972, allocations: 0.9676 MB / 0.5791 GB, free: 9.633 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005021/0.4977, allocations: 272.8 kB / 0.5794 GB, free: 9.375 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.4979, allocations: 43.38 kB / 0.5794 GB, free: 9.332 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4979, allocations: 0 / 0.5794 GB, free: 9.332 MB / 430.1 MB Notification: Performance of Templates: time 0.05413/0.552, allocations: 38.95 MB / 0.6175 GB, free: 2.473 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches