Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001434/0.001434, allocations: 111.7 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001809/0.001809, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2021/0.2021, allocations: 46.09 MB / 345 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 71.88 kB / 482 MB, free: 4.125 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.304, allocations: 62.44 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02997/0.334, allocations: 28.26 MB / 0.5593 GB, free: 5.434 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.3497, allocations: 13.29 MB / 0.5722 GB, free: 8.094 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003398/0.35, allocations: 11.88 kB / 0.5723 GB, free: 8.082 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007873/0.3509, allocations: 254.4 kB / 0.5725 GB, free: 7.832 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00983/0.3607, allocations: 3.662 MB / 0.5761 GB, free: 4.172 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006745/0.3675, allocations: 2.356 MB / 0.5784 GB, free: 1.816 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001153/0.3686, allocations: 0.8963 MB / 0.5792 GB, free: 0.918 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004432/0.3691, allocations: 272.5 kB / 0.5795 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008255/0.3699, allocations: 442.2 kB / 0.5799 GB, free: 220 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003805/0.3703, allocations: 266.9 kB / 0.5802 GB, free: 15.95 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.356e-05/0.3704, allocations: 32 kB / 0.5802 GB, free: 15.92 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01337/0.3838, allocations: 7.239 MB / 0.5873 GB, free: 8.676 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001796/0.384, allocations: 103.7 kB / 0.5874 GB, free: 8.574 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000298/0.3843, allocations: 215 kB / 0.5876 GB, free: 8.363 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009499/0.3938, allocations: 4.413 MB / 0.5919 GB, free: 3.941 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3938, allocations: 0 / 0.5919 GB, free: 3.941 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3938, allocations: 0 / 0.5919 GB, free: 3.941 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.3939, allocations: 4 kB / 0.5919 GB, free: 3.938 MB / 446.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.003275/0.3971, allocations: 1.24 MB / 0.5931 GB, free: 2.648 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3972, allocations: 8.031 kB / 0.5931 GB, free: 2.641 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001788/0.399, allocations: 220.2 kB / 0.5933 GB, free: 2.426 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006324/0.3996, allocations: 371.3 kB / 0.5937 GB, free: 2.023 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.3997, allocations: 29.03 kB / 0.5937 GB, free: 1.996 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.718e-05/0.3997, allocations: 24.38 kB / 0.5937 GB, free: 1.973 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.4013, allocations: 0.59 MB / 0.5943 GB, free: 1.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.4013, allocations: 0 / 0.5943 GB, free: 1.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.13e-05/0.4013, allocations: 12 kB / 0.5943 GB, free: 1.328 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.4013, allocations: 8 kB / 0.5943 GB, free: 1.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.4029, allocations: 0.5289 MB / 0.5948 GB, free: 0.793 MB / 446.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.002941/0.4059, allocations: 2.609 MB / 0.5974 GB, free: 13.94 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.4074, allocations: 466.1 kB / 0.5978 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004322/0.4079, allocations: 188.7 kB / 0.598 GB, free: 13.29 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05064/0.4585, allocations: 26.89 MB / 0.6243 GB, free: 14.99 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.4586, allocations: 34.56 kB / 0.6243 GB, free: 14.95 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 3.978e-06/0.4586, allocations: 8 kB / 0.6243 GB, free: 14.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002917/0.4615, allocations: 0.7895 MB / 0.6251 GB, free: 14.14 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.4616, allocations: 106.8 kB / 0.6252 GB, free: 14.01 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003557/0.462, allocations: 308.4 kB / 0.6255 GB, free: 13.71 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.462, allocations: 29.7 kB / 0.6255 GB, free: 13.67 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.4622, allocations: 208.1 kB / 0.6257 GB, free: 13.46 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.85e-05/0.4622, allocations: 82.84 kB / 0.6258 GB, free: 13.38 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.4624, allocations: 69.69 kB / 0.6259 GB, free: 13.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4625, allocations: 346.8 kB / 0.6262 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003941/0.4629, allocations: 135.9 kB / 0.6263 GB, free: 12.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004486/0.4634, allocations: 230.9 kB / 0.6265 GB, free: 12.56 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007783/0.4642, allocations: 365.9 kB / 0.6269 GB, free: 12.17 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.4642, allocations: 4 kB / 0.6269 GB, free: 12.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009721/0.4651, allocations: 428.6 kB / 0.6273 GB, free: 11.74 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.4652, allocations: 8 kB / 0.6273 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.4652, allocations: 4 kB / 0.6273 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.4652, allocations: 8.312 kB / 0.6273 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/0.4655, allocations: 79.83 kB / 0.6274 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.4656, allocations: 7.984 kB / 0.6274 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002693/0.4658, allocations: 43.67 kB / 0.6274 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.433e-05/0.4659, allocations: 15.98 kB / 0.6275 GB, free: 11.57 MB / 494.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.0001803/0.4661, allocations: 161.7 kB / 0.6276 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.288e-05/0.4662, allocations: 39.62 kB / 0.6276 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002323/0.4685, allocations: 1.893 MB / 0.6295 GB, free: 9.461 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.4685, allocations: 3.938 kB / 0.6295 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.4685, allocations: 4 kB / 0.6295 GB, free: 9.453 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.4687, allocations: 171.7 kB / 0.6297 GB, free: 9.266 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.922e-05/0.4688, allocations: 23.75 kB / 0.6297 GB, free: 9.242 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003253/0.4691, allocations: 31.95 kB / 0.6297 GB, free: 9.211 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.4692, allocations: 39.95 kB / 0.6298 GB, free: 9.172 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001571/0.4708, allocations: 1.062 MB / 0.6308 GB, free: 8.102 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001507/0.4723, allocations: 1.156 MB / 0.6319 GB, free: 6.926 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006371/0.473, allocations: 497.1 kB / 0.6324 GB, free: 6.441 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003538/0.4733, allocations: 327.1 kB / 0.6327 GB, free: 6.121 MB / 494.1 MB Notification: Performance of Backend: time 4.4e-07/0.4733, allocations: 0 / 0.6327 GB, free: 6.121 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006776/0.4801, allocations: 1.676 MB / 0.6343 GB, free: 4.449 MB / 494.1 MB Notification: Performance of SimCode: time 0.002089/0.4822, allocations: 1.609 MB / 0.6359 GB, free: 2.801 MB / 494.1 MB Notification: Performance of Templates: time 0.06264/0.5449, allocations: 44.21 MB / 0.6791 GB, free: 6.602 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches