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.0009053/0.0009051, allocations: 93.97 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001116/0.001116, allocations: 202 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1947/0.1947, allocations: 46.18 MB / 345.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002924/0.0002923, allocations: 11.98 kB / 420.2 MB, free: 19.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1118, allocations: 63.56 MB / 483.7 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.03374/0.1456, allocations: 28.81 MB / 0.5005 GB, free: 7.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2597/0.4054, allocations: 18.05 MB / 0.5182 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007855/0.4062, allocations: 11.19 kB / 0.5182 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008319/0.407, allocations: 223.5 kB / 0.5184 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01507/0.4221, allocations: 3.647 MB / 0.5219 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00536/0.4275, allocations: 1.598 MB / 0.5235 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001933/0.4295, allocations: 1.211 MB / 0.5247 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004962/0.43, allocations: 236.4 kB / 0.5249 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001083/0.4311, allocations: 440.5 kB / 0.5253 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003977/0.4351, allocations: 1.868 MB / 0.5272 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.476e-05/0.4352, allocations: 16.94 kB / 0.5272 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01639/0.4515, allocations: 7.414 MB / 0.5344 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002377/0.4518, allocations: 86.31 kB / 0.5345 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004145/0.4522, allocations: 248.8 kB / 0.5347 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006462/0.4587, allocations: 3.158 MB / 0.5378 GB, free: 6.395 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.4587, allocations: 2.969 kB / 0.5378 GB, free: 6.395 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4588, allocations: 0 / 0.5378 GB, free: 6.395 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.4588, allocations: 0 / 0.5378 GB, free: 6.395 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.003397/0.4622, allocations: 1.252 MB / 0.539 GB, free: 5.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.4622, allocations: 11.62 kB / 0.5391 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001842/0.4641, allocations: 251.2 kB / 0.5393 GB, free: 5.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00042/0.4645, allocations: 389.3 kB / 0.5397 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.4645, allocations: 30.94 kB / 0.5397 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.724e-05/0.4646, allocations: 33.28 kB / 0.5397 GB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.4661, allocations: 0.6305 MB / 0.5403 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.4661, allocations: 1.969 kB / 0.5403 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.183e-05/0.4661, allocations: 17.16 kB / 0.5404 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.4662, allocations: 6.688 kB / 0.5404 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/0.4677, allocations: 0.6073 MB / 0.541 GB, free: 4.324 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.002607/0.4703, allocations: 2.658 MB / 0.5436 GB, free: 1.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/0.4718, allocations: 495.6 kB / 0.544 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004087/0.4722, allocations: 211.2 kB / 0.5442 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05183/0.524, allocations: 26.99 MB / 0.5706 GB, free: 4.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.5241, allocations: 38.5 kB / 0.5706 GB, free: 4.293 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.084e-06/0.5241, allocations: 0 / 0.5706 GB, free: 4.293 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003098/0.5272, allocations: 0.8683 MB / 0.5715 GB, free: 3.418 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.406e-05/0.5273, allocations: 106.8 kB / 0.5716 GB, free: 3.289 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005176/0.5278, allocations: 381.6 kB / 0.5719 GB, free: 2.91 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.884e-05/0.5279, allocations: 29.7 kB / 0.572 GB, free: 2.875 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.5281, allocations: 216.1 kB / 0.5722 GB, free: 2.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.573e-05/0.5282, allocations: 89.64 kB / 0.5723 GB, free: 2.574 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.559e-05/0.5282, allocations: 33.7 kB / 0.5723 GB, free: 2.535 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.5284, allocations: 346.8 kB / 0.5726 GB, free: 2.188 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004652/0.5288, allocations: 175.9 kB / 0.5728 GB, free: 2.016 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005183/0.5294, allocations: 275.8 kB / 0.5731 GB, free: 1.703 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009347/0.5303, allocations: 433.9 kB / 0.5735 GB, free: 1.246 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.505e-06/0.5303, allocations: 11.92 kB / 0.5735 GB, free: 1.234 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001201/0.5315, allocations: 0.5048 MB / 0.574 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.5317, allocations: 166.5 kB / 0.5741 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.5317, allocations: 4 kB / 0.5741 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.5317, allocations: 7.984 kB / 0.5741 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004377/0.5321, allocations: 111.8 kB / 0.5742 GB, free: 412 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.5322, allocations: 4 kB / 0.5743 GB, free: 408 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004723/0.5326, allocations: 75.59 kB / 0.5743 GB, free: 332 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.34e-05/0.5327, allocations: 19.98 kB / 0.5743 GB, free: 312 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.889e-06/0.5327, allocations: 7.938 kB / 0.5743 GB, free: 304 kB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001112/0.5338, allocations: 451.8 kB / 0.5748 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.5339, allocations: 0 / 0.5748 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.143e-06/0.5339, allocations: 4 kB / 0.5748 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004022/0.5343, allocations: 115 kB / 0.5749 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.5343, allocations: 4 kB / 0.5749 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004079/0.5347, allocations: 63.7 kB / 0.575 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.379e-05/0.5347, allocations: 16 kB / 0.575 GB, free: 15.66 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.0002599/0.535, allocations: 249.1 kB / 0.5752 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.858e-05/0.5351, allocations: 39.47 kB / 0.5752 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002686/0.5378, allocations: 2.001 MB / 0.5772 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.099e-05/0.5379, allocations: 27.95 kB / 0.5772 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.5379, allocations: 0 / 0.5772 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.5379, allocations: 3.984 kB / 0.5772 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.539, allocations: 1.053 MB / 0.5783 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-06/0.539, allocations: 7.938 kB / 0.5783 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003566/0.5394, allocations: 91.86 kB / 0.5784 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.5394, allocations: 4 kB / 0.5784 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.5394, allocations: 8.875 kB / 0.5784 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.5394, allocations: 0 / 0.5784 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.5394, allocations: 0 / 0.5784 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/0.541, allocations: 1.164 MB / 0.5795 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000308/0.5414, allocations: 267.4 kB / 0.5798 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.06e-05/0.5414, allocations: 7.984 kB / 0.5798 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003901/0.5418, allocations: 52.78 kB / 0.5798 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.823e-05/0.5419, allocations: 27.95 kB / 0.5798 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.409e-05/0.542, allocations: 19.92 kB / 0.5799 GB, free: 10.57 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004596/0.5425, allocations: 374.8 kB / 0.5802 GB, free: 10.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5425, allocations: 0 / 0.5802 GB, free: 10.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003655/0.5461, allocations: 1.163 MB / 0.5814 GB, free: 9.039 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.005796/0.5519, allocations: 1.262 MB / 0.5826 GB, free: 7.871 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002037/0.554, allocations: 0.905 MB / 0.5835 GB, free: 6.965 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.554, allocations: 0 / 0.5835 GB, free: 6.965 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007886/0.5548, allocations: 0.5344 MB / 0.584 GB, free: 6.434 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/0.5563, allocations: 225.3 kB / 0.5842 GB, free: 6.215 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002612/0.5589, allocations: 2.033 MB / 0.5862 GB, free: 4.145 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005239/0.5595, allocations: 0.9833 MB / 0.5872 GB, free: 3.137 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.5596, allocations: 47.42 kB / 0.5872 GB, free: 3.094 MB / 430.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5596, allocations: 0 / 0.5872 GB, free: 3.094 MB / 430.1 MB Notification: Performance of Templates: time 0.03961/0.5993, allocations: 25.62 MB / 0.6122 GB, free: 9.496 MB / 462.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestCheckValve/TestCheckValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches