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.001186/0.001187, allocations: 99.3 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001462/0.001462, allocations: 199.3 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.197/0.197, allocations: 45.91 MB / 344 MB, free: 12.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002713, allocations: 8 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1301, allocations: 63.47 MB / 481.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02579/0.1559, allocations: 23.84 MB / 0.4934 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01436/0.1703, allocations: 11.37 MB / 0.5045 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004428/0.1708, allocations: 11.88 kB / 0.5045 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007975/0.1716, allocations: 211 kB / 0.5047 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.244/0.4156, allocations: 2.815 MB / 0.5075 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006829/0.4225, allocations: 1.907 MB / 0.5093 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001173/0.4237, allocations: 0.5371 MB / 0.5098 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004068/0.4241, allocations: 202.8 kB / 0.51 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008846/0.425, allocations: 401.5 kB / 0.5104 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000268/0.4253, allocations: 201.4 kB / 0.5106 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.729e-05/0.4253, allocations: 17.66 kB / 0.5106 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01548/0.4408, allocations: 7.02 MB / 0.5175 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002722/0.4411, allocations: 78.39 kB / 0.5176 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003303/0.4415, allocations: 104.8 kB / 0.5177 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007401/0.4489, allocations: 2.951 MB / 0.5205 GB, free: 12.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.4489, allocations: 0 / 0.5205 GB, free: 12.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4489, allocations: 4 kB / 0.5205 GB, free: 12.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.997e-05/0.449, allocations: 0 / 0.5205 GB, free: 12.34 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.004375/0.4533, allocations: 1.169 MB / 0.5217 GB, free: 11.63 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.4534, allocations: 8.594 kB / 0.5217 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001824/0.4552, allocations: 218.9 kB / 0.5219 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005477/0.4558, allocations: 349.6 kB / 0.5222 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.764e-05/0.4558, allocations: 29.08 kB / 0.5223 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.488e-05/0.4559, allocations: 29.62 kB / 0.5223 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.4575, allocations: 0.6014 MB / 0.5229 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.4575, allocations: 5.047 kB / 0.5229 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.598e-05/0.4576, allocations: 10.97 kB / 0.5229 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.4576, allocations: 8.656 kB / 0.5229 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001651/0.4593, allocations: 0.5616 MB / 0.5235 GB, free: 11.2 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.002863/0.4621, allocations: 2.642 MB / 0.526 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.4637, allocations: 487.7 kB / 0.5265 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05275/0.5165, allocations: 26.99 MB / 0.5529 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.5166, allocations: 41.66 kB / 0.5529 GB, free: 1.227 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.986e-06/0.5166, allocations: 0 / 0.5529 GB, free: 1.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003112/0.5197, allocations: 0.8511 MB / 0.5537 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/0.5198, allocations: 106.8 kB / 0.5538 GB, free: 404 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004095/0.5202, allocations: 306.5 kB / 0.5541 GB, free: 148 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.468e-05/0.5202, allocations: 32.95 kB / 0.5542 GB, free: 112 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/0.5204, allocations: 205.2 kB / 0.5544 GB, free: 15.96 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.951e-05/0.5205, allocations: 82 kB / 0.5544 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.795e-05/0.5206, allocations: 11.5 kB / 0.5544 GB, free: 15.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.5207, allocations: 342 kB / 0.5548 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004135/0.5211, allocations: 153.6 kB / 0.5549 GB, free: 15.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004824/0.5216, allocations: 243.6 kB / 0.5551 GB, free: 15.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004396/0.5221, allocations: 174.2 kB / 0.5553 GB, free: 15.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.5221, allocations: 0 / 0.5553 GB, free: 15.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001071/0.5232, allocations: 453.1 kB / 0.5557 GB, free: 14.74 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.5232, allocations: 4 kB / 0.5558 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.5232, allocations: 4 kB / 0.5558 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.5232, allocations: 4 kB / 0.5558 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003429/0.5236, allocations: 92.41 kB / 0.5558 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.5236, allocations: 7.984 kB / 0.5559 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004073/0.524, allocations: 61.36 kB / 0.5559 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.082e-05/0.5241, allocations: 15.62 kB / 0.5559 GB, free: 14.58 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 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002522/0.5243, allocations: 166.2 kB / 0.5561 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/0.5245, allocations: 39.53 kB / 0.5561 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002392/0.5269, allocations: 1.934 MB / 0.558 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.137e-05/0.5269, allocations: 26.7 kB / 0.558 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.5269, allocations: 7.938 kB / 0.558 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.527, allocations: 1.688 kB / 0.558 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.528, allocations: 1.021 MB / 0.559 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.5281, allocations: 0 / 0.559 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003357/0.5284, allocations: 81.38 kB / 0.5591 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.5284, allocations: 4 kB / 0.5591 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.5284, allocations: 3.25 kB / 0.5591 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.483e-06/0.5285, allocations: 6.562 kB / 0.5591 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.5285, allocations: 2.734 kB / 0.5591 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00164/0.5301, allocations: 1.105 MB / 0.5602 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002658/0.5304, allocations: 219.3 kB / 0.5604 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.418e-05/0.5305, allocations: 4.5 kB / 0.5604 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003562/0.5308, allocations: 50.62 kB / 0.5605 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.531, allocations: 35 kB / 0.5605 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.149e-05/0.531, allocations: 9.812 kB / 0.5605 GB, free: 11.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004339/0.5314, allocations: 318.6 kB / 0.5608 GB, free: 10.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5315, allocations: 0 / 0.5608 GB, free: 10.9 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006101/0.5376, allocations: 1.009 MB / 0.5618 GB, free: 9.938 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008867/0.5465, allocations: 1.181 MB / 0.563 GB, free: 8.879 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001412/0.5479, allocations: 0.6133 MB / 0.5636 GB, free: 8.453 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.5479, allocations: 0 / 0.5636 GB, free: 8.453 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007481/0.5487, allocations: 0.5208 MB / 0.5641 GB, free: 8.164 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.55, allocations: 204.8 kB / 0.5643 GB, free: 8.008 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002613/0.5526, allocations: 1.872 MB / 0.5661 GB, free: 6.352 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005333/0.5531, allocations: 0.9859 MB / 0.5671 GB, free: 5.348 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005001/0.5537, allocations: 276.3 kB / 0.5673 GB, free: 5.086 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.5538, allocations: 46.3 kB / 0.5674 GB, free: 5.043 MB / 414.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5538, allocations: 0 / 0.5674 GB, free: 5.043 MB / 414.1 MB Notification: Performance of Templates: time 0.056/0.6098, allocations: 39.16 MB / 0.6056 GB, free: 14.09 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","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches