Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0009852/0.0009852, allocations: 103 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009203/0.0009198, allocations: 185.3 kB / 16.92 MB, free: 6.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 205.4 MB / 223.1 MB, free: 5.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3227/0.3227, allocations: 43.58 MB / 315 MB, free: 8.672 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005618/0.0005619, allocations: 16 kB / 384.6 MB, free: 7.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1025, allocations: 58.87 MB / 443.5 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2046/0.3072, allocations: 28.28 MB / 471.7 MB, free: 33.12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01182/0.3191, allocations: 14.03 MB / 485.8 MB, free: 25.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004105/0.3195, allocations: 11 kB / 485.8 MB, free: 25.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006429/0.3202, allocations: 220.7 kB / 486 MB, free: 25.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00763/0.3278, allocations: 2.913 MB / 488.9 MB, free: 23.81 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005932/0.3338, allocations: 1.976 MB / 490.9 MB, free: 22.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009679/0.3347, allocations: 1.131 MB / 492 MB, free: 22.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003206/0.3351, allocations: 215.5 kB / 492.2 MB, free: 22.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006628/0.3357, allocations: 388.4 kB / 492.6 MB, free: 22.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00026/0.336, allocations: 272.2 kB / 492.9 MB, free: 21.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.648e-05/0.3361, allocations: 13 kB / 492.9 MB, free: 21.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01475/0.3508, allocations: 7.119 MB / 500 MB, free: 20.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001968/0.3511, allocations: 77.91 kB / 0.4884 GB, free: 20.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003168/0.3514, allocations: 227.2 kB / 0.4886 GB, free: 19.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01194/0.3633, allocations: 4.378 MB / 0.4928 GB, free: 18.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3634, allocations: 0 / 0.4928 GB, free: 18.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.3634, allocations: 0.6875 kB / 0.4928 GB, free: 18.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.3634, allocations: 0 / 0.4928 GB, free: 18.85 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.00588/0.3693, allocations: 1.154 MB / 0.494 GB, free: 18.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.3693, allocations: 9.875 kB / 0.494 GB, free: 18.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001692/0.371, allocations: 229.8 kB / 0.4942 GB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/0.3715, allocations: 363.9 kB / 0.4945 GB, free: 17.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.9e-05/0.3716, allocations: 22.72 kB / 0.4946 GB, free: 17.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.619e-05/0.3716, allocations: 31.56 kB / 0.4946 GB, free: 17.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.3731, allocations: 0.609 MB / 0.4952 GB, free: 17.47 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.49e-05/0.3731, allocations: 1.219 kB / 0.4952 GB, free: 17.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.035e-05/0.3731, allocations: 15.94 kB / 0.4952 GB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.3732, allocations: 14.48 kB / 0.4952 GB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.3747, allocations: 0.566 MB / 0.4958 GB, free: 17.32 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.002469/0.3772, allocations: 2.63 MB / 0.4983 GB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.3786, allocations: 497 kB / 0.4988 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004068/0.3791, allocations: 212.5 kB / 0.499 GB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04892/0.428, allocations: 24.42 MB / 0.5229 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.814e-05/0.4281, allocations: 37.94 kB / 0.5229 GB, free: 11.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.953e-06/0.4281, allocations: 0 / 0.5229 GB, free: 11.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003026/0.4311, allocations: 0.8483 MB / 0.5237 GB, free: 10.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.945e-05/0.4312, allocations: 110.8 kB / 0.5238 GB, free: 10.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003862/0.4316, allocations: 312.5 kB / 0.5241 GB, free: 10.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.877e-05/0.4317, allocations: 33.7 kB / 0.5242 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.4318, allocations: 200.2 kB / 0.5244 GB, free: 10.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.689e-05/0.4319, allocations: 82.83 kB / 0.5244 GB, free: 9.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.388e-05/0.432, allocations: 33.7 kB / 0.5245 GB, free: 9.934 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.4321, allocations: 342.8 kB / 0.5248 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/0.4325, allocations: 155.5 kB / 0.5249 GB, free: 9.441 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004466/0.433, allocations: 247 kB / 0.5252 GB, free: 9.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008278/0.4338, allocations: 391 kB / 0.5256 GB, free: 8.746 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.4338, allocations: 4 kB / 0.5256 GB, free: 8.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001034/0.4349, allocations: 453.8 kB / 0.526 GB, free: 8.293 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.4349, allocations: 4 kB / 0.526 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.4349, allocations: 8.484 kB / 0.526 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.4349, allocations: 4 kB / 0.526 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003384/0.4353, allocations: 95.75 kB / 0.5261 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.4353, allocations: 4 kB / 0.5261 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000398/0.4357, allocations: 68.47 kB / 0.5262 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.589e-05/0.4358, allocations: 12 kB / 0.5262 GB, free: 8.102 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 (Opening.y,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.0002356/0.436, allocations: 163.7 kB / 0.5263 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.707e-05/0.4361, allocations: 35.62 kB / 0.5264 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002529/0.4386, allocations: 1.939 MB / 0.5283 GB, free: 5.957 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.861e-05/0.4387, allocations: 31.89 kB / 0.5283 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4387, allocations: 0 / 0.5283 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.4387, allocations: 0 / 0.5283 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.4397, allocations: 1.018 MB / 0.5293 GB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.4397, allocations: 4 kB / 0.5293 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00031/0.44, allocations: 79.94 kB / 0.5294 GB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.4401, allocations: 3.984 kB / 0.5294 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.4401, allocations: 8.75 kB / 0.5294 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.4401, allocations: 7.875 kB / 0.5294 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4401, allocations: 4 kB / 0.5294 GB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/0.4416, allocations: 1.105 MB / 0.5305 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.4419, allocations: 211.6 kB / 0.5307 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.3e-05/0.4419, allocations: 7.125 kB / 0.5307 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000316/0.4423, allocations: 63.73 kB / 0.5307 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.382e-05/0.4423, allocations: 27.95 kB / 0.5308 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.4424, allocations: 8 kB / 0.5308 GB, free: 3.301 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003491/0.4427, allocations: 331.1 kB / 0.5311 GB, free: 2.977 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4427, allocations: 0 / 0.5311 GB, free: 2.977 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004474/0.4472, allocations: 0.9954 MB / 0.5321 GB, free: 1.98 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 (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.007752/0.455, allocations: 1.168 MB / 0.5332 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.4563, allocations: 0.6157 MB / 0.5338 GB, free: 196 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4563, allocations: 0 / 0.5338 GB, free: 196 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008264/0.4572, allocations: 0.5323 MB / 0.5343 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.4585, allocations: 215.6 kB / 0.5345 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.461, allocations: 1.886 MB / 0.5364 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005525/0.4616, allocations: 0.9638 MB / 0.5373 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005135/0.4621, allocations: 270.4 kB / 0.5376 GB, free: 12.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.4622, allocations: 43.42 kB / 0.5376 GB, free: 12.25 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4622, allocations: 4 kB / 0.5376 GB, free: 12.25 MB / 414.1 MB Notification: Performance of Templates: time 0.05653/0.5188, allocations: 38.71 MB / 0.5754 GB, free: 5.523 MB / 446.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches