Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.TestCheckValve,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007691/0.0007691, allocations: 92.36 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008851/0.0008851, allocations: 205.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1945/0.1945, allocations: 46.19 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002684/0.0002685, allocations: 11.94 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1148, allocations: 63.56 MB / 483.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.03052/0.1454, allocations: 28.82 MB / 0.4999 GB, free: 7.238 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2402/0.3856, allocations: 18.04 MB / 0.5175 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005397/0.3862, allocations: 15.31 kB / 0.5175 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007803/0.387, allocations: 218.5 kB / 0.5178 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01328/0.4003, allocations: 3.643 MB / 0.5213 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004726/0.405, allocations: 1.602 MB / 0.5229 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001721/0.4068, allocations: 1.209 MB / 0.5241 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004325/0.4072, allocations: 241.7 kB / 0.5243 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009531/0.4082, allocations: 440.6 kB / 0.5247 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003879/0.4121, allocations: 1.861 MB / 0.5265 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.981e-05/0.4122, allocations: 16.16 kB / 0.5265 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01456/0.4267, allocations: 7.409 MB / 0.5338 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001823/0.427, allocations: 96.36 kB / 0.5339 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003574/0.4273, allocations: 246.9 kB / 0.5341 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009661/0.437, allocations: 4.633 MB / 0.5386 GB, free: 5.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.437, allocations: 3.625 kB / 0.5386 GB, free: 5.352 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.437, allocations: 0 / 0.5386 GB, free: 5.352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.437, allocations: 0 / 0.5386 GB, free: 5.352 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.002847/0.4399, allocations: 1.25 MB / 0.5399 GB, free: 4.441 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.4399, allocations: 9.375 kB / 0.5399 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001903/0.4419, allocations: 251.4 kB / 0.5401 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004146/0.4423, allocations: 389 kB / 0.5405 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.395e-05/0.4423, allocations: 39.17 kB / 0.5405 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.4424, allocations: 33.38 kB / 0.5405 GB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.4439, allocations: 0.6214 MB / 0.5411 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.4439, allocations: 0 / 0.5411 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.48e-05/0.444, allocations: 15.25 kB / 0.5412 GB, free: 3.562 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.444, allocations: 14.2 kB / 0.5412 GB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00165/0.4457, allocations: 0.6006 MB / 0.5418 GB, free: 3.289 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.002928/0.4486, allocations: 2.663 MB / 0.5444 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.4501, allocations: 492.1 kB / 0.5448 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004277/0.4506, allocations: 211.1 kB / 0.545 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05226/0.5029, allocations: 26.99 MB / 0.5714 GB, free: 2.934 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/0.5029, allocations: 38.5 kB / 0.5714 GB, free: 2.887 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 3.497e-06/0.5029, allocations: 3.984 kB / 0.5714 GB, free: 2.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.00304/0.506, allocations: 0.869 MB / 0.5723 GB, free: 2.008 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.422e-05/0.5061, allocations: 106.8 kB / 0.5724 GB, free: 1.879 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004515/0.5065, allocations: 377.6 kB / 0.5727 GB, free: 1.504 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.5066, allocations: 37.69 kB / 0.5728 GB, free: 1.461 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.5067, allocations: 218.2 kB / 0.573 GB, free: 1.246 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.069e-05/0.5068, allocations: 90.03 kB / 0.5731 GB, free: 1.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.797e-05/0.5069, allocations: 33.7 kB / 0.5731 GB, free: 1.121 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.507, allocations: 346.8 kB / 0.5734 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004729/0.5075, allocations: 175.9 kB / 0.5736 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005181/0.508, allocations: 275.8 kB / 0.5739 GB, free: 296 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009681/0.509, allocations: 434 kB / 0.5743 GB, free: 15.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.509, allocations: 7.938 kB / 0.5743 GB, free: 15.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001197/0.5102, allocations: 0.5047 MB / 0.5748 GB, free: 15.31 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.5103, allocations: 170.6 kB / 0.5749 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.5104, allocations: 4 kB / 0.5749 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.5104, allocations: 8 kB / 0.575 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000447/0.5108, allocations: 103.9 kB / 0.5751 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.5108, allocations: 4 kB / 0.5751 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004384/0.5113, allocations: 75.58 kB / 0.5751 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.196e-05/0.5113, allocations: 16 kB / 0.5751 GB, free: 14.9 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.743e-06/0.5114, allocations: 7.938 kB / 0.5752 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001096/0.5125, allocations: 451.8 kB / 0.5756 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.5125, allocations: 4 kB / 0.5756 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.951e-06/0.5125, allocations: 4 kB / 0.5756 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004149/0.5129, allocations: 108.1 kB / 0.5757 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.5129, allocations: 7.938 kB / 0.5757 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003552/0.5133, allocations: 71.7 kB / 0.5758 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.9e-05/0.5133, allocations: 16 kB / 0.5758 GB, free: 14.24 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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.0002212/0.5136, allocations: 245.1 kB / 0.576 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8e-05/0.5137, allocations: 43.47 kB / 0.5761 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002684/0.5163, allocations: 2.004 MB / 0.578 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.842e-05/0.5164, allocations: 27.95 kB / 0.578 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.5164, allocations: 0 / 0.578 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.5164, allocations: 3.984 kB / 0.578 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.5175, allocations: 1.048 MB / 0.5791 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.5175, allocations: 3.938 kB / 0.5791 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003837/0.5179, allocations: 95.86 kB / 0.5792 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.5179, allocations: 4 kB / 0.5792 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.5179, allocations: 4 kB / 0.5792 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.912e-06/0.5179, allocations: 4 kB / 0.5792 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.5179, allocations: 0 / 0.5792 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/0.5195, allocations: 1.16 MB / 0.5803 GB, free: 9.543 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002649/0.5198, allocations: 267.3 kB / 0.5806 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.826e-05/0.5199, allocations: 8 kB / 0.5806 GB, free: 9.254 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000366/0.5202, allocations: 47.91 kB / 0.5806 GB, free: 9.207 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.219e-05/0.5203, allocations: 31.95 kB / 0.5806 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.89e-05/0.5204, allocations: 16.86 kB / 0.5807 GB, free: 9.16 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004478/0.5208, allocations: 370.8 kB / 0.581 GB, free: 8.801 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5208, allocations: 0 / 0.581 GB, free: 8.801 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003055/0.5239, allocations: 1.171 MB / 0.5822 GB, free: 7.629 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 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.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 (38): * Single equations (assignments): 29 * 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.004197/0.5281, allocations: 1.269 MB / 0.5834 GB, free: 6.461 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.5301, allocations: 0.9011 MB / 0.5843 GB, free: 5.559 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5301, allocations: 0 / 0.5843 GB, free: 5.559 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007567/0.5308, allocations: 0.5383 MB / 0.5848 GB, free: 5.023 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00137/0.5322, allocations: 229.1 kB / 0.585 GB, free: 4.801 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.5346, allocations: 1.995 MB / 0.587 GB, free: 2.773 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004972/0.5351, allocations: 0.9794 MB / 0.5879 GB, free: 1.77 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008956/0.536, allocations: 0.6138 MB / 0.5885 GB, free: 1.156 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.5361, allocations: 43.42 kB / 0.5886 GB, free: 1.117 MB / 430.1 MB Notification: Performance of SimCode: time 4.61e-07/0.5361, allocations: 0 / 0.5886 GB, free: 1.117 MB / 430.1 MB Notification: Performance of Templates: time 0.0573/0.5934, allocations: 40.92 MB / 0.6285 GB, free: 8.281 MB / 478.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestCheckValve/TestCheckValve.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches