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.001586/0.001586, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0019/0.0019, allocations: 199.9 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2173/0.2173, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 79.88 kB / 481.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3986/0.4, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03415/0.4342, allocations: 28.27 MB / 0.5586 GB, free: 5.379 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01617/0.4505, allocations: 13.29 MB / 0.5716 GB, free: 8.039 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005171/0.451, allocations: 11.94 kB / 0.5716 GB, free: 8.027 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008499/0.4519, allocations: 250.4 kB / 0.5718 GB, free: 7.781 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01074/0.4627, allocations: 3.675 MB / 0.5754 GB, free: 4.109 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007113/0.4698, allocations: 2.364 MB / 0.5777 GB, free: 1.746 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001427/0.4713, allocations: 0.8963 MB / 0.5786 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004642/0.4718, allocations: 272.5 kB / 0.5789 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009099/0.4727, allocations: 442.2 kB / 0.5793 GB, free: 148 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003989/0.4731, allocations: 266.9 kB / 0.5795 GB, free: 15.88 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.11e-05/0.4732, allocations: 32 kB / 0.5796 GB, free: 15.85 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01507/0.4882, allocations: 7.235 MB / 0.5866 GB, free: 8.609 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002158/0.4885, allocations: 95.66 kB / 0.5867 GB, free: 8.516 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003544/0.4889, allocations: 223 kB / 0.5869 GB, free: 8.297 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01186/0.5007, allocations: 4.427 MB / 0.5913 GB, free: 3.859 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.738e-06/0.5008, allocations: 4 kB / 0.5913 GB, free: 3.855 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5008, allocations: 4 kB / 0.5913 GB, free: 3.852 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.5008, allocations: 0 / 0.5913 GB, free: 3.852 MB / 446.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.003803/0.5046, allocations: 1.282 MB / 0.5925 GB, free: 2.516 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.5047, allocations: 12.03 kB / 0.5925 GB, free: 2.504 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0017/0.5064, allocations: 208.5 kB / 0.5927 GB, free: 2.301 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006411/0.5071, allocations: 379.5 kB / 0.5931 GB, free: 1.891 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.5071, allocations: 29.03 kB / 0.5931 GB, free: 1.863 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.317e-05/0.5072, allocations: 28.38 kB / 0.5932 GB, free: 1.836 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.5087, allocations: 0.5977 MB / 0.5937 GB, free: 1.195 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.5087, allocations: 7.938 kB / 0.5937 GB, free: 1.188 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.184e-05/0.5088, allocations: 16 kB / 0.5938 GB, free: 1.172 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.5088, allocations: 8 kB / 0.5938 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.5104, allocations: 0.5406 MB / 0.5943 GB, free: 0.625 MB / 446.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.003069/0.5135, allocations: 2.621 MB / 0.5969 GB, free: 13.76 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.515, allocations: 474.1 kB / 0.5973 GB, free: 13.29 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004552/0.5155, allocations: 204.7 kB / 0.5975 GB, free: 13.09 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05012/0.5656, allocations: 26.89 MB / 0.6238 GB, free: 14.79 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.985e-05/0.5657, allocations: 38.5 kB / 0.6238 GB, free: 14.74 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 3.377e-06/0.5657, allocations: 0 / 0.6238 GB, free: 14.74 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.003075/0.5688, allocations: 0.817 MB / 0.6246 GB, free: 13.91 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.803e-05/0.5689, allocations: 106.8 kB / 0.6247 GB, free: 13.79 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003913/0.5693, allocations: 312.5 kB / 0.625 GB, free: 13.47 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.448e-05/0.5694, allocations: 29.7 kB / 0.625 GB, free: 13.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.5695, allocations: 208.5 kB / 0.6252 GB, free: 13.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.688e-05/0.5696, allocations: 91.22 kB / 0.6253 GB, free: 13.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.5698, allocations: 65.69 kB / 0.6254 GB, free: 13.07 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.5699, allocations: 338.8 kB / 0.6257 GB, free: 12.73 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/0.5704, allocations: 151.9 kB / 0.6258 GB, free: 12.58 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004938/0.5709, allocations: 255.6 kB / 0.6261 GB, free: 12.29 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008564/0.5717, allocations: 374 kB / 0.6264 GB, free: 11.89 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.5717, allocations: 0 / 0.6264 GB, free: 11.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001121/0.5729, allocations: 456.8 kB / 0.6269 GB, free: 11.44 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.5729, allocations: 4 kB / 0.6269 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.5729, allocations: 4.312 kB / 0.6269 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.662e-05/0.573, allocations: 11.94 kB / 0.6269 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003599/0.5733, allocations: 83.88 kB / 0.627 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.5733, allocations: 7.984 kB / 0.627 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003238/0.5737, allocations: 51.75 kB / 0.627 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.459e-05/0.5737, allocations: 15.98 kB / 0.6271 GB, free: 11.26 MB / 494.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.0002207/0.574, allocations: 165.7 kB / 0.6272 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.5741, allocations: 35.77 kB / 0.6272 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002581/0.5767, allocations: 1.914 MB / 0.6291 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-05/0.5767, allocations: 31.89 kB / 0.6291 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.5767, allocations: 0 / 0.6291 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.5767, allocations: 3.984 kB / 0.6291 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.5778, allocations: 1.02 MB / 0.6301 GB, free: 8.023 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.5778, allocations: 3.938 kB / 0.6301 GB, free: 8.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003159/0.5781, allocations: 79.88 kB / 0.6302 GB, free: 7.941 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.5782, allocations: 4 kB / 0.6302 GB, free: 7.938 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/0.5782, allocations: 11.98 kB / 0.6302 GB, free: 7.926 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.5782, allocations: 3.938 kB / 0.6302 GB, free: 7.922 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.5782, allocations: 0 / 0.6302 GB, free: 7.922 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.5798, allocations: 1.104 MB / 0.6313 GB, free: 6.801 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.5799, allocations: 172.2 kB / 0.6315 GB, free: 6.613 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.292e-05/0.58, allocations: 27.78 kB / 0.6315 GB, free: 6.586 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002863/0.5803, allocations: 31.91 kB / 0.6315 GB, free: 6.555 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.5804, allocations: 31.95 kB / 0.6316 GB, free: 6.523 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.5805, allocations: 19.97 kB / 0.6316 GB, free: 6.504 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003522/0.5808, allocations: 327.1 kB / 0.6319 GB, free: 6.184 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5808, allocations: 0 / 0.6319 GB, free: 6.184 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002834/0.5837, allocations: 1.01 MB / 0.6329 GB, free: 5.172 MB / 494.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.004781/0.5885, allocations: 1.172 MB / 0.634 GB, free: 3.996 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.5898, allocations: 0.6145 MB / 0.6346 GB, free: 3.383 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.5898, allocations: 3.938 kB / 0.6346 GB, free: 3.379 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006829/0.5905, allocations: 0.5205 MB / 0.6351 GB, free: 2.859 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.5916, allocations: 219.2 kB / 0.6354 GB, free: 2.648 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001995/0.5936, allocations: 1.526 MB / 0.6368 GB, free: 1.09 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004725/0.5941, allocations: 0.9638 MB / 0.6378 GB, free: 104 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004419/0.5946, allocations: 278.1 kB / 0.6381 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.5947, allocations: 43.42 kB / 0.6381 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of SimCode: time 6.11e-07/0.5947, allocations: 4 kB / 0.6381 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of Templates: time 0.05161/0.6463, allocations: 39.64 MB / 0.6768 GB, free: 8.188 MB / 0.5294 GB 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