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.001593/0.001593, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001838/0.001838, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.962/1.962, allocations: 227.4 MB / 246.9 MB, free: 9.02 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2755/0.2755, allocations: 46.12 MB / 344.3 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00272/0.00272, allocations: 72.17 kB / 417.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1482, allocations: 62.45 MB / 479.9 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03678/0.1851, allocations: 29.12 MB / 0.4971 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3468/0.5319, allocations: 14.26 MB / 0.5111 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007714/0.5327, allocations: 17.25 kB / 0.5111 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.5341, allocations: 218.7 kB / 0.5113 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0176/0.5517, allocations: 2.93 MB / 0.5141 GB, free: 11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01143/0.5632, allocations: 1.978 MB / 0.5161 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00277/0.566, allocations: 1.13 MB / 0.5172 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000808/0.5668, allocations: 214.5 kB / 0.5174 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00186/0.5687, allocations: 404.8 kB / 0.5178 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008333/0.5696, allocations: 273.7 kB / 0.518 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.133e-05/0.5697, allocations: 17.34 kB / 0.518 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02815/0.5979, allocations: 7.138 MB / 0.525 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003561/0.5983, allocations: 83.59 kB / 0.5251 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000654/0.5989, allocations: 204.3 kB / 0.5253 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01135/0.6103, allocations: 3.012 MB / 0.5282 GB, free: 9.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.034e-05/0.6104, allocations: 0 / 0.5282 GB, free: 9.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.624e-06/0.6104, allocations: 0 / 0.5282 GB, free: 9.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.838e-05/0.6104, allocations: 0 / 0.5282 GB, free: 9.402 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.00527/0.6157, allocations: 1.233 MB / 0.5294 GB, free: 8.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.6158, allocations: 7.75 kB / 0.5294 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001843/0.6176, allocations: 216.7 kB / 0.5296 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005229/0.6182, allocations: 364.3 kB / 0.53 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.243e-05/0.6182, allocations: 24.34 kB / 0.53 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.647e-05/0.6183, allocations: 34.75 kB / 0.53 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.6199, allocations: 0.58 MB / 0.5306 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.6199, allocations: 1.594 kB / 0.5306 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.138e-05/0.62, allocations: 13.16 kB / 0.5306 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.62, allocations: 8.5 kB / 0.5306 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.6216, allocations: 0.5276 MB / 0.5312 GB, free: 7.809 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.002993/0.6246, allocations: 2.628 MB / 0.5337 GB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001571/0.6262, allocations: 455.2 kB / 0.5342 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004454/0.6267, allocations: 190.5 kB / 0.5343 GB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05513/0.6818, allocations: 26.77 MB / 0.5605 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.177e-05/0.6819, allocations: 38.56 kB / 0.5605 GB, free: 10.65 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.895e-06/0.6819, allocations: 0 / 0.5605 GB, free: 10.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003419/0.6854, allocations: 0.7824 MB / 0.5613 GB, free: 9.859 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.6855, allocations: 110.8 kB / 0.5614 GB, free: 9.727 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005295/0.686, allocations: 328.3 kB / 0.5617 GB, free: 9.402 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.462e-05/0.6861, allocations: 29.64 kB / 0.5617 GB, free: 9.367 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002324/0.6864, allocations: 200.3 kB / 0.5619 GB, free: 9.168 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.6865, allocations: 85.25 kB / 0.562 GB, free: 9.086 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.6866, allocations: 65.69 kB / 0.5621 GB, free: 9.016 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.6868, allocations: 346.8 kB / 0.5624 GB, free: 8.668 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004478/0.6872, allocations: 141.7 kB / 0.5625 GB, free: 8.531 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005014/0.6878, allocations: 235.7 kB / 0.5628 GB, free: 8.262 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008832/0.6887, allocations: 363 kB / 0.5631 GB, free: 7.875 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.6887, allocations: 4 kB / 0.5631 GB, free: 7.871 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001099/0.6898, allocations: 424.9 kB / 0.5635 GB, free: 7.453 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.6898, allocations: 4 kB / 0.5635 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.6898, allocations: 4 kB / 0.5635 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.6899, allocations: 4 kB / 0.5635 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004033/0.6903, allocations: 83.81 kB / 0.5636 GB, free: 7.359 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.6903, allocations: 4 kB / 0.5636 GB, free: 7.355 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004155/0.6907, allocations: 59.75 kB / 0.5637 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.21e-05/0.6908, allocations: 19.98 kB / 0.5637 GB, free: 7.277 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.0002663/0.691, allocations: 157.7 kB / 0.5638 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.6912, allocations: 31.62 kB / 0.5639 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002867/0.694, allocations: 1.905 MB / 0.5657 GB, free: 5.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.744e-05/0.6941, allocations: 35.89 kB / 0.5658 GB, free: 5.145 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.6941, allocations: 0 / 0.5658 GB, free: 5.145 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.6942, allocations: 7.984 kB / 0.5658 GB, free: 5.137 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001331/0.6955, allocations: 1.004 MB / 0.5667 GB, free: 4.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.6955, allocations: 7.984 kB / 0.5668 GB, free: 4.082 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003329/0.6959, allocations: 67.88 kB / 0.5668 GB, free: 4.016 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.6959, allocations: 4 kB / 0.5668 GB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-05/0.6959, allocations: 8 kB / 0.5668 GB, free: 4.004 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-05/0.6959, allocations: 3.938 kB / 0.5668 GB, free: 4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.6959, allocations: 0 / 0.5668 GB, free: 4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/0.6976, allocations: 1.084 MB / 0.5679 GB, free: 2.898 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002402/0.6979, allocations: 163.8 kB / 0.568 GB, free: 2.719 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/0.698, allocations: 27.78 kB / 0.5681 GB, free: 2.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003767/0.6984, allocations: 39 kB / 0.5681 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/0.6985, allocations: 39.88 kB / 0.5681 GB, free: 2.617 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.6986, allocations: 12 kB / 0.5682 GB, free: 2.605 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000431/0.699, allocations: 323.1 kB / 0.5685 GB, free: 2.289 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.699, allocations: 7.938 kB / 0.5685 GB, free: 2.281 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005699/0.7047, allocations: 0.9955 MB / 0.5694 GB, free: 1.285 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.008799/0.7136, allocations: 1.174 MB / 0.5706 GB, free: 208 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.7153, allocations: 0.599 MB / 0.5712 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.7153, allocations: 0 / 0.5712 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008361/0.7162, allocations: 0.5049 MB / 0.5717 GB, free: 15.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/0.7176, allocations: 197.3 kB / 0.5719 GB, free: 14.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003054/0.7207, allocations: 1.898 MB / 0.5737 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007287/0.7215, allocations: 0.9638 MB / 0.5747 GB, free: 12 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001876/0.7217, allocations: 39.44 kB / 0.5747 GB, free: 11.96 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.7217, allocations: 4 kB / 0.5747 GB, free: 11.95 MB / 430.1 MB Notification: Performance of Templates: time 0.0483/0.77, allocations: 24.11 MB / 0.5982 GB, free: 3.883 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