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.0009536/0.0009539, allocations: 94.92 kB / 16.98 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.0009441/0.0009443, allocations: 204.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2088/0.2088, allocations: 45.92 MB / 344 MB, free: 12.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002411/0.0002412, allocations: 8 kB / 417.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1204, allocations: 63.47 MB / 481.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.02902/0.1495, allocations: 24.21 MB / 0.4937 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2827/0.4322, allocations: 14.77 MB / 0.5082 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006601/0.4329, allocations: 16.53 kB / 0.5082 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009683/0.4338, allocations: 260.1 kB / 0.5084 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0139/0.4478, allocations: 3.547 MB / 0.5119 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009398/0.4572, allocations: 2.484 MB / 0.5143 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001768/0.459, allocations: 0.5892 MB / 0.5149 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000552/0.4595, allocations: 228.2 kB / 0.5151 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001191/0.4607, allocations: 447.6 kB / 0.5155 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00675/0.4675, allocations: 2.948 MB / 0.5184 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001418/0.4677, allocations: 17.88 kB / 0.5184 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01708/0.4847, allocations: 7.296 MB / 0.5256 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001968/0.485, allocations: 85.47 kB / 0.5256 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002505/0.4852, allocations: 110.8 kB / 0.5258 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007297/0.4925, allocations: 3.121 MB / 0.5288 GB, free: 9.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.4926, allocations: 0 / 0.5288 GB, free: 9.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4926, allocations: 0 / 0.5288 GB, free: 9.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.4926, allocations: 0 / 0.5288 GB, free: 9.77 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.003738/0.4963, allocations: 1.261 MB / 0.53 GB, free: 8.922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.4964, allocations: 9.062 kB / 0.53 GB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001842/0.4982, allocations: 249.6 kB / 0.5303 GB, free: 8.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004691/0.4987, allocations: 379.6 kB / 0.5306 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.4987, allocations: 28.25 kB / 0.5307 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.681e-05/0.4988, allocations: 33.27 kB / 0.5307 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.5002, allocations: 0.6201 MB / 0.5313 GB, free: 8.312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.5002, allocations: 6.906 kB / 0.5313 GB, free: 8.309 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.107e-05/0.5003, allocations: 12.75 kB / 0.5313 GB, free: 8.309 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.5003, allocations: 9.125 kB / 0.5313 GB, free: 8.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.5018, allocations: 0.6019 MB / 0.5319 GB, free: 8.168 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.002582/0.5044, allocations: 2.653 MB / 0.5345 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.5058, allocations: 0.4939 MB / 0.535 GB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05198/0.5578, allocations: 26.99 MB / 0.5613 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.5579, allocations: 32.75 kB / 0.5614 GB, free: 10.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 3.136e-06/0.5579, allocations: 5.969 kB / 0.5614 GB, free: 10.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002873/0.5607, allocations: 0.8734 MB / 0.5622 GB, free: 9.602 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.5608, allocations: 110.8 kB / 0.5623 GB, free: 9.469 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004063/0.5612, allocations: 369.5 kB / 0.5627 GB, free: 9.18 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.5613, allocations: 28.14 kB / 0.5627 GB, free: 9.148 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.5614, allocations: 221.8 kB / 0.5629 GB, free: 8.984 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.057e-05/0.5615, allocations: 89.09 kB / 0.563 GB, free: 8.914 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-05/0.5615, allocations: 7.25 kB / 0.563 GB, free: 8.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.5616, allocations: 346.5 kB / 0.5634 GB, free: 8.578 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004168/0.5621, allocations: 171.8 kB / 0.5635 GB, free: 8.453 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004905/0.5626, allocations: 279.1 kB / 0.5638 GB, free: 8.195 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004303/0.563, allocations: 188.4 kB / 0.564 GB, free: 8.066 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.563, allocations: 0 / 0.564 GB, free: 8.066 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.00106/0.5641, allocations: 0.4991 MB / 0.5645 GB, free: 7.688 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003909/0.5645, allocations: 1.052 MB / 0.5655 GB, free: 6.578 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.5645, allocations: 4 kB / 0.5655 GB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.5645, allocations: 4 kB / 0.5655 GB, free: 6.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004368/0.565, allocations: 112.9 kB / 0.5656 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.565, allocations: 7 kB / 0.5656 GB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004305/0.5654, allocations: 78.25 kB / 0.5657 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.5655, allocations: 20.36 kB / 0.5657 GB, free: 6.379 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.644e-06/0.5655, allocations: 4 kB / 0.5657 GB, free: 6.375 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001007/0.5665, allocations: 440.7 kB / 0.5661 GB, free: 6.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.5665, allocations: 4 kB / 0.5661 GB, free: 6.066 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/0.5665, allocations: 5 kB / 0.5661 GB, free: 6.062 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003924/0.5669, allocations: 116 kB / 0.5662 GB, free: 5.961 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.5669, allocations: 8 kB / 0.5662 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003403/0.5673, allocations: 64.06 kB / 0.5663 GB, free: 5.895 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.5673, allocations: 21.05 kB / 0.5663 GB, free: 5.879 MB / 414.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,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 initialization (38): * Single equations (assignments): 38 * 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.0002166/0.5676, allocations: 241.8 kB / 0.5666 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.271e-05/0.5676, allocations: 39.47 kB / 0.5666 GB, free: 5.629 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00239/0.57, allocations: 2.01 MB / 0.5686 GB, free: 4.273 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-05/0.5701, allocations: 37.77 kB / 0.5686 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.5701, allocations: 0 / 0.5686 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.5701, allocations: 0 / 0.5686 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.5711, allocations: 1.057 MB / 0.5696 GB, free: 3.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.5711, allocations: 0 / 0.5696 GB, free: 3.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003552/0.5715, allocations: 89.81 kB / 0.5697 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.5715, allocations: 0 / 0.5697 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.275e-05/0.5715, allocations: 10.31 kB / 0.5697 GB, free: 3.395 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.5715, allocations: 0 / 0.5697 GB, free: 3.395 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5715, allocations: 7.953 kB / 0.5697 GB, free: 3.387 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.5729, allocations: 1.145 MB / 0.5709 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002677/0.5732, allocations: 268.1 kB / 0.5711 GB, free: 2.297 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.01e-05/0.5733, allocations: 10.5 kB / 0.5711 GB, free: 2.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003391/0.5736, allocations: 39.22 kB / 0.5712 GB, free: 2.258 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.945e-05/0.5737, allocations: 41.38 kB / 0.5712 GB, free: 2.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.334e-05/0.5738, allocations: 19.2 kB / 0.5712 GB, free: 2.207 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003949/0.5742, allocations: 370.5 kB / 0.5716 GB, free: 1.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.92e-07/0.5742, allocations: 0 / 0.5716 GB, free: 1.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003635/0.5778, allocations: 1.163 MB / 0.5727 GB, free: 0.8242 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 ($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 (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.005067/0.5829, allocations: 1.264 MB / 0.5739 GB, free: 15.69 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001764/0.5847, allocations: 0.8978 MB / 0.5748 GB, free: 15.06 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.5847, allocations: 4 kB / 0.5748 GB, free: 15.06 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006382/0.5853, allocations: 0.5424 MB / 0.5753 GB, free: 14.76 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.5865, allocations: 216.5 kB / 0.5756 GB, free: 14.58 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.5888, allocations: 1.978 MB / 0.5775 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004658/0.5893, allocations: 0.9984 MB / 0.5785 GB, free: 11.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008457/0.5901, allocations: 0.6101 MB / 0.5791 GB, free: 11.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.5902, allocations: 46.48 kB / 0.5791 GB, free: 11.16 MB / 430.1 MB Notification: Performance of SimCode: time 4.5e-07/0.5902, allocations: 0 / 0.5791 GB, free: 11.16 MB / 430.1 MB Notification: Performance of Templates: time 0.05603/0.6463, allocations: 41.22 MB / 0.6194 GB, free: 2.137 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestCheckValve/TestCheckValve.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches