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.001362/0.001362, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001463/0.001463, allocations: 194 kB / 18.77 MB, free: 4.742 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.386/1.386, allocations: 222.9 MB / 242.5 MB, free: 13.79 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.2167/0.2167, allocations: 44.18 MB / 336.8 MB, free: 2.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 60.69 kB / 408.4 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1286, allocations: 60.83 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03341/0.1621, allocations: 28.97 MB / 498.2 MB, free: 1.766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01736/0.1795, allocations: 14.28 MB / 0.5004 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005042/0.18, allocations: 15.88 kB / 0.5004 GB, free: 3.426 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007849/0.1808, allocations: 226.8 kB / 0.5007 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008936/0.1898, allocations: 2.917 MB / 0.5035 GB, free: 296 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2499/0.4397, allocations: 1.957 MB / 0.5054 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001637/0.4414, allocations: 1.132 MB / 0.5065 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004113/0.4418, allocations: 217 kB / 0.5067 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007964/0.4426, allocations: 403.2 kB / 0.5071 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003708/0.443, allocations: 273 kB / 0.5074 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.321e-05/0.4431, allocations: 16.34 kB / 0.5074 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01547/0.4585, allocations: 7.126 MB / 0.5143 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001977/0.4588, allocations: 88.88 kB / 0.5144 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004538/0.4592, allocations: 202 kB / 0.5146 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007111/0.4663, allocations: 3.014 MB / 0.5176 GB, free: 13.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.4664, allocations: 6.188 kB / 0.5176 GB, free: 13.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.4664, allocations: 0 / 0.5176 GB, free: 13.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.4664, allocations: 0 / 0.5176 GB, free: 13.55 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.004465/0.4709, allocations: 1.226 MB / 0.5188 GB, free: 12.85 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.4709, allocations: 12.53 kB / 0.5188 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001878/0.4728, allocations: 211.9 kB / 0.519 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006777/0.4735, allocations: 371.9 kB / 0.5193 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.935e-05/0.4736, allocations: 25.88 kB / 0.5194 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.216e-05/0.4737, allocations: 29.25 kB / 0.5194 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001758/0.4754, allocations: 0.5806 MB / 0.52 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.4755, allocations: 1.531 kB / 0.52 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.4755, allocations: 14.19 kB / 0.52 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.4755, allocations: 6.75 kB / 0.52 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001594/0.4771, allocations: 0.5313 MB / 0.5205 GB, free: 12.46 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.002859/0.48, allocations: 2.615 MB / 0.5231 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.4816, allocations: 467.1 kB / 0.5235 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004217/0.482, allocations: 191.9 kB / 0.5237 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04434/0.5263, allocations: 24.21 MB / 0.5473 GB, free: 6.039 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.851e-05/0.5264, allocations: 38 kB / 0.5474 GB, free: 5.996 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.254e-06/0.5264, allocations: 0 / 0.5474 GB, free: 5.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002861/0.5293, allocations: 0.7848 MB / 0.5481 GB, free: 5.359 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.716e-05/0.5294, allocations: 114.8 kB / 0.5482 GB, free: 5.223 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003412/0.5297, allocations: 313.5 kB / 0.5485 GB, free: 4.973 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/0.5298, allocations: 25.7 kB / 0.5486 GB, free: 4.941 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.5299, allocations: 210.1 kB / 0.5488 GB, free: 4.781 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.862e-05/0.53, allocations: 88.84 kB / 0.5488 GB, free: 4.711 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.5301, allocations: 69.47 kB / 0.5489 GB, free: 4.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.5302, allocations: 338.5 kB / 0.5492 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003725/0.5306, allocations: 141.3 kB / 0.5494 GB, free: 4.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004381/0.5311, allocations: 231.8 kB / 0.5496 GB, free: 4.012 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007888/0.5319, allocations: 364 kB / 0.5499 GB, free: 3.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.5319, allocations: 0 / 0.5499 GB, free: 3.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009829/0.5329, allocations: 423.8 kB / 0.5503 GB, free: 3.402 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.5329, allocations: 4 kB / 0.5503 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.5329, allocations: 4 kB / 0.5503 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.5329, allocations: 4 kB / 0.5503 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003444/0.5333, allocations: 82.77 kB / 0.5504 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.5333, allocations: 8.297 kB / 0.5504 GB, free: 3.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003552/0.5337, allocations: 56.47 kB / 0.5505 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.6e-05/0.5337, allocations: 16.25 kB / 0.5505 GB, free: 3.25 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.0001896/0.5339, allocations: 159.1 kB / 0.5507 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.511e-05/0.534, allocations: 35.53 kB / 0.5507 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002286/0.5363, allocations: 1.905 MB / 0.5526 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.235e-05/0.5363, allocations: 42.19 kB / 0.5526 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.5363, allocations: 0 / 0.5526 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.5364, allocations: 0 / 0.5526 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009921/0.5374, allocations: 1.007 MB / 0.5536 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.5374, allocations: 4.625 kB / 0.5536 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003024/0.5377, allocations: 70.09 kB / 0.5536 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.5377, allocations: 0 / 0.5536 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.5377, allocations: 7.375 kB / 0.5537 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/0.5377, allocations: 12.42 kB / 0.5537 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.5377, allocations: 0 / 0.5537 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.5392, allocations: 1.081 MB / 0.5547 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.5393, allocations: 163.8 kB / 0.5549 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.118e-05/0.5394, allocations: 24.25 kB / 0.5549 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/0.5397, allocations: 35.84 kB / 0.5549 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.801e-05/0.5398, allocations: 31.95 kB / 0.555 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.879e-05/0.5398, allocations: 19.98 kB / 0.555 GB, free: 15.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003521/0.5402, allocations: 323.1 kB / 0.5553 GB, free: 15.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5402, allocations: 0 / 0.5553 GB, free: 15.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004288/0.5445, allocations: 0.9955 MB / 0.5563 GB, free: 14.39 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.006255/0.5507, allocations: 1.18 MB / 0.5574 GB, free: 13.33 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.5521, allocations: 0.5963 MB / 0.558 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.5522, allocations: 0 / 0.558 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007636/0.5529, allocations: 0.5108 MB / 0.5585 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.5543, allocations: 208.1 kB / 0.5587 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002582/0.5569, allocations: 1.875 MB / 0.5605 GB, free: 10.13 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005176/0.5574, allocations: 0.9677 MB / 0.5615 GB, free: 9.141 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.5575, allocations: 43.38 kB / 0.5615 GB, free: 9.098 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5575, allocations: 0 / 0.5615 GB, free: 9.098 MB / 414.1 MB Notification: Performance of Templates: time 0.03947/0.597, allocations: 24 MB / 0.585 GB, free: 1.195 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