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.00154/0.00154, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001904/0.001904, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2219/0.2219, allocations: 46.11 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002319/0.002319, allocations: 77.38 kB / 417.7 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1274, allocations: 62.44 MB / 480.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03388/0.1613, allocations: 28.26 MB / 0.4965 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2652/0.4266, allocations: 13.3 MB / 0.5094 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005273/0.4272, allocations: 12.94 kB / 0.5095 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008749/0.4281, allocations: 241.3 kB / 0.5097 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01141/0.4395, allocations: 3.667 MB / 0.5133 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006652/0.4462, allocations: 2.376 MB / 0.5156 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001342/0.4476, allocations: 0.8908 MB / 0.5165 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004558/0.448, allocations: 245.9 kB / 0.5167 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007658/0.4488, allocations: 442.6 kB / 0.5171 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003386/0.4492, allocations: 274.8 kB / 0.5174 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.071e-05/0.4492, allocations: 33.44 kB / 0.5174 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01838/0.4676, allocations: 7.064 MB / 0.5243 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000304/0.468, allocations: 99.22 kB / 0.5244 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005227/0.4685, allocations: 218.4 kB / 0.5246 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01534/0.4838, allocations: 4.423 MB / 0.5289 GB, free: 8.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.4839, allocations: 1.062 kB / 0.5289 GB, free: 8.117 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4839, allocations: 0 / 0.5289 GB, free: 8.117 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.969e-06/0.4839, allocations: 0 / 0.5289 GB, free: 8.117 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.004297/0.4882, allocations: 1.234 MB / 0.5301 GB, free: 7.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.4883, allocations: 8.25 kB / 0.5301 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001709/0.49, allocations: 208.3 kB / 0.5303 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000447/0.4904, allocations: 367.1 kB / 0.5307 GB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.632e-05/0.4905, allocations: 26.78 kB / 0.5307 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.319e-05/0.4905, allocations: 26.44 kB / 0.5307 GB, free: 6.777 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.492, allocations: 0.5826 MB / 0.5313 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.4921, allocations: 5.5 kB / 0.5313 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.108e-05/0.4921, allocations: 11.62 kB / 0.5313 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.4921, allocations: 8.156 kB / 0.5313 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.4936, allocations: 0.5277 MB / 0.5318 GB, free: 6.133 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.003063/0.4967, allocations: 2.64 MB / 0.5344 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001511/0.4982, allocations: 458.3 kB / 0.5349 GB, free: 3.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003849/0.4986, allocations: 187.3 kB / 0.535 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0559/0.5545, allocations: 26.76 MB / 0.5612 GB, free: 8.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.937e-05/0.5546, allocations: 40.14 kB / 0.5612 GB, free: 8.543 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 3.006e-06/0.5546, allocations: 0.8438 kB / 0.5612 GB, free: 8.543 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002984/0.5576, allocations: 0.7863 MB / 0.562 GB, free: 7.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.582e-05/0.5577, allocations: 110.8 kB / 0.5621 GB, free: 7.617 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003844/0.5581, allocations: 312.5 kB / 0.5624 GB, free: 7.309 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.5582, allocations: 33.7 kB / 0.5624 GB, free: 7.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000167/0.5583, allocations: 200.2 kB / 0.5626 GB, free: 7.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.149e-05/0.5584, allocations: 89.56 kB / 0.5627 GB, free: 6.984 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.5586, allocations: 69.69 kB / 0.5628 GB, free: 6.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.5587, allocations: 346.8 kB / 0.5631 GB, free: 6.562 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003931/0.5591, allocations: 146.5 kB / 0.5632 GB, free: 6.422 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004664/0.5596, allocations: 234.8 kB / 0.5635 GB, free: 6.152 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008143/0.5604, allocations: 357.3 kB / 0.5638 GB, free: 5.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.5605, allocations: 4 kB / 0.5638 GB, free: 5.766 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001009/0.5615, allocations: 416.8 kB / 0.5642 GB, free: 5.352 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.5615, allocations: 8 kB / 0.5642 GB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.5615, allocations: 4 kB / 0.5642 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.5616, allocations: 4 kB / 0.5642 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003472/0.5619, allocations: 89.62 kB / 0.5643 GB, free: 5.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.5619, allocations: 4 kB / 0.5643 GB, free: 5.246 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003142/0.5622, allocations: 55.56 kB / 0.5644 GB, free: 5.191 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.085e-05/0.5623, allocations: 12 kB / 0.5644 GB, free: 5.18 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.0002047/0.5625, allocations: 153.8 kB / 0.5645 GB, free: 5.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.581e-05/0.5626, allocations: 43.56 kB / 0.5646 GB, free: 4.977 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002554/0.5651, allocations: 1.894 MB / 0.5664 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-05/0.5652, allocations: 35.88 kB / 0.5664 GB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.5652, allocations: 4 kB / 0.5664 GB, free: 3.039 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.5652, allocations: 4 kB / 0.5664 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.5664, allocations: 1.013 MB / 0.5674 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.5664, allocations: 4 kB / 0.5674 GB, free: 1.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003058/0.5667, allocations: 71.88 kB / 0.5675 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.5667, allocations: 3.984 kB / 0.5675 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.5667, allocations: 11.98 kB / 0.5675 GB, free: 1.891 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.5667, allocations: 3.938 kB / 0.5675 GB, free: 1.887 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.5668, allocations: 4 kB / 0.5675 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.5683, allocations: 1.077 MB / 0.5686 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/0.5684, allocations: 171.8 kB / 0.5687 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.765e-05/0.5685, allocations: 19.75 kB / 0.5688 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002528/0.5688, allocations: 31.91 kB / 0.5688 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.5689, allocations: 31.95 kB / 0.5688 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/0.5689, allocations: 8 kB / 0.5688 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003698/0.5693, allocations: 327.1 kB / 0.5691 GB, free: 204 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5693, allocations: 0 / 0.5691 GB, free: 204 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.004095/0.5734, allocations: 0.9994 MB / 0.5701 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.005947/0.5794, allocations: 1.178 MB / 0.5713 GB, free: 14.11 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.5811, allocations: 0.6101 MB / 0.5719 GB, free: 13.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.5811, allocations: 0.625 kB / 0.5719 GB, free: 13.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007279/0.5818, allocations: 0.5139 MB / 0.5724 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.5831, allocations: 213.4 kB / 0.5726 GB, free: 12.79 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.5858, allocations: 1.535 MB / 0.5741 GB, free: 11.22 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005917/0.5864, allocations: 0.9599 MB / 0.575 GB, free: 10.24 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005814/0.587, allocations: 274.8 kB / 0.5753 GB, free: 9.973 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.5871, allocations: 39.44 kB / 0.5753 GB, free: 9.934 MB / 430.1 MB Notification: Performance of SimCode: time 7.81e-07/0.5871, allocations: 0 / 0.5753 GB, free: 9.934 MB / 430.1 MB Notification: Performance of Templates: time 0.06008/0.6472, allocations: 39.49 MB / 0.6139 GB, free: 2.527 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