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.001202/0.001202, allocations: 97.44 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001879/0.001879, allocations: 200.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2237/0.2237, allocations: 46.19 MB / 345.2 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000466/0.0004663, allocations: 4 kB / 419.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1453, allocations: 63.56 MB / 483.1 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0323/0.1776, allocations: 28.42 MB / 0.4995 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2306/0.4083, allocations: 14.02 MB / 0.5132 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004417/0.4088, allocations: 11.75 kB / 0.5132 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007089/0.4095, allocations: 219.6 kB / 0.5134 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009152/0.4187, allocations: 2.929 MB / 0.5163 GB, free: 11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006094/0.4248, allocations: 1.972 MB / 0.5182 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001379/0.4262, allocations: 1.135 MB / 0.5193 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003336/0.4265, allocations: 211.8 kB / 0.5195 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006802/0.4272, allocations: 400.4 kB / 0.5199 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002772/0.4275, allocations: 269 kB / 0.5202 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.307e-05/0.4275, allocations: 15.97 kB / 0.5202 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01446/0.442, allocations: 7.136 MB / 0.5272 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001617/0.4422, allocations: 86.8 kB / 0.5272 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002998/0.4425, allocations: 222.1 kB / 0.5274 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009743/0.4523, allocations: 4.388 MB / 0.5317 GB, free: 8.348 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4523, allocations: 0 / 0.5317 GB, free: 8.348 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.4523, allocations: 0 / 0.5317 GB, free: 8.348 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.4523, allocations: 0 / 0.5317 GB, free: 8.348 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.003543/0.4559, allocations: 1.162 MB / 0.5329 GB, free: 7.539 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.4559, allocations: 14.25 kB / 0.5329 GB, free: 7.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001679/0.4576, allocations: 218.7 kB / 0.5331 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.458, allocations: 367.7 kB / 0.5334 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.191e-05/0.4581, allocations: 26.44 kB / 0.5335 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.145e-05/0.4581, allocations: 30.34 kB / 0.5335 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.4597, allocations: 0.6103 MB / 0.5341 GB, free: 6.902 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.4597, allocations: 5.375 kB / 0.5341 GB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.993e-05/0.4597, allocations: 12 kB / 0.5341 GB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.4598, allocations: 6.875 kB / 0.5341 GB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.4613, allocations: 0.5641 MB / 0.5347 GB, free: 6.746 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.002333/0.4636, allocations: 2.632 MB / 0.5372 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.4651, allocations: 495.5 kB / 0.5377 GB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004085/0.4655, allocations: 200.3 kB / 0.5379 GB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05004/0.5155, allocations: 27 MB / 0.5643 GB, free: 8.855 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.425e-05/0.5156, allocations: 30.56 kB / 0.5643 GB, free: 8.816 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.814e-06/0.5156, allocations: 0 / 0.5643 GB, free: 8.816 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002871/0.5185, allocations: 0.8534 MB / 0.5651 GB, free: 7.957 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.5186, allocations: 106.8 kB / 0.5652 GB, free: 7.828 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003479/0.5189, allocations: 312.5 kB / 0.5655 GB, free: 7.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.519, allocations: 29.7 kB / 0.5656 GB, free: 7.484 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.5191, allocations: 208.2 kB / 0.5658 GB, free: 7.277 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.429e-05/0.5192, allocations: 82.44 kB / 0.5658 GB, free: 7.199 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.155e-05/0.5192, allocations: 33.7 kB / 0.5659 GB, free: 7.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.5194, allocations: 342.8 kB / 0.5662 GB, free: 6.816 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004128/0.5198, allocations: 159.8 kB / 0.5663 GB, free: 6.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000469/0.5203, allocations: 252.7 kB / 0.5666 GB, free: 6.375 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008258/0.5211, allocations: 387.4 kB / 0.567 GB, free: 5.965 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.5211, allocations: 4 kB / 0.567 GB, free: 5.961 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001014/0.5221, allocations: 449 kB / 0.5674 GB, free: 5.516 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.5222, allocations: 12.06 kB / 0.5674 GB, free: 5.504 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.5222, allocations: 7.938 kB / 0.5674 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.5222, allocations: 4 kB / 0.5674 GB, free: 5.492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003258/0.5225, allocations: 91.81 kB / 0.5675 GB, free: 5.402 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.5225, allocations: 7.938 kB / 0.5675 GB, free: 5.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003455/0.5229, allocations: 63.66 kB / 0.5676 GB, free: 5.332 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.5229, allocations: 19.98 kB / 0.5676 GB, free: 5.312 MB / 414.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.0001769/0.5231, allocations: 157.7 kB / 0.5677 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.684e-05/0.5232, allocations: 35.62 kB / 0.5678 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/0.5256, allocations: 1.944 MB / 0.5697 GB, free: 3.172 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.848e-05/0.5257, allocations: 31.89 kB / 0.5697 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.5257, allocations: 0 / 0.5697 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.5257, allocations: 7.984 kB / 0.5697 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009779/0.5267, allocations: 1.011 MB / 0.5707 GB, free: 2.078 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.5267, allocations: 1.25 kB / 0.5707 GB, free: 2.078 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003351/0.527, allocations: 87.81 kB / 0.5708 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.527, allocations: 4 kB / 0.5708 GB, free: 1.992 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.841e-05/0.5271, allocations: 4 kB / 0.5708 GB, free: 1.988 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.5271, allocations: 7.938 kB / 0.5708 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.5271, allocations: 0 / 0.5708 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00147/0.5285, allocations: 1.112 MB / 0.5719 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001816/0.5287, allocations: 215.6 kB / 0.5721 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.423e-05/0.5288, allocations: 8 kB / 0.5721 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003085/0.5291, allocations: 52.62 kB / 0.5721 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.636e-05/0.5292, allocations: 31.95 kB / 0.5722 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.5292, allocations: 15.98 kB / 0.5722 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003534/0.5296, allocations: 323.1 kB / 0.5725 GB, free: 204 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5296, allocations: 0 / 0.5725 GB, free: 204 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.003072/0.5327, allocations: 0.9994 MB / 0.5735 GB, free: 15.2 MB / 430.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.004409/0.5371, allocations: 1.172 MB / 0.5746 GB, free: 14.12 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.5384, allocations: 0.6225 MB / 0.5752 GB, free: 13.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.5384, allocations: 0 / 0.5752 GB, free: 13.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007097/0.5391, allocations: 0.5245 MB / 0.5757 GB, free: 12.97 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.5404, allocations: 203.2 kB / 0.5759 GB, free: 12.78 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002318/0.5427, allocations: 1.888 MB / 0.5778 GB, free: 10.86 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000521/0.5433, allocations: 0.9677 MB / 0.5787 GB, free: 9.867 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004666/0.5438, allocations: 270.8 kB / 0.579 GB, free: 9.605 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.937e-05/0.5439, allocations: 39.38 kB / 0.579 GB, free: 9.566 MB / 430.1 MB Notification: Performance of SimCode: time 4.21e-07/0.5439, allocations: 4 kB / 0.579 GB, free: 9.562 MB / 430.1 MB Notification: Performance of Templates: time 0.0526/0.5965, allocations: 38.83 MB / 0.6169 GB, free: 2.824 MB / 462.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches