Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009949/0.000995, allocations: 95.06 kB / 16.98 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 178.7 kB / 17.88 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 223.2 MB / 241.8 MB, free: 372 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1891/0.1891, allocations: 44.23 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003398/0.0003399, allocations: 8 kB / 409.5 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1419, allocations: 61.92 MB / 471.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02713/0.1691, allocations: 23.76 MB / 495.2 MB, free: 5.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01614/0.1853, allocations: 11.38 MB / 0.4947 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005178/0.1859, allocations: 7.938 kB / 0.4947 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008992/0.1868, allocations: 207 kB / 0.4949 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009889/0.1967, allocations: 2.825 MB / 0.4977 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006708/0.2034, allocations: 1.911 MB / 0.4996 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009725/0.2044, allocations: 0.5314 MB / 0.5001 GB, free: 5.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003785/0.2048, allocations: 216.9 kB / 0.5003 GB, free: 4.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007836/0.2056, allocations: 402.6 kB / 0.5007 GB, free: 4.449 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002471/0.2059, allocations: 195.2 kB / 0.5009 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.794e-05/0.2059, allocations: 12 kB / 0.5009 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2512/0.4572, allocations: 7.011 MB / 0.5077 GB, free: 16.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.4574, allocations: 77.17 kB / 0.5078 GB, free: 16.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001583/0.4575, allocations: 106.7 kB / 0.5079 GB, free: 16.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006039/0.4636, allocations: 2.948 MB / 0.5108 GB, free: 15.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.4636, allocations: 1.75 kB / 0.5108 GB, free: 15.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4636, allocations: 0 / 0.5108 GB, free: 15.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.4636, allocations: 0 / 0.5108 GB, free: 15.91 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.004486/0.4681, allocations: 1.161 MB / 0.5119 GB, free: 15.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.4682, allocations: 8.312 kB / 0.5119 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001702/0.4699, allocations: 225.4 kB / 0.5121 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004725/0.4704, allocations: 354.7 kB / 0.5125 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.4704, allocations: 23.47 kB / 0.5125 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.299e-05/0.4705, allocations: 30.72 kB / 0.5125 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.472, allocations: 0.5994 MB / 0.5131 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.472, allocations: 1.156 kB / 0.5131 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.286e-05/0.472, allocations: 13.41 kB / 0.5131 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.4721, allocations: 9.625 kB / 0.5131 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.4736, allocations: 0.5663 MB / 0.5137 GB, free: 14.83 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.002526/0.4762, allocations: 2.633 MB / 0.5163 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.4778, allocations: 497.8 kB / 0.5167 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04677/0.5246, allocations: 24.42 MB / 0.5406 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/0.5247, allocations: 41.41 kB / 0.5406 GB, free: 12.49 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.874e-06/0.5247, allocations: 0 / 0.5406 GB, free: 12.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002671/0.5274, allocations: 0.849 MB / 0.5414 GB, free: 12.24 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.5274, allocations: 110.4 kB / 0.5415 GB, free: 12.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002985/0.5278, allocations: 305.2 kB / 0.5418 GB, free: 11.97 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.319e-05/0.5278, allocations: 28.95 kB / 0.5419 GB, free: 11.94 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.5279, allocations: 214.7 kB / 0.5421 GB, free: 11.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.287e-05/0.528, allocations: 84.61 kB / 0.5422 GB, free: 11.74 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.971e-05/0.528, allocations: 3.188 kB / 0.5422 GB, free: 11.74 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.5282, allocations: 349.1 kB / 0.5425 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003654/0.5285, allocations: 155.4 kB / 0.5426 GB, free: 11.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003824/0.5289, allocations: 238.9 kB / 0.5429 GB, free: 11.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003554/0.5293, allocations: 170.4 kB / 0.543 GB, free: 11.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.5293, allocations: 0 / 0.543 GB, free: 11.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008874/0.5302, allocations: 457.4 kB / 0.5435 GB, free: 11.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.5302, allocations: 5.875 kB / 0.5435 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.5302, allocations: 3.094 kB / 0.5435 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.5303, allocations: 3.969 kB / 0.5435 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003051/0.5306, allocations: 87.11 kB / 0.5436 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.5306, allocations: 7.094 kB / 0.5436 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003365/0.5309, allocations: 61.69 kB / 0.5436 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.531, allocations: 14.72 kB / 0.5436 GB, free: 11.05 MB / 398.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: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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.00018/0.5312, allocations: 169.6 kB / 0.5438 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.831e-05/0.5312, allocations: 29.91 kB / 0.5438 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002766/0.534, allocations: 1.943 MB / 0.5457 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-05/0.534, allocations: 27.55 kB / 0.5458 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.5341, allocations: 0 / 0.5458 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.5341, allocations: 0 / 0.5458 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001249/0.5353, allocations: 1.021 MB / 0.5467 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.5354, allocations: 0 / 0.5467 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003993/0.5358, allocations: 85.16 kB / 0.5468 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.5358, allocations: 7.734 kB / 0.5468 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.5358, allocations: 7.5 kB / 0.5468 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.5358, allocations: 2.719 kB / 0.5468 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.5358, allocations: 0 / 0.5468 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.5372, allocations: 1.104 MB / 0.5479 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.5375, allocations: 214.1 kB / 0.5481 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.025e-05/0.5375, allocations: 10.25 kB / 0.5481 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003096/0.5378, allocations: 43.64 kB / 0.5482 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.538, allocations: 32.89 kB / 0.5482 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/0.538, allocations: 10.88 kB / 0.5482 GB, free: 8.973 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003569/0.5383, allocations: 323 kB / 0.5485 GB, free: 8.727 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5384, allocations: 0 / 0.5485 GB, free: 8.727 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004925/0.5433, allocations: 1.005 MB / 0.5495 GB, free: 7.766 MB / 398.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: 19 ($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,Opening.y) * 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.006494/0.5498, allocations: 1.171 MB / 0.5507 GB, free: 6.723 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.5511, allocations: 0.6107 MB / 0.5513 GB, free: 6.301 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.5511, allocations: 4.562 kB / 0.5513 GB, free: 6.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006318/0.5517, allocations: 0.5271 MB / 0.5518 GB, free: 6 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.5528, allocations: 202.1 kB / 0.552 GB, free: 5.848 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/0.5551, allocations: 1.878 MB / 0.5538 GB, free: 4.184 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005021/0.5556, allocations: 0.9824 MB / 0.5548 GB, free: 3.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004983/0.5561, allocations: 267.6 kB / 0.555 GB, free: 2.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.5562, allocations: 50.42 kB / 0.5551 GB, free: 2.887 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.5562, allocations: 0 / 0.5551 GB, free: 2.887 MB / 398.1 MB Notification: Performance of Templates: time 0.0521/0.6083, allocations: 39.11 MB / 0.5933 GB, free: 12.05 MB / 446.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches