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.001443/0.001443, allocations: 116.1 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001631/0.001631, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2184/0.2184, allocations: 46.11 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 75.88 kB / 481.3 MB, free: 4.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3565, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03416/0.3908, allocations: 28.27 MB / 0.5586 GB, free: 5.367 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01676/0.4076, allocations: 13.29 MB / 0.5716 GB, free: 8.031 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005273/0.4081, allocations: 15.88 kB / 0.5716 GB, free: 8.016 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009272/0.4091, allocations: 246.4 kB / 0.5718 GB, free: 7.773 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01043/0.4196, allocations: 3.679 MB / 0.5754 GB, free: 4.098 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007261/0.4268, allocations: 2.356 MB / 0.5777 GB, free: 1.742 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001359/0.4282, allocations: 0.9002 MB / 0.5786 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005383/0.4288, allocations: 260.5 kB / 0.5788 GB, free: 0.582 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009659/0.4297, allocations: 446.2 kB / 0.5793 GB, free: 148 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005066/0.4303, allocations: 266.9 kB / 0.5795 GB, free: 15.88 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.78e-05/0.4304, allocations: 36 kB / 0.5796 GB, free: 15.85 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01611/0.4465, allocations: 7.231 MB / 0.5866 GB, free: 8.609 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002538/0.4468, allocations: 111.7 kB / 0.5867 GB, free: 8.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004521/0.4472, allocations: 215 kB / 0.5869 GB, free: 8.289 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01216/0.4594, allocations: 4.425 MB / 0.5912 GB, free: 3.855 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.4595, allocations: 0 / 0.5912 GB, free: 3.855 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4595, allocations: 0 / 0.5912 GB, free: 3.855 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.903e-05/0.4595, allocations: 0 / 0.5912 GB, free: 3.855 MB / 446.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.003681/0.4632, allocations: 1.236 MB / 0.5925 GB, free: 2.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4632, allocations: 12.03 kB / 0.5925 GB, free: 2.559 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001869/0.4651, allocations: 204.3 kB / 0.5927 GB, free: 2.359 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007076/0.4658, allocations: 379.3 kB / 0.593 GB, free: 1.949 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.204e-05/0.4659, allocations: 25.03 kB / 0.593 GB, free: 1.926 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.833e-05/0.4659, allocations: 28.38 kB / 0.5931 GB, free: 1.898 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/0.4676, allocations: 0.5822 MB / 0.5936 GB, free: 1.273 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.4677, allocations: 0 / 0.5936 GB, free: 1.273 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.379e-05/0.4677, allocations: 12 kB / 0.5937 GB, free: 1.262 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.4677, allocations: 12 kB / 0.5937 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.4694, allocations: 0.5289 MB / 0.5942 GB, free: 0.7227 MB / 446.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.003239/0.4727, allocations: 2.625 MB / 0.5967 GB, free: 13.86 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.4742, allocations: 454.2 kB / 0.5972 GB, free: 13.41 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004369/0.4747, allocations: 196.7 kB / 0.5974 GB, free: 13.21 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05305/0.5277, allocations: 26.88 MB / 0.6236 GB, free: 14.92 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.603e-05/0.5278, allocations: 34.56 kB / 0.6237 GB, free: 14.88 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.185e-06/0.5278, allocations: 0 / 0.6237 GB, free: 14.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002916/0.5308, allocations: 0.7934 MB / 0.6244 GB, free: 14.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.459e-05/0.5309, allocations: 106.8 kB / 0.6245 GB, free: 13.95 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003846/0.5312, allocations: 312.5 kB / 0.6248 GB, free: 13.63 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.5313, allocations: 29.7 kB / 0.6249 GB, free: 13.6 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.5314, allocations: 208.1 kB / 0.6251 GB, free: 13.39 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.802e-05/0.5315, allocations: 82.84 kB / 0.6251 GB, free: 13.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.5316, allocations: 69.69 kB / 0.6252 GB, free: 13.23 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.5318, allocations: 342.8 kB / 0.6255 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003836/0.5322, allocations: 139.9 kB / 0.6257 GB, free: 12.75 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004502/0.5326, allocations: 235.8 kB / 0.6259 GB, free: 12.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007947/0.5334, allocations: 361.9 kB / 0.6262 GB, free: 12.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.5335, allocations: 0 / 0.6262 GB, free: 12.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009797/0.5344, allocations: 432.7 kB / 0.6266 GB, free: 11.66 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.5345, allocations: 8 kB / 0.6266 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.5345, allocations: 0 / 0.6266 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.944e-05/0.5345, allocations: 7.938 kB / 0.6267 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003298/0.5349, allocations: 79.89 kB / 0.6267 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.5349, allocations: 7.984 kB / 0.6267 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000274/0.5352, allocations: 51.83 kB / 0.6268 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.312e-05/0.5352, allocations: 15.98 kB / 0.6268 GB, free: 11.5 MB / 494.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.0001867/0.5354, allocations: 161.7 kB / 0.627 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.66e-05/0.5355, allocations: 31.62 kB / 0.627 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/0.5379, allocations: 1.893 MB / 0.6288 GB, free: 9.391 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-05/0.5379, allocations: 31.89 kB / 0.6289 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.538, allocations: 0 / 0.6289 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.538, allocations: 7.922 kB / 0.6289 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.539, allocations: 1.015 MB / 0.6299 GB, free: 8.285 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.539, allocations: 7.969 kB / 0.6299 GB, free: 8.277 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/0.5394, allocations: 75.88 kB / 0.6299 GB, free: 8.203 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.5394, allocations: 0 / 0.6299 GB, free: 8.203 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.5394, allocations: 8 kB / 0.63 GB, free: 8.195 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.838e-06/0.5394, allocations: 3.938 kB / 0.63 GB, free: 8.191 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.5394, allocations: 0 / 0.63 GB, free: 8.191 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001472/0.5409, allocations: 1.081 MB / 0.631 GB, free: 7.094 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001388/0.541, allocations: 159.8 kB / 0.6312 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.631e-05/0.5411, allocations: 23.78 kB / 0.6312 GB, free: 6.895 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.5414, allocations: 31.91 kB / 0.6312 GB, free: 6.863 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.5415, allocations: 35.95 kB / 0.6313 GB, free: 6.828 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.5415, allocations: 8 kB / 0.6313 GB, free: 6.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003513/0.5419, allocations: 327.1 kB / 0.6316 GB, free: 6.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5419, allocations: 0 / 0.6316 GB, free: 6.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00303/0.5449, allocations: 0.9954 MB / 0.6325 GB, free: 5.504 MB / 494.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.004259/0.5492, allocations: 1.178 MB / 0.6337 GB, free: 4.328 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.5505, allocations: 0.5904 MB / 0.6343 GB, free: 3.738 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.5505, allocations: 3.984 kB / 0.6343 GB, free: 3.734 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000697/0.5512, allocations: 0.5106 MB / 0.6348 GB, free: 3.227 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.5524, allocations: 208.9 kB / 0.635 GB, free: 3.023 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002135/0.5545, allocations: 1.5 MB / 0.6364 GB, free: 1.492 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005236/0.5551, allocations: 0.9599 MB / 0.6374 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004369/0.5555, allocations: 273 kB / 0.6376 GB, free: 244 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.5556, allocations: 39.44 kB / 0.6377 GB, free: 204 kB / 494.1 MB Notification: Performance of SimCode: time 5.1e-07/0.5556, allocations: 0 / 0.6377 GB, free: 204 kB / 494.1 MB Notification: Performance of Templates: time 0.05503/0.6107, allocations: 39.5 MB / 0.6762 GB, free: 8.75 MB / 0.5294 GB 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