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.001508/0.001508, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001876/0.001876, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2263/0.2263, allocations: 46.1 MB / 343.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 79.2 kB / 416.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1253, allocations: 62.44 MB / 479.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03091/0.1563, allocations: 29.14 MB / 0.4965 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2434/0.3997, allocations: 14.27 MB / 0.5105 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004322/0.4002, allocations: 14 kB / 0.5105 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007471/0.401, allocations: 218 kB / 0.5107 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01/0.411, allocations: 2.928 MB / 0.5135 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006286/0.4173, allocations: 1.973 MB / 0.5155 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001776/0.4191, allocations: 1.141 MB / 0.5166 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004074/0.4196, allocations: 211.1 kB / 0.5168 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007801/0.4203, allocations: 407.3 kB / 0.5172 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000334/0.4207, allocations: 274.6 kB / 0.5174 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.023e-05/0.4207, allocations: 17.94 kB / 0.5174 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01625/0.437, allocations: 7.145 MB / 0.5244 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001983/0.4372, allocations: 79.11 kB / 0.5245 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004449/0.4377, allocations: 207.8 kB / 0.5247 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0114/0.4491, allocations: 4.413 MB / 0.529 GB, free: 8.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4492, allocations: 0 / 0.529 GB, free: 8.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4492, allocations: 0 / 0.529 GB, free: 8.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.4492, allocations: 1.281 kB / 0.529 GB, free: 8.836 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.003967/0.4532, allocations: 1.254 MB / 0.5302 GB, free: 7.922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.4532, allocations: 10.09 kB / 0.5302 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00169/0.4549, allocations: 205.4 kB / 0.5304 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004098/0.4553, allocations: 361.8 kB / 0.5308 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/0.4554, allocations: 26.78 kB / 0.5308 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/0.4554, allocations: 35.75 kB / 0.5308 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.4569, allocations: 0.5938 MB / 0.5314 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.457, allocations: 1.344 kB / 0.5314 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.234e-05/0.457, allocations: 17.09 kB / 0.5314 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.457, allocations: 6.906 kB / 0.5314 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.4586, allocations: 0.5462 MB / 0.532 GB, free: 6.828 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.002646/0.4613, allocations: 2.626 MB / 0.5345 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.4629, allocations: 472.4 kB / 0.535 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005039/0.4634, allocations: 200.1 kB / 0.5352 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04903/0.5124, allocations: 26.77 MB / 0.5613 GB, free: 9.195 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/0.5125, allocations: 38.56 kB / 0.5614 GB, free: 9.148 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.194e-06/0.5125, allocations: 0 / 0.5614 GB, free: 9.148 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002946/0.5155, allocations: 0.8136 MB / 0.5622 GB, free: 8.328 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.923e-05/0.5156, allocations: 114.8 kB / 0.5623 GB, free: 8.191 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003751/0.516, allocations: 316.4 kB / 0.5626 GB, free: 7.879 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.072e-05/0.516, allocations: 29.7 kB / 0.5626 GB, free: 7.844 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.5162, allocations: 204.2 kB / 0.5628 GB, free: 7.641 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.827e-05/0.5163, allocations: 82.84 kB / 0.5629 GB, free: 7.559 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.5164, allocations: 69.59 kB / 0.5629 GB, free: 7.484 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.5165, allocations: 346.8 kB / 0.5633 GB, free: 7.137 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004185/0.517, allocations: 153.6 kB / 0.5634 GB, free: 6.988 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000476/0.5174, allocations: 242.9 kB / 0.5637 GB, free: 6.711 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008292/0.5183, allocations: 385.2 kB / 0.564 GB, free: 6.301 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.5183, allocations: 0 / 0.564 GB, free: 6.301 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001032/0.5193, allocations: 437.1 kB / 0.5644 GB, free: 5.867 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.5194, allocations: 8.031 kB / 0.5644 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.5194, allocations: 7.938 kB / 0.5644 GB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.5194, allocations: 4 kB / 0.5645 GB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.5198, allocations: 87.81 kB / 0.5645 GB, free: 5.762 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.5198, allocations: 11.66 kB / 0.5645 GB, free: 5.754 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003693/0.5202, allocations: 55.72 kB / 0.5646 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.5202, allocations: 15.98 kB / 0.5646 GB, free: 5.684 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.0001949/0.5204, allocations: 161.7 kB / 0.5648 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.853e-05/0.5205, allocations: 31.62 kB / 0.5648 GB, free: 5.484 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002467/0.523, allocations: 1.924 MB / 0.5667 GB, free: 3.562 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.807e-05/0.523, allocations: 31.89 kB / 0.5667 GB, free: 3.531 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.523, allocations: 0 / 0.5667 GB, free: 3.531 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.523, allocations: 4 kB / 0.5667 GB, free: 3.527 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009753/0.524, allocations: 1.02 MB / 0.5677 GB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.524, allocations: 0 / 0.5677 GB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003486/0.5244, allocations: 76.94 kB / 0.5678 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.5244, allocations: 0 / 0.5678 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.776e-05/0.5244, allocations: 11.98 kB / 0.5678 GB, free: 2.379 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.5245, allocations: 3.938 kB / 0.5678 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.5245, allocations: 3.938 kB / 0.5678 GB, free: 2.371 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00147/0.5259, allocations: 1.1 MB / 0.5689 GB, free: 1.254 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.5261, allocations: 167.8 kB / 0.569 GB, free: 1.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.408e-05/0.5262, allocations: 31.67 kB / 0.5691 GB, free: 1.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003152/0.5265, allocations: 40.7 kB / 0.5691 GB, free: 1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.881e-05/0.5266, allocations: 31.95 kB / 0.5691 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.5266, allocations: 12 kB / 0.5691 GB, free: 0.957 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00034/0.527, allocations: 331.1 kB / 0.5695 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.527, allocations: 0 / 0.5695 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00374/0.5307, allocations: 0.9994 MB / 0.5704 GB, free: 15.63 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.005015/0.5357, allocations: 1.17 MB / 0.5716 GB, free: 14.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.5372, allocations: 0.618 MB / 0.5722 GB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.5372, allocations: 0 / 0.5722 GB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007231/0.5379, allocations: 0.5211 MB / 0.5727 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.5391, allocations: 212.8 kB / 0.5729 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.5414, allocations: 1.852 MB / 0.5747 GB, free: 11.34 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.5419, allocations: 0.9599 MB / 0.5756 GB, free: 10.35 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004823/0.5423, allocations: 281.2 kB / 0.5759 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.5425, allocations: 39.44 kB / 0.5759 GB, free: 10.05 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5425, allocations: 0 / 0.5759 GB, free: 10.05 MB / 430.1 MB Notification: Performance of Templates: time 0.05837/0.6008, allocations: 39.01 MB / 0.614 GB, free: 3.133 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