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.001301/0.001301, allocations: 110.9 kB / 18.41 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 200.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2036/0.2036, allocations: 46.11 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 79.86 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1099, allocations: 62.45 MB / 481.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02859/0.1385, allocations: 28.25 MB / 0.4978 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2081/0.3466, allocations: 13.29 MB / 0.5107 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003797/0.3471, allocations: 13.06 kB / 0.5108 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006556/0.3478, allocations: 252.4 kB / 0.511 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009161/0.3569, allocations: 3.666 MB / 0.5146 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005586/0.3626, allocations: 2.368 MB / 0.5169 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001257/0.3638, allocations: 0.8895 MB / 0.5178 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004133/0.3642, allocations: 244.8 kB / 0.518 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009132/0.3652, allocations: 454 kB / 0.5184 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003331/0.3655, allocations: 265.7 kB / 0.5187 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.532e-05/0.3656, allocations: 33.91 kB / 0.5187 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01348/0.3791, allocations: 7.231 MB / 0.5258 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001986/0.3793, allocations: 100.5 kB / 0.5259 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004024/0.3797, allocations: 219.9 kB / 0.5261 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009125/0.3888, allocations: 4.417 MB / 0.5304 GB, free: 8.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3889, allocations: 0 / 0.5304 GB, free: 8.285 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3889, allocations: 0 / 0.5304 GB, free: 8.285 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.3889, allocations: 0 / 0.5304 GB, free: 8.285 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.002588/0.3915, allocations: 1.228 MB / 0.5316 GB, free: 7.391 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.3915, allocations: 9.688 kB / 0.5316 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001619/0.3932, allocations: 214 kB / 0.5318 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.3936, allocations: 377.6 kB / 0.5322 GB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/0.3936, allocations: 30.25 kB / 0.5322 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.3937, allocations: 27.12 kB / 0.5322 GB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.395, allocations: 0.5865 MB / 0.5328 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.395, allocations: 1.375 kB / 0.5328 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/0.3951, allocations: 12.12 kB / 0.5328 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.3951, allocations: 8.25 kB / 0.5328 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.3965, allocations: 0.5271 MB / 0.5333 GB, free: 6.293 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.002276/0.3988, allocations: 2.63 MB / 0.5359 GB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.4001, allocations: 459.2 kB / 0.5363 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003495/0.4005, allocations: 194.9 kB / 0.5365 GB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04707/0.4475, allocations: 26.88 MB / 0.5628 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.4476, allocations: 39.84 kB / 0.5628 GB, free: 8.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.854e-06/0.4476, allocations: 3.938 kB / 0.5628 GB, free: 8.316 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002677/0.4503, allocations: 0.7863 MB / 0.5636 GB, free: 7.523 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.4504, allocations: 114.7 kB / 0.5637 GB, free: 7.387 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.4507, allocations: 308.5 kB / 0.564 GB, free: 7.082 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.4507, allocations: 29.7 kB / 0.564 GB, free: 7.047 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.4509, allocations: 211.4 kB / 0.5642 GB, free: 6.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.779e-05/0.4509, allocations: 78.77 kB / 0.5643 GB, free: 6.762 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.4511, allocations: 65.69 kB / 0.5644 GB, free: 6.691 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4512, allocations: 350.8 kB / 0.5647 GB, free: 6.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003471/0.4515, allocations: 137.7 kB / 0.5648 GB, free: 6.207 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004246/0.452, allocations: 235.7 kB / 0.565 GB, free: 5.941 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007229/0.4527, allocations: 369.2 kB / 0.5654 GB, free: 5.547 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4527, allocations: 0 / 0.5654 GB, free: 5.547 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008958/0.4536, allocations: 420.8 kB / 0.5658 GB, free: 5.129 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.4536, allocations: 4 kB / 0.5658 GB, free: 5.125 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.4537, allocations: 4 kB / 0.5658 GB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.4537, allocations: 4 kB / 0.5658 GB, free: 5.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003148/0.454, allocations: 84.08 kB / 0.5659 GB, free: 5.035 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.454, allocations: 11.98 kB / 0.5659 GB, free: 5.023 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002635/0.4543, allocations: 51.52 kB / 0.5659 GB, free: 4.973 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.4543, allocations: 19.98 kB / 0.566 GB, free: 4.953 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.0001623/0.4545, allocations: 153.8 kB / 0.5661 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.502e-05/0.4546, allocations: 31.62 kB / 0.5661 GB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002245/0.4568, allocations: 1.901 MB / 0.568 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.607e-05/0.4569, allocations: 31.89 kB / 0.568 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.4569, allocations: 0 / 0.568 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.4569, allocations: 3.984 kB / 0.568 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000898/0.4578, allocations: 1.008 MB / 0.569 GB, free: 1.777 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.4578, allocations: 3.984 kB / 0.569 GB, free: 1.773 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002783/0.4581, allocations: 67.94 kB / 0.5691 GB, free: 1.707 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.4581, allocations: 4 kB / 0.5691 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.4581, allocations: 7.938 kB / 0.5691 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.4581, allocations: 11.94 kB / 0.5691 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4581, allocations: 3.938 kB / 0.5691 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.4595, allocations: 1.079 MB / 0.5702 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.4596, allocations: 163.9 kB / 0.5703 GB, free: 416 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.192e-05/0.4597, allocations: 19.75 kB / 0.5703 GB, free: 396 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.4599, allocations: 27.91 kB / 0.5704 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.949e-05/0.46, allocations: 31.95 kB / 0.5704 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.4601, allocations: 12 kB / 0.5704 GB, free: 324 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000325/0.4604, allocations: 327.1 kB / 0.5707 GB, free: 0 / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4604, allocations: 4.047 kB / 0.5707 GB, free: 15.99 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002986/0.4634, allocations: 0.9955 MB / 0.5717 GB, free: 15 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.003915/0.4673, allocations: 1.177 MB / 0.5728 GB, free: 13.91 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.4685, allocations: 0.5913 MB / 0.5734 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4685, allocations: 4 kB / 0.5734 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006201/0.4691, allocations: 0.5061 MB / 0.5739 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.4701, allocations: 214.4 kB / 0.5741 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.4721, allocations: 1.501 MB / 0.5756 GB, free: 11.09 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.4726, allocations: 0.9638 MB / 0.5765 GB, free: 10.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003991/0.473, allocations: 277.2 kB / 0.5768 GB, free: 9.836 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.326e-05/0.4731, allocations: 43.44 kB / 0.5768 GB, free: 9.793 MB / 430.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4731, allocations: 0 / 0.5768 GB, free: 9.793 MB / 430.1 MB Notification: Performance of Templates: time 0.05368/0.5268, allocations: 39.36 MB / 0.6153 GB, free: 2.516 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches