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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001172/0.001172, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009659/0.0009658, allocations: 97.73 kB / 296.7 MB, free: 6.488 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3464/0.3464, allocations: 44.84 MB / 392.7 MB, free: 34.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 63.89 kB / 465.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3282, allocations: 62.01 MB / 0.5152 GB, free: 37.85 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02476/0.353, allocations: 29.06 MB / 0.5435 GB, free: 17.48 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0171/0.3702, allocations: 14.26 MB / 0.5575 GB, free: 7.562 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005689/0.3708, allocations: 13.53 kB / 0.5575 GB, free: 7.555 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008652/0.3717, allocations: 211.4 kB / 0.5577 GB, free: 7.441 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01166/0.3834, allocations: 2.937 MB / 0.5605 GB, free: 6.109 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006065/0.3895, allocations: 1.979 MB / 0.5625 GB, free: 4.648 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001338/0.3908, allocations: 1.14 MB / 0.5636 GB, free: 4.023 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003432/0.3912, allocations: 208.8 kB / 0.5638 GB, free: 3.891 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006833/0.3919, allocations: 414.3 kB / 0.5642 GB, free: 3.656 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002881/0.3922, allocations: 271.5 kB / 0.5644 GB, free: 3.504 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.6e-05/0.3922, allocations: 17.16 kB / 0.5645 GB, free: 3.504 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0165/0.4087, allocations: 7.127 MB / 0.5714 GB, free: 15.87 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002038/0.409, allocations: 79.16 kB / 0.5715 GB, free: 15.81 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004198/0.4094, allocations: 217.2 kB / 0.5717 GB, free: 15.6 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01227/0.4217, allocations: 4.417 MB / 0.576 GB, free: 11.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.383e-06/0.4218, allocations: 0 / 0.576 GB, free: 11.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4218, allocations: 0 / 0.576 GB, free: 11.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.4218, allocations: 0 / 0.576 GB, free: 11.18 MB / 394.7 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.003061/0.4248, allocations: 1.228 MB / 0.5772 GB, free: 9.898 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.4249, allocations: 15.97 kB / 0.5772 GB, free: 9.883 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001603/0.4265, allocations: 220.2 kB / 0.5774 GB, free: 9.668 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005011/0.427, allocations: 351.4 kB / 0.5778 GB, free: 9.285 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.4271, allocations: 32.97 kB / 0.5778 GB, free: 9.254 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.443e-05/0.4271, allocations: 24.38 kB / 0.5778 GB, free: 9.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.4286, allocations: 0.5939 MB / 0.5784 GB, free: 8.598 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.4286, allocations: 0 / 0.5784 GB, free: 8.598 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.4286, allocations: 12 kB / 0.5784 GB, free: 8.586 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.4286, allocations: 8 kB / 0.5784 GB, free: 8.578 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.4301, allocations: 0.525 MB / 0.5789 GB, free: 8.051 MB / 394.7 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.003162/0.4333, allocations: 2.629 MB / 0.5815 GB, free: 5.184 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/0.4348, allocations: 459 kB / 0.5819 GB, free: 4.727 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004136/0.4352, allocations: 188.7 kB / 0.5821 GB, free: 4.539 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05188/0.4871, allocations: 26.77 MB / 0.6083 GB, free: 6.371 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/0.4872, allocations: 38.56 kB / 0.6083 GB, free: 6.324 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 2.204e-06/0.4872, allocations: 4 kB / 0.6083 GB, free: 6.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.002685/0.4899, allocations: 0.7933 MB / 0.6091 GB, free: 5.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.859e-05/0.49, allocations: 106.8 kB / 0.6092 GB, free: 5.391 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003329/0.4903, allocations: 308.5 kB / 0.6095 GB, free: 5.082 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.4904, allocations: 29.7 kB / 0.6095 GB, free: 5.047 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.4905, allocations: 208.2 kB / 0.6097 GB, free: 4.836 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.27e-05/0.4906, allocations: 86.75 kB / 0.6098 GB, free: 4.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.4907, allocations: 69.69 kB / 0.6099 GB, free: 4.676 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4908, allocations: 346.7 kB / 0.6102 GB, free: 4.328 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000364/0.4912, allocations: 139.8 kB / 0.6103 GB, free: 4.191 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004353/0.4917, allocations: 231.8 kB / 0.6105 GB, free: 3.926 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007591/0.4924, allocations: 365.1 kB / 0.6109 GB, free: 3.535 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.4924, allocations: 0 / 0.6109 GB, free: 3.535 MB / 426.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009473/0.4934, allocations: 421.7 kB / 0.6113 GB, free: 3.117 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.4934, allocations: 7.984 kB / 0.6113 GB, free: 3.109 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.4934, allocations: 4 kB / 0.6113 GB, free: 3.105 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.4935, allocations: 12.25 kB / 0.6113 GB, free: 3.094 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003086/0.4938, allocations: 75.89 kB / 0.6114 GB, free: 3.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.4938, allocations: 7.938 kB / 0.6114 GB, free: 3.012 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.4941, allocations: 59.55 kB / 0.6114 GB, free: 2.953 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.953e-05/0.4941, allocations: 19.94 kB / 0.6115 GB, free: 2.934 MB / 426.7 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.0001613/0.4943, allocations: 161.8 kB / 0.6116 GB, free: 2.766 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.844e-05/0.4944, allocations: 31.62 kB / 0.6116 GB, free: 2.734 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00223/0.4966, allocations: 1.904 MB / 0.6135 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.788e-05/0.4967, allocations: 31.89 kB / 0.6135 GB, free: 0.793 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4967, allocations: 0 / 0.6135 GB, free: 0.793 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.4967, allocations: 3.984 kB / 0.6135 GB, free: 0.7891 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009287/0.4976, allocations: 1.015 MB / 0.6145 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.4977, allocations: 0 / 0.6145 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002821/0.4979, allocations: 71.94 kB / 0.6146 GB, free: 15.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.4979, allocations: 0 / 0.6146 GB, free: 15.65 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.498, allocations: 8 kB / 0.6146 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.498, allocations: 3.938 kB / 0.6146 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.498, allocations: 0 / 0.6146 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002401/0.5004, allocations: 2.255 MB / 0.6168 GB, free: 13.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.5005, allocations: 163.8 kB / 0.617 GB, free: 13.14 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.967e-05/0.5006, allocations: 35.69 kB / 0.617 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002768/0.5009, allocations: 27.97 kB / 0.617 GB, free: 13.08 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/0.501, allocations: 35.94 kB / 0.6171 GB, free: 13.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.501, allocations: 8 kB / 0.6171 GB, free: 13.04 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003357/0.5014, allocations: 323.1 kB / 0.6174 GB, free: 12.71 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5014, allocations: 4 kB / 0.6174 GB, free: 12.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003094/0.5045, allocations: 1.023 MB / 0.6184 GB, free: 11.69 MB / 442.7 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.004208/0.5087, allocations: 1.184 MB / 0.6195 GB, free: 10.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.5099, allocations: 0.5873 MB / 0.6201 GB, free: 9.914 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.5099, allocations: 0 / 0.6201 GB, free: 9.914 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000685/0.5106, allocations: 0.5176 MB / 0.6206 GB, free: 9.398 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.5118, allocations: 203.9 kB / 0.6208 GB, free: 9.203 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002903/0.5147, allocations: 2.542 MB / 0.6233 GB, free: 6.617 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005057/0.5152, allocations: 0.9989 MB / 0.6243 GB, free: 5.598 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004294/0.5157, allocations: 280.8 kB / 0.6245 GB, free: 5.328 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.671e-05/0.5158, allocations: 43.44 kB / 0.6246 GB, free: 5.289 MB / 442.7 MB Notification: Performance of SimCode: time 8.62e-07/0.5158, allocations: 0 / 0.6246 GB, free: 5.289 MB / 442.7 MB Notification: Performance of Templates: time 0.05097/0.5668, allocations: 39.16 MB / 0.6628 GB, free: 14.16 MB / 490.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches