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.0009641/0.0009641, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.0009907/0.0009908, allocations: 187 kB / 19.34 MB, free: 3.641 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.311/1.311, allocations: 222.9 MB / 243 MB, free: 15.14 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.1947/0.1947, allocations: 44.17 MB / 337.4 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 59.89 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1157, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02905/0.1448, allocations: 28.11 MB / 498.8 MB, free: 1.434 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01519/0.1601, allocations: 13.3 MB / 0.5001 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003704/0.1605, allocations: 15.94 kB / 0.5001 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007498/0.1613, allocations: 246.4 kB / 0.5004 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009543/0.1708, allocations: 3.657 MB / 0.504 GB, free: 172 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2303/0.4012, allocations: 2.353 MB / 0.5063 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001371/0.4026, allocations: 0.8927 MB / 0.5071 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004245/0.403, allocations: 249.6 kB / 0.5074 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008398/0.4039, allocations: 453 kB / 0.5078 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003972/0.4043, allocations: 264.8 kB / 0.508 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.774e-05/0.4044, allocations: 32.19 kB / 0.5081 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01421/0.4186, allocations: 7.218 MB / 0.5151 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002209/0.4188, allocations: 98.75 kB / 0.5152 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004504/0.4193, allocations: 220.5 kB / 0.5154 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01151/0.4308, allocations: 4.408 MB / 0.5197 GB, free: 13.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.4308, allocations: 1.375 kB / 0.5197 GB, free: 13.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.4308, allocations: 1.094 kB / 0.5197 GB, free: 13.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.4309, allocations: 0 / 0.5197 GB, free: 13.47 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.004369/0.4352, allocations: 1.222 MB / 0.5209 GB, free: 12.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.4353, allocations: 9.781 kB / 0.5209 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001697/0.437, allocations: 215.9 kB / 0.5211 GB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000514/0.4375, allocations: 387 kB / 0.5215 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.4376, allocations: 26.53 kB / 0.5215 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.238e-05/0.4376, allocations: 27.62 kB / 0.5216 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.4391, allocations: 0.586 MB / 0.5221 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.4391, allocations: 1.688 kB / 0.5221 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/0.4392, allocations: 16.78 kB / 0.5222 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.4392, allocations: 8.031 kB / 0.5222 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001495/0.4407, allocations: 0.5264 MB / 0.5227 GB, free: 12.29 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.002638/0.4433, allocations: 2.624 MB / 0.5252 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.4448, allocations: 456.6 kB / 0.5257 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000388/0.4452, allocations: 189.9 kB / 0.5259 GB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04515/0.4903, allocations: 24.31 MB / 0.5496 GB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.4904, allocations: 38.5 kB / 0.5496 GB, free: 4.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.943e-06/0.4904, allocations: 0 / 0.5496 GB, free: 4.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002823/0.4932, allocations: 0.7861 MB / 0.5504 GB, free: 4.199 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.847e-05/0.4933, allocations: 110.4 kB / 0.5505 GB, free: 4.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003565/0.4937, allocations: 316.3 kB / 0.5508 GB, free: 3.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.4937, allocations: 25.7 kB / 0.5508 GB, free: 3.781 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.4938, allocations: 206.4 kB / 0.551 GB, free: 3.629 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.41e-05/0.4939, allocations: 89 kB / 0.5511 GB, free: 3.551 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.494, allocations: 75.84 kB / 0.5512 GB, free: 3.496 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.4942, allocations: 341 kB / 0.5515 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003842/0.4946, allocations: 134.8 kB / 0.5516 GB, free: 3.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004284/0.495, allocations: 230.5 kB / 0.5519 GB, free: 2.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007477/0.4958, allocations: 366.6 kB / 0.5522 GB, free: 2.559 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.4958, allocations: 0 / 0.5522 GB, free: 2.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009482/0.4967, allocations: 424.9 kB / 0.5526 GB, free: 2.246 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.4968, allocations: 4 kB / 0.5526 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.4968, allocations: 4 kB / 0.5526 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.4968, allocations: 8.203 kB / 0.5526 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003264/0.4971, allocations: 86.47 kB / 0.5527 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.4972, allocations: 7.469 kB / 0.5527 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003034/0.4975, allocations: 51.41 kB / 0.5528 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.442e-05/0.4975, allocations: 15.44 kB / 0.5528 GB, free: 2.098 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.0001727/0.4977, allocations: 156.1 kB / 0.5529 GB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.292e-05/0.4978, allocations: 35.53 kB / 0.553 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002288/0.5001, allocations: 1.902 MB / 0.5548 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.052e-05/0.5001, allocations: 35.88 kB / 0.5549 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.5001, allocations: 0 / 0.5549 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.5002, allocations: 0 / 0.5549 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000962/0.5011, allocations: 1.01 MB / 0.5558 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.5011, allocations: 0 / 0.5558 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002982/0.5014, allocations: 71.03 kB / 0.5559 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.942e-06/0.5015, allocations: 8 kB / 0.5559 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.5015, allocations: 4 kB / 0.5559 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.5015, allocations: 15.86 kB / 0.5559 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.5015, allocations: 0 / 0.5559 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.5029, allocations: 1.077 MB / 0.557 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/0.5031, allocations: 161.2 kB / 0.5571 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.648e-05/0.5032, allocations: 27.69 kB / 0.5572 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002717/0.5034, allocations: 34.97 kB / 0.5572 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.122e-05/0.5035, allocations: 27.95 kB / 0.5572 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.473e-05/0.5036, allocations: 8 kB / 0.5572 GB, free: 13.47 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003461/0.5039, allocations: 338.3 kB / 0.5576 GB, free: 13.15 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5039, allocations: 0 / 0.5576 GB, free: 13.15 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004126/0.5081, allocations: 0.9838 MB / 0.5585 GB, free: 12.16 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.005757/0.5138, allocations: 1.175 MB / 0.5597 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.515, allocations: 0.5926 MB / 0.5602 GB, free: 10.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.515, allocations: 4 kB / 0.5602 GB, free: 10.51 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006314/0.5156, allocations: 0.511 MB / 0.5607 GB, free: 10 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.5167, allocations: 204.4 kB / 0.5609 GB, free: 9.812 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.5187, allocations: 1.507 MB / 0.5624 GB, free: 8.281 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005262/0.5192, allocations: 0.9677 MB / 0.5634 GB, free: 7.289 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004206/0.5197, allocations: 275.4 kB / 0.5636 GB, free: 7.031 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.5198, allocations: 51.42 kB / 0.5637 GB, free: 6.98 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.5198, allocations: 0 / 0.5637 GB, free: 6.98 MB / 414.1 MB Notification: Performance of Templates: time 0.05014/0.5699, allocations: 39.28 MB / 0.602 GB, free: 15.88 MB / 462.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 -s gbode -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