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.001128/0.001128, allocations: 108.4 kB / 17.98 MB, free: 5.336 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.001184/0.001184, allocations: 193.3 kB / 18.9 MB, free: 4.414 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.32/1.32, allocations: 222.9 MB / 242.6 MB, free: 13.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2091/0.2091, allocations: 44.17 MB / 336.9 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 59.81 kB / 408.5 MB, free: 27.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1071, allocations: 60.83 MB / 469.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0354/0.1425, allocations: 28.23 MB / 497.6 MB, free: 2.344 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01637/0.1589, allocations: 13.39 MB / 0.499 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006383/0.1596, allocations: 11.94 kB / 0.499 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009261/0.1605, allocations: 218.8 kB / 0.4993 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01103/0.1716, allocations: 3.238 MB / 0.5024 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2167/0.3884, allocations: 2.107 MB / 0.5045 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001253/0.3896, allocations: 0.8926 MB / 0.5053 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004125/0.3901, allocations: 242.5 kB / 0.5056 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008371/0.3909, allocations: 446.6 kB / 0.506 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000375/0.3913, allocations: 281.2 kB / 0.5063 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.563e-05/0.3914, allocations: 34.69 kB / 0.5063 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01559/0.407, allocations: 7.113 MB / 0.5132 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002293/0.4073, allocations: 100.2 kB / 0.5133 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005522/0.4078, allocations: 218.7 kB / 0.5136 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008301/0.4161, allocations: 3.028 MB / 0.5165 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.4162, allocations: 0 / 0.5165 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4162, allocations: 0.8438 kB / 0.5165 GB, free: 13.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.4162, allocations: 1.156 kB / 0.5165 GB, free: 13.82 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.005429/0.4216, allocations: 1.225 MB / 0.5177 GB, free: 13.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.4217, allocations: 14.03 kB / 0.5177 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001811/0.4235, allocations: 215.2 kB / 0.5179 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005212/0.4241, allocations: 361.3 kB / 0.5183 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.047e-05/0.4241, allocations: 28.88 kB / 0.5183 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.161e-05/0.4242, allocations: 26.56 kB / 0.5183 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001567/0.4257, allocations: 0.5871 MB / 0.5189 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.4258, allocations: 0 / 0.5189 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.317e-05/0.4258, allocations: 12.97 kB / 0.5189 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.4258, allocations: 8.469 kB / 0.5189 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.4273, allocations: 0.5252 MB / 0.5194 GB, free: 12.73 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.002593/0.43, allocations: 2.623 MB / 0.522 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.4315, allocations: 457.5 kB / 0.5224 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004043/0.4319, allocations: 186.8 kB / 0.5226 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04214/0.474, allocations: 24.21 MB / 0.5462 GB, free: 7.344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/0.4741, allocations: 42.03 kB / 0.5463 GB, free: 7.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 3.356e-06/0.4741, allocations: 6.859 kB / 0.5463 GB, free: 7.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002743/0.4769, allocations: 0.7828 MB / 0.5471 GB, free: 6.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.4769, allocations: 106.8 kB / 0.5472 GB, free: 6.531 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003267/0.4773, allocations: 312.4 kB / 0.5475 GB, free: 6.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.126e-05/0.4773, allocations: 30.27 kB / 0.5475 GB, free: 6.246 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.4775, allocations: 203.8 kB / 0.5477 GB, free: 6.094 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.346e-05/0.4775, allocations: 94 kB / 0.5478 GB, free: 6.016 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.4777, allocations: 71.75 kB / 0.5478 GB, free: 5.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.4778, allocations: 340.4 kB / 0.5482 GB, free: 5.637 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003648/0.4782, allocations: 138 kB / 0.5483 GB, free: 5.539 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004311/0.4786, allocations: 234.4 kB / 0.5485 GB, free: 5.316 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007664/0.4794, allocations: 366 kB / 0.5489 GB, free: 5.027 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4794, allocations: 0 / 0.5489 GB, free: 5.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009392/0.4803, allocations: 420.9 kB / 0.5493 GB, free: 4.715 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.4804, allocations: 5.531 kB / 0.5493 GB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.4804, allocations: 5.188 kB / 0.5493 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.4804, allocations: 8 kB / 0.5493 GB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003175/0.4807, allocations: 83.25 kB / 0.5494 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.4808, allocations: 8 kB / 0.5494 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003513/0.4811, allocations: 49.97 kB / 0.5494 GB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/0.4812, allocations: 23.92 kB / 0.5494 GB, free: 4.555 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.0001866/0.4813, allocations: 155.1 kB / 0.5496 GB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.053e-05/0.4814, allocations: 45.48 kB / 0.5496 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002244/0.4837, allocations: 1.901 MB / 0.5515 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-05/0.4837, allocations: 34.7 kB / 0.5515 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4837, allocations: 0 / 0.5515 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.4837, allocations: 3.984 kB / 0.5515 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009333/0.4847, allocations: 1.011 MB / 0.5525 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4847, allocations: 0 / 0.5525 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/0.485, allocations: 74.12 kB / 0.5526 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-06/0.485, allocations: 0 / 0.5526 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.485, allocations: 8.438 kB / 0.5526 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.4851, allocations: 7.875 kB / 0.5526 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4851, allocations: 0 / 0.5526 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/0.4865, allocations: 1.078 MB / 0.5537 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000141/0.4866, allocations: 159.9 kB / 0.5538 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.868e-05/0.4867, allocations: 25.61 kB / 0.5538 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000293/0.487, allocations: 39.89 kB / 0.5539 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.711e-05/0.4871, allocations: 35.95 kB / 0.5539 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.4871, allocations: 8 kB / 0.5539 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003374/0.4875, allocations: 327 kB / 0.5542 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4875, allocations: 3.844 kB / 0.5542 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003613/0.4911, allocations: 0.9955 MB / 0.5552 GB, free: 15.6 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: 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.004833/0.4959, allocations: 1.171 MB / 0.5563 GB, free: 14.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.4975, allocations: 0.6143 MB / 0.5569 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.4976, allocations: 7.188 kB / 0.557 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006714/0.4982, allocations: 0.513 MB / 0.5575 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/0.4995, allocations: 218.4 kB / 0.5577 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.502, allocations: 1.886 MB / 0.5595 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005741/0.5026, allocations: 0.9599 MB / 0.5604 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.5027, allocations: 43.44 kB / 0.5605 GB, free: 10.28 MB / 414.1 MB Notification: Performance of SimCode: time 3.4e-07/0.5028, allocations: 0 / 0.5605 GB, free: 10.28 MB / 414.1 MB Notification: Performance of Templates: time 0.0344/0.5372, allocations: 24.02 MB / 0.5839 GB, free: 2.352 MB / 430.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/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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches