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.001245/0.001244, allocations: 109.3 kB / 18.39 MB, free: 4.629 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.001125/0.001125, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.346/1.346, allocations: 222.9 MB / 243 MB, free: 15.09 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.2025/0.2025, allocations: 44.18 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 72.02 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1087, allocations: 60.82 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02849/0.1372, allocations: 28.12 MB / 498.8 MB, free: 1.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01523/0.1525, allocations: 13.31 MB / 0.5001 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003357/0.1529, allocations: 7.938 kB / 0.5001 GB, free: 4.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007367/0.1536, allocations: 246.4 kB / 0.5004 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008952/0.1626, allocations: 3.657 MB / 0.5039 GB, free: 168 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2287/0.3914, allocations: 2.352 MB / 0.5062 GB, free: 13.72 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001802/0.3932, allocations: 0.8933 MB / 0.5071 GB, free: 13.72 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007531/0.3939, allocations: 248.3 kB / 0.5073 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001485/0.3955, allocations: 452.5 kB / 0.5078 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007786/0.3962, allocations: 267.2 kB / 0.508 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.3964, allocations: 32.97 kB / 0.5081 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02096/0.4174, allocations: 7.225 MB / 0.5151 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003386/0.4178, allocations: 94.64 kB / 0.5152 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007677/0.4185, allocations: 226.3 kB / 0.5154 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01869/0.4372, allocations: 4.403 MB / 0.5197 GB, free: 13.6 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.236e-06/0.4373, allocations: 0 / 0.5197 GB, free: 13.6 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4373, allocations: 1.531 kB / 0.5197 GB, free: 13.6 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.402e-05/0.4374, allocations: 0 / 0.5197 GB, free: 13.6 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.006547/0.4439, allocations: 1.23 MB / 0.5209 GB, free: 12.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/0.444, allocations: 9.5 kB / 0.5209 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002973/0.447, allocations: 211.7 kB / 0.5211 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007729/0.4478, allocations: 379.4 kB / 0.5215 GB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.174e-05/0.4478, allocations: 25.78 kB / 0.5215 GB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.436e-05/0.4479, allocations: 30.06 kB / 0.5216 GB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002168/0.4501, allocations: 0.5874 MB / 0.5221 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.4501, allocations: 2.375 kB / 0.5221 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.642e-05/0.4502, allocations: 15.16 kB / 0.5221 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.4502, allocations: 8.406 kB / 0.5222 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/0.4519, allocations: 0.5267 MB / 0.5227 GB, free: 12.41 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.002532/0.4544, allocations: 2.624 MB / 0.5252 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.4558, allocations: 463.5 kB / 0.5257 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003691/0.4562, allocations: 186.6 kB / 0.5258 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0423/0.4985, allocations: 24.31 MB / 0.5496 GB, free: 5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.4986, allocations: 33.88 kB / 0.5496 GB, free: 4.961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.275e-06/0.4986, allocations: 4 kB / 0.5496 GB, free: 4.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002678/0.5013, allocations: 0.7866 MB / 0.5504 GB, free: 4.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.252e-05/0.5014, allocations: 110.8 kB / 0.5505 GB, free: 4.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003448/0.5017, allocations: 308.8 kB / 0.5508 GB, free: 3.938 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.718e-05/0.5018, allocations: 37.38 kB / 0.5508 GB, free: 3.898 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.5019, allocations: 196.6 kB / 0.551 GB, free: 3.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.797e-05/0.502, allocations: 89.41 kB / 0.5511 GB, free: 3.676 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.5021, allocations: 74.47 kB / 0.5512 GB, free: 3.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.5023, allocations: 345.1 kB / 0.5515 GB, free: 3.293 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003408/0.5026, allocations: 134.6 kB / 0.5516 GB, free: 3.195 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004253/0.5031, allocations: 235.4 kB / 0.5519 GB, free: 2.973 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008205/0.5039, allocations: 361.8 kB / 0.5522 GB, free: 2.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.5039, allocations: 4 kB / 0.5522 GB, free: 2.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009226/0.5048, allocations: 418.6 kB / 0.5526 GB, free: 2.371 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.5049, allocations: 11.94 kB / 0.5526 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.5049, allocations: 4.938 kB / 0.5526 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.5049, allocations: 4 kB / 0.5526 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003186/0.5052, allocations: 90.56 kB / 0.5527 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.5053, allocations: 4 kB / 0.5527 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/0.5056, allocations: 55.41 kB / 0.5528 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.963e-05/0.5056, allocations: 8 kB / 0.5528 GB, free: 2.207 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.0001999/0.5058, allocations: 158.8 kB / 0.5529 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.917e-05/0.5059, allocations: 39.53 kB / 0.553 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002454/0.5084, allocations: 1.9 MB / 0.5548 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.722e-05/0.5084, allocations: 31.89 kB / 0.5548 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.5084, allocations: 0 / 0.5548 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.5084, allocations: 7.984 kB / 0.5549 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/0.5095, allocations: 1.007 MB / 0.5558 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.5095, allocations: 0 / 0.5558 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/0.5098, allocations: 75.06 kB / 0.5559 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.5098, allocations: 0 / 0.5559 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.5099, allocations: 12 kB / 0.5559 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.5099, allocations: 3.938 kB / 0.5559 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.5099, allocations: 4 kB / 0.5559 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.5113, allocations: 1.08 MB / 0.557 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.5115, allocations: 159.9 kB / 0.5571 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.833e-05/0.5116, allocations: 27.67 kB / 0.5572 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.5118, allocations: 27.92 kB / 0.5572 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.5119, allocations: 31.95 kB / 0.5572 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.071e-05/0.512, allocations: 11.98 kB / 0.5572 GB, free: 13.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003896/0.5124, allocations: 327.1 kB / 0.5575 GB, free: 13.25 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5124, allocations: 0 / 0.5575 GB, free: 13.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004731/0.5171, allocations: 0.9916 MB / 0.5585 GB, free: 12.26 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.005585/0.5227, allocations: 1.168 MB / 0.5597 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.5239, allocations: 0.5848 MB / 0.5602 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.524, allocations: 4 kB / 0.5602 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006224/0.5246, allocations: 0.5105 MB / 0.5607 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.5257, allocations: 214.4 kB / 0.5609 GB, free: 9.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001944/0.5277, allocations: 1.51 MB / 0.5624 GB, free: 8.379 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005297/0.5282, allocations: 0.9638 MB / 0.5633 GB, free: 7.391 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004094/0.5286, allocations: 274.3 kB / 0.5636 GB, free: 7.133 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.5287, allocations: 43.38 kB / 0.5636 GB, free: 7.09 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.5287, allocations: 8 kB / 0.5637 GB, free: 7.082 MB / 414.1 MB Notification: Performance of Templates: time 0.05029/0.579, allocations: 39.28 MB / 0.602 GB, free: 15.97 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 cvode -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