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.0008923/0.0008925, allocations: 96.22 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009539/0.000954, allocations: 207.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 227.2 MB / 245.9 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.21/0.21, allocations: 45.92 MB / 344 MB, free: 12.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002957, allocations: 8 kB / 417.9 MB, free: 20.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1218, allocations: 63.45 MB / 481.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02425/0.1461, allocations: 23.86 MB / 0.4934 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01428/0.1604, allocations: 11.37 MB / 0.5045 GB, free: 2.102 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004372/0.1609, allocations: 15.88 kB / 0.5045 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006957/0.1616, allocations: 211 kB / 0.5047 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.28/0.4417, allocations: 2.822 MB / 0.5075 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007481/0.4492, allocations: 1.912 MB / 0.5093 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001407/0.4506, allocations: 0.5468 MB / 0.5099 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005073/0.4511, allocations: 200.6 kB / 0.5101 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001086/0.4522, allocations: 408.9 kB / 0.5105 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003258/0.4526, allocations: 199.7 kB / 0.5107 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.695e-05/0.4526, allocations: 15.12 kB / 0.5107 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01998/0.4726, allocations: 7.018 MB / 0.5175 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002987/0.473, allocations: 78.8 kB / 0.5176 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003564/0.4733, allocations: 108.4 kB / 0.5177 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008994/0.4823, allocations: 2.953 MB / 0.5206 GB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.4824, allocations: 0 / 0.5206 GB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.4824, allocations: 0 / 0.5206 GB, free: 12.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.4824, allocations: 1.219 kB / 0.5206 GB, free: 12.39 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.005001/0.4874, allocations: 1.191 MB / 0.5218 GB, free: 11.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.4875, allocations: 9.875 kB / 0.5218 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001807/0.4893, allocations: 214.3 kB / 0.522 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005158/0.4898, allocations: 352.8 kB / 0.5223 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.678e-05/0.4899, allocations: 24.48 kB / 0.5223 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.4899, allocations: 32.56 kB / 0.5224 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.4915, allocations: 0.6112 MB / 0.523 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.4915, allocations: 4.156 kB / 0.523 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.101e-05/0.4916, allocations: 18.52 kB / 0.523 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.4916, allocations: 8.5 kB / 0.523 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.4933, allocations: 0.584 MB / 0.5236 GB, free: 11.25 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.003216/0.4966, allocations: 2.648 MB / 0.5261 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001796/0.4984, allocations: 0.4915 MB / 0.5266 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05056/0.5489, allocations: 26.99 MB / 0.553 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.753e-05/0.549, allocations: 37.97 kB / 0.553 GB, free: 1.176 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.044e-06/0.5491, allocations: 4 kB / 0.553 GB, free: 1.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002966/0.552, allocations: 0.8865 MB / 0.5539 GB, free: 444 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.183e-05/0.5521, allocations: 109.1 kB / 0.554 GB, free: 312 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003776/0.5525, allocations: 312.2 kB / 0.5543 GB, free: 52 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.667e-05/0.5525, allocations: 28.45 kB / 0.5543 GB, free: 20 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.5527, allocations: 203.9 kB / 0.5545 GB, free: 15.86 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.157e-05/0.5528, allocations: 86.66 kB / 0.5546 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.533e-05/0.5528, allocations: 6 kB / 0.5546 GB, free: 15.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.553, allocations: 347 kB / 0.5549 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004057/0.5534, allocations: 167 kB / 0.5551 GB, free: 15.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004644/0.5538, allocations: 264.7 kB / 0.5553 GB, free: 15.08 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004323/0.5543, allocations: 178.8 kB / 0.5555 GB, free: 14.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.5543, allocations: 0 / 0.5555 GB, free: 14.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001024/0.5553, allocations: 485.7 kB / 0.556 GB, free: 14.58 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.5554, allocations: 7.984 kB / 0.556 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.5554, allocations: 4 kB / 0.556 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.5554, allocations: 4 kB / 0.556 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003689/0.5558, allocations: 106 kB / 0.5561 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.5558, allocations: 4 kB / 0.5561 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004195/0.5562, allocations: 70.33 kB / 0.5562 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.542e-05/0.5563, allocations: 19.23 kB / 0.5562 GB, free: 14.39 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 (SourceP1.medium.phase,SinkP1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000212/0.5565, allocations: 158.8 kB / 0.5563 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.705e-05/0.5566, allocations: 31.62 kB / 0.5564 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002424/0.559, allocations: 1.974 MB / 0.5583 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.98e-05/0.559, allocations: 28.77 kB / 0.5583 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.138e-06/0.5591, allocations: 3.953 kB / 0.5583 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.5591, allocations: 3.984 kB / 0.5583 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.5602, allocations: 1.017 MB / 0.5593 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.5602, allocations: 0 / 0.5593 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003533/0.5606, allocations: 92.23 kB / 0.5594 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.603e-06/0.5606, allocations: 4 kB / 0.5594 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.5606, allocations: 9.312 kB / 0.5594 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.5606, allocations: 0 / 0.5594 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5606, allocations: 0 / 0.5594 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.5621, allocations: 1.129 MB / 0.5605 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000235/0.5623, allocations: 222.8 kB / 0.5607 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.985e-05/0.5624, allocations: 9.688 kB / 0.5607 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000326/0.5627, allocations: 44.53 kB / 0.5608 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.5629, allocations: 36.38 kB / 0.5608 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.5629, allocations: 15.69 kB / 0.5608 GB, free: 10.89 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003267/0.5632, allocations: 330 kB / 0.5611 GB, free: 10.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5632, allocations: 0 / 0.5611 GB, free: 10.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005081/0.5683, allocations: 1.005 MB / 0.5621 GB, free: 9.684 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008383/0.5767, allocations: 1.18 MB / 0.5633 GB, free: 8.629 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.5783, allocations: 0.645 MB / 0.5639 GB, free: 8.172 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.5783, allocations: 0 / 0.5639 GB, free: 8.172 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00071/0.579, allocations: 0.5368 MB / 0.5644 GB, free: 7.867 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.5803, allocations: 194 kB / 0.5646 GB, free: 7.715 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.5827, allocations: 1.891 MB / 0.5665 GB, free: 6.047 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005157/0.5833, allocations: 0.9797 MB / 0.5674 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000492/0.5838, allocations: 292.2 kB / 0.5677 GB, free: 4.766 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.5839, allocations: 38.25 kB / 0.5677 GB, free: 4.73 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.5839, allocations: 0 / 0.5677 GB, free: 4.73 MB / 414.1 MB Notification: Performance of Templates: time 0.05856/0.6425, allocations: 39.27 MB / 0.6061 GB, free: 13.68 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","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches