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.0009427/0.0009427, allocations: 94.52 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 207.1 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2127/0.2127, allocations: 46.18 MB / 345.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003237/0.0003236, allocations: 8 kB / 420.2 MB, free: 19.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.124, allocations: 63.56 MB / 483.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03527/0.1593, allocations: 28.43 MB / 0.5002 GB, free: 7.621 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.268/0.4274, allocations: 14.02 MB / 0.5139 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005626/0.428, allocations: 11.41 kB / 0.5139 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008469/0.4289, allocations: 215.8 kB / 0.5141 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01052/0.4394, allocations: 2.919 MB / 0.5169 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006651/0.4461, allocations: 1.982 MB / 0.5189 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001681/0.4478, allocations: 1.136 MB / 0.52 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004258/0.4482, allocations: 204.1 kB / 0.5202 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007886/0.449, allocations: 405.4 kB / 0.5205 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/0.4493, allocations: 268.8 kB / 0.5208 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.737e-05/0.4494, allocations: 16.84 kB / 0.5208 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01558/0.465, allocations: 7.13 MB / 0.5278 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001919/0.4652, allocations: 83.44 kB / 0.5279 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003805/0.4656, allocations: 226.2 kB / 0.5281 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006305/0.4719, allocations: 2.988 MB / 0.531 GB, free: 8.891 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.4719, allocations: 7.938 kB / 0.531 GB, free: 8.883 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.472, allocations: 0 / 0.531 GB, free: 8.883 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.585e-06/0.472, allocations: 0 / 0.531 GB, free: 8.883 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.003794/0.4758, allocations: 1.16 MB / 0.5321 GB, free: 8.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.4758, allocations: 9.312 kB / 0.5321 GB, free: 8.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001656/0.4775, allocations: 218.3 kB / 0.5324 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.4779, allocations: 373.3 kB / 0.5327 GB, free: 7.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/0.478, allocations: 25.22 kB / 0.5327 GB, free: 7.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.575e-05/0.478, allocations: 30.69 kB / 0.5328 GB, free: 7.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.4795, allocations: 0.6088 MB / 0.5334 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.4795, allocations: 3.938 kB / 0.5334 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.045e-05/0.4796, allocations: 12.81 kB / 0.5334 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.4796, allocations: 11.16 kB / 0.5334 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.4811, allocations: 0.5619 MB / 0.5339 GB, free: 7.297 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.002501/0.4837, allocations: 2.637 MB / 0.5365 GB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.4851, allocations: 497.2 kB / 0.537 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004093/0.4856, allocations: 198.9 kB / 0.5372 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05065/0.5362, allocations: 26.98 MB / 0.5635 GB, free: 10.26 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.122e-05/0.5363, allocations: 42.56 kB / 0.5636 GB, free: 10.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 4.909e-06/0.5364, allocations: 0 / 0.5636 GB, free: 10.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.00324/0.5396, allocations: 0.8449 MB / 0.5644 GB, free: 9.359 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.999e-05/0.5397, allocations: 110.8 kB / 0.5645 GB, free: 9.227 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004104/0.5401, allocations: 312.5 kB / 0.5648 GB, free: 8.918 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.427e-05/0.5402, allocations: 33.7 kB / 0.5648 GB, free: 8.879 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/0.5404, allocations: 204.2 kB / 0.565 GB, free: 8.676 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.186e-05/0.5405, allocations: 82.67 kB / 0.5651 GB, free: 8.598 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.459e-05/0.5405, allocations: 41.7 kB / 0.5651 GB, free: 8.551 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.5407, allocations: 338.8 kB / 0.5655 GB, free: 8.211 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004154/0.5411, allocations: 155.9 kB / 0.5656 GB, free: 8.059 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004708/0.5416, allocations: 249.5 kB / 0.5658 GB, free: 7.777 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008389/0.5424, allocations: 393.3 kB / 0.5662 GB, free: 7.359 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.5424, allocations: 0 / 0.5662 GB, free: 7.359 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001041/0.5435, allocations: 456.7 kB / 0.5667 GB, free: 6.906 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.5435, allocations: 4 kB / 0.5667 GB, free: 6.902 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.5435, allocations: 4 kB / 0.5667 GB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.5436, allocations: 7.938 kB / 0.5667 GB, free: 6.891 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003332/0.5439, allocations: 96.12 kB / 0.5668 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.5439, allocations: 4 kB / 0.5668 GB, free: 6.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/0.5443, allocations: 59.66 kB / 0.5668 GB, free: 6.734 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-05/0.5444, allocations: 15.98 kB / 0.5668 GB, free: 6.719 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.0001965/0.5446, allocations: 161.8 kB / 0.567 GB, free: 6.551 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.646e-05/0.5447, allocations: 35.62 kB / 0.567 GB, free: 6.516 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002533/0.5472, allocations: 1.951 MB / 0.5689 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-05/0.5472, allocations: 31.89 kB / 0.569 GB, free: 4.535 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.5473, allocations: 3 kB / 0.569 GB, free: 4.535 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.106e-06/0.5473, allocations: 3.984 kB / 0.569 GB, free: 4.531 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.5484, allocations: 1.01 MB / 0.57 GB, free: 3.477 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.5484, allocations: 0 / 0.57 GB, free: 3.477 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000315/0.5487, allocations: 87.88 kB / 0.57 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.5488, allocations: 0 / 0.57 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.5488, allocations: 8 kB / 0.5701 GB, free: 3.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.5488, allocations: 3.938 kB / 0.5701 GB, free: 3.379 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.5488, allocations: 4 kB / 0.5701 GB, free: 3.375 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.5503, allocations: 1.108 MB / 0.5711 GB, free: 2.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002242/0.5505, allocations: 211.6 kB / 0.5713 GB, free: 2.023 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.637e-05/0.5506, allocations: 8 kB / 0.5714 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003298/0.5509, allocations: 55.75 kB / 0.5714 GB, free: 1.961 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.768e-05/0.551, allocations: 31.89 kB / 0.5714 GB, free: 1.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-05/0.5511, allocations: 11.98 kB / 0.5714 GB, free: 1.918 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003536/0.5514, allocations: 331.1 kB / 0.5718 GB, free: 1.594 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5514, allocations: 0 / 0.5718 GB, free: 1.594 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004069/0.5555, allocations: 0.9916 MB / 0.5727 GB, free: 0.6016 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 (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.007447/0.563, allocations: 1.181 MB / 0.5739 GB, free: 15.51 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.5643, allocations: 0.6225 MB / 0.5745 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.5643, allocations: 0 / 0.5745 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007221/0.565, allocations: 0.5206 MB / 0.575 GB, free: 14.37 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.5663, allocations: 211.9 kB / 0.5752 GB, free: 14.17 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.5688, allocations: 1.921 MB / 0.5771 GB, free: 12.21 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004933/0.5693, allocations: 0.9638 MB / 0.578 GB, free: 11.22 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.5694, allocations: 39.44 kB / 0.5781 GB, free: 11.18 MB / 430.1 MB Notification: Performance of SimCode: time 2.61e-07/0.5694, allocations: 3.938 kB / 0.5781 GB, free: 11.18 MB / 430.1 MB Notification: Performance of Templates: time 0.03684/0.6063, allocations: 24.04 MB / 0.6015 GB, free: 3.16 MB / 446.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/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