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.001381/0.001381, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2182/0.2182, allocations: 46.09 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 79.81 kB / 481.3 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.37, allocations: 62.44 MB / 0.531 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03089/0.4009, allocations: 28.26 MB / 0.5586 GB, free: 5.523 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01576/0.4168, allocations: 13.29 MB / 0.5716 GB, free: 8.184 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004875/0.4173, allocations: 7.938 kB / 0.5716 GB, free: 8.176 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008249/0.4182, allocations: 250.4 kB / 0.5718 GB, free: 7.93 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01022/0.4284, allocations: 3.66 MB / 0.5754 GB, free: 4.27 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007394/0.4358, allocations: 2.369 MB / 0.5777 GB, free: 1.902 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001456/0.4373, allocations: 0.8925 MB / 0.5786 GB, free: 1.008 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005728/0.4379, allocations: 260.6 kB / 0.5788 GB, free: 0.75 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001084/0.439, allocations: 442.2 kB / 0.5792 GB, free: 324 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005185/0.4395, allocations: 266.9 kB / 0.5795 GB, free: 56 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.4397, allocations: 36 kB / 0.5795 GB, free: 20 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0162/0.4559, allocations: 7.227 MB / 0.5866 GB, free: 8.785 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002563/0.4562, allocations: 107.7 kB / 0.5867 GB, free: 8.68 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004255/0.4566, allocations: 222.9 kB / 0.5869 GB, free: 8.461 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0125/0.4691, allocations: 4.423 MB / 0.5912 GB, free: 4.027 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.4692, allocations: 0 / 0.5912 GB, free: 4.027 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4692, allocations: 4 kB / 0.5912 GB, free: 4.023 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.222e-05/0.4692, allocations: 0 / 0.5912 GB, free: 4.023 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.004043/0.4732, allocations: 1.263 MB / 0.5925 GB, free: 2.707 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.4733, allocations: 15.91 kB / 0.5925 GB, free: 2.691 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001842/0.4752, allocations: 216.5 kB / 0.5927 GB, free: 2.48 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006892/0.4759, allocations: 383.5 kB / 0.593 GB, free: 2.066 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.052e-05/0.4759, allocations: 25.03 kB / 0.5931 GB, free: 2.043 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.074e-05/0.476, allocations: 28.38 kB / 0.5931 GB, free: 2.016 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.4777, allocations: 0.5822 MB / 0.5937 GB, free: 1.391 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.4777, allocations: 3.938 kB / 0.5937 GB, free: 1.387 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.761e-05/0.4777, allocations: 20 kB / 0.5937 GB, free: 1.367 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.4778, allocations: 8 kB / 0.5937 GB, free: 1.359 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/0.4794, allocations: 0.525 MB / 0.5942 GB, free: 0.8359 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.003423/0.4828, allocations: 2.617 MB / 0.5968 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/0.4844, allocations: 462.1 kB / 0.5972 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004403/0.4849, allocations: 196.7 kB / 0.5974 GB, free: 13.32 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05182/0.5367, allocations: 26.88 MB / 0.6236 GB, free: 15.03 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.5368, allocations: 38.5 kB / 0.6237 GB, free: 14.98 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.415e-06/0.5368, allocations: 0 / 0.6237 GB, free: 14.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.003064/0.5399, allocations: 0.7897 MB / 0.6245 GB, free: 14.19 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.634e-05/0.54, allocations: 106.8 kB / 0.6246 GB, free: 14.06 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000482/0.5405, allocations: 316.5 kB / 0.6249 GB, free: 13.74 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.294e-05/0.5406, allocations: 29.7 kB / 0.6249 GB, free: 13.71 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001924/0.5408, allocations: 208.5 kB / 0.6251 GB, free: 13.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.5409, allocations: 83.28 kB / 0.6252 GB, free: 13.41 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.5411, allocations: 69.69 kB / 0.6252 GB, free: 13.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.5412, allocations: 338.8 kB / 0.6256 GB, free: 13 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003988/0.5416, allocations: 143.9 kB / 0.6257 GB, free: 12.86 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004645/0.5421, allocations: 239.2 kB / 0.6259 GB, free: 12.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008509/0.543, allocations: 362 kB / 0.6263 GB, free: 12.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.543, allocations: 0 / 0.6263 GB, free: 12.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001044/0.544, allocations: 428.9 kB / 0.6267 GB, free: 11.78 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.5441, allocations: 7.984 kB / 0.6267 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.5441, allocations: 4 kB / 0.6267 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.5441, allocations: 7.938 kB / 0.6267 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003241/0.5445, allocations: 79.89 kB / 0.6268 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.5445, allocations: 4 kB / 0.6268 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.5448, allocations: 52 kB / 0.6268 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.795e-05/0.5449, allocations: 19.98 kB / 0.6268 GB, free: 11.61 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.0002107/0.5451, allocations: 161.7 kB / 0.627 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.5452, allocations: 35.77 kB / 0.627 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002512/0.5477, allocations: 1.901 MB / 0.6289 GB, free: 9.488 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.93e-05/0.5478, allocations: 31.89 kB / 0.6289 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.5478, allocations: 0 / 0.6289 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.5478, allocations: 0 / 0.6289 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.5488, allocations: 1.024 MB / 0.6299 GB, free: 8.383 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.5489, allocations: 0 / 0.6299 GB, free: 8.383 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002987/0.5492, allocations: 75.86 kB / 0.63 GB, free: 8.309 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.5492, allocations: 4 kB / 0.63 GB, free: 8.305 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.583e-05/0.5492, allocations: 4 kB / 0.63 GB, free: 8.301 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.5492, allocations: 7.938 kB / 0.63 GB, free: 8.293 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5492, allocations: 0 / 0.63 GB, free: 8.293 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.5509, allocations: 1.093 MB / 0.6311 GB, free: 7.184 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002683/0.5511, allocations: 160.3 kB / 0.6312 GB, free: 7.008 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.5513, allocations: 31.78 kB / 0.6313 GB, free: 6.977 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003338/0.5516, allocations: 31.91 kB / 0.6313 GB, free: 6.945 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.5518, allocations: 27.95 kB / 0.6313 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-05/0.5518, allocations: 12 kB / 0.6313 GB, free: 6.906 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004532/0.5523, allocations: 331.1 kB / 0.6316 GB, free: 6.582 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5523, allocations: 0 / 0.6316 GB, free: 6.582 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004055/0.5564, allocations: 0.9981 MB / 0.6326 GB, free: 5.582 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.005795/0.5622, allocations: 1.186 MB / 0.6338 GB, free: 4.391 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.5637, allocations: 0.5865 MB / 0.6343 GB, free: 3.805 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.5638, allocations: 0 / 0.6343 GB, free: 3.805 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007499/0.5645, allocations: 0.5184 MB / 0.6348 GB, free: 3.289 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.5658, allocations: 217.4 kB / 0.6351 GB, free: 3.086 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.5681, allocations: 1.526 MB / 0.6365 GB, free: 1.527 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005624/0.5687, allocations: 0.9638 MB / 0.6375 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004818/0.5692, allocations: 270.8 kB / 0.6377 GB, free: 276 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.5693, allocations: 43.44 kB / 0.6378 GB, free: 232 kB / 494.1 MB Notification: Performance of SimCode: time 1.372e-06/0.5693, allocations: 0 / 0.6378 GB, free: 232 kB / 494.1 MB Notification: Performance of Templates: time 0.06172/0.631, allocations: 39.49 MB / 0.6764 GB, free: 8.781 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