Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.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.TestValveCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valve_linear.port_b.m_flow|valve_linear.port_b.p|valve_linear.port_b.h_outflow|valve_linear.minLimiter.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|opening.y|valve_constant.port_b.m_flow|valve_constant.port_b.p|valve_constant.port_b.h_outflow|valve_constant.minLimiter.y|valve_quadratic.port_b.m_flow|valve_quadratic.port_b.p|valve_quadratic.port_b.h_outflow|valve_quadratic.minLimiter.y|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow|sink3.ports.1..m_flow|sink3.ports.1..p|sink3.ports.1..h_outflow|valve_equalPercentage.port_b.m_flow|valve_equalPercentage.port_b.p|valve_equalPercentage.port_b.h_outflow|valve_equalPercentage.minLimiter.y|sink4.ports.1..m_flow|sink4.ports.1..p|sink4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valve_linear.port_b.m_flow|valve_linear.port_b.p|valve_linear.port_b.h_outflow|valve_linear.minLimiter.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|opening.y|valve_constant.port_b.m_flow|valve_constant.port_b.p|valve_constant.port_b.h_outflow|valve_constant.minLimiter.y|valve_quadratic.port_b.m_flow|valve_quadratic.port_b.p|valve_quadratic.port_b.h_outflow|valve_quadratic.minLimiter.y|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow|sink3.ports.1..m_flow|sink3.ports.1..p|sink3.ports.1..h_outflow|valve_equalPercentage.port_b.m_flow|valve_equalPercentage.port_b.p|valve_equalPercentage.port_b.h_outflow|valve_equalPercentage.minLimiter.y|sink4.ports.1..m_flow|sink4.ports.1..p|sink4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002443/0.002443, allocations: 202.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 225.6 MB / 234.8 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009771/0.0009772, allocations: 98.75 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.214/0.214, allocations: 45.16 MB / 383.8 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.438e-05/1.44e-05, allocations: 0 / 453.2 MB, free: 75.81 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1192, allocations: 63.25 MB / 0.5044 GB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.285/6.404, allocations: 2.778 GB / 3.283 GB, free: 65.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/6.404, allocations: 84.08 kB / 3.283 GB, free: 65.66 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.959/8.363, allocations: 0.6385 GB / 3.921 GB, free: 40.47 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.283e-06/8.363, allocations: 2.562 kB / 3.921 GB, free: 40.47 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001367/8.364, allocations: 41.16 kB / 3.921 GB, free: 40.46 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.009627/8.373, allocations: 2.447 MB / 3.924 GB, free: 38.86 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/8.373, allocations: 9.656 kB / 3.924 GB, free: 38.86 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007459/8.381, allocations: 0.9562 MB / 3.925 GB, free: 38.47 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002081/8.383, allocations: 0.9932 MB / 3.925 GB, free: 37.72 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/8.383, allocations: 57.16 kB / 3.926 GB, free: 37.71 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002874/8.383, allocations: 65.69 kB / 3.926 GB, free: 37.71 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002232/8.386, allocations: 1.219 MB / 3.927 GB, free: 37.17 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002311/8.388, allocations: 1.436 MB / 3.928 GB, free: 36.16 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/8.388, allocations: 3.938 kB / 3.928 GB, free: 36.16 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001924/8.388, allocations: 7.875 kB / 3.928 GB, free: 36.16 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/8.388, allocations: 29.56 kB / 3.928 GB, free: 36.16 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4345/8.823, allocations: 76.27 MB / 4.003 GB, free: 46.54 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/8.824, allocations: 0.7898 MB / 4.003 GB, free: 46.5 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006388/8.825, allocations: 402.5 kB / 4.004 GB, free: 46.5 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.836/9.661, allocations: 308.6 MB / 4.305 GB, free: 83.88 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/9.661, allocations: 38.77 kB / 4.305 GB, free: 83.84 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=39): time 2.876e-06/9.661, allocations: 0 / 4.305 GB, free: 83.84 MB / 0.6511 GB Notification: Performance of matching and sorting (n=39): time 0.005098/9.666, allocations: 1.492 MB / 4.307 GB, free: 83.8 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/9.666, allocations: 264.6 kB / 4.307 GB, free: 83.48 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001522/9.667, allocations: 0.9489 MB / 4.308 GB, free: 83.33 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.134e-05/9.668, allocations: 31.23 kB / 4.308 GB, free: 83.3 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005601/9.668, allocations: 0.7717 MB / 4.309 GB, free: 82.97 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/9.668, allocations: 155.2 kB / 4.309 GB, free: 82.9 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.356e-05/9.668, allocations: 0 / 4.309 GB, free: 82.9 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 7.039e-05/9.668, allocations: 349.7 kB / 4.309 GB, free: 82.59 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004521/9.669, allocations: 330.5 kB / 4.309 GB, free: 82.59 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006061/9.669, allocations: 0.7184 MB / 4.31 GB, free: 82.11 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002825/9.672, allocations: 0.7408 MB / 4.311 GB, free: 82.09 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/9.672, allocations: 3.875 kB / 4.311 GB, free: 82.09 MB / 0.6511 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.004035/9.676, allocations: 1.439 MB / 4.312 GB, free: 81.98 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008717/9.677, allocations: 4.447 MB / 4.317 GB, free: 77.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.587e-05/9.677, allocations: 11.34 kB / 4.317 GB, free: 77.32 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.957e-05/9.677, allocations: 21.12 kB / 4.317 GB, free: 77.32 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/9.679, allocations: 357.2 kB / 4.317 GB, free: 77.31 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.666e-05/9.679, allocations: 26.72 kB / 4.317 GB, free: 77.31 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002123/9.681, allocations: 349.9 kB / 4.317 GB, free: 77.25 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/9.681, allocations: 67.97 kB / 4.317 GB, free: 77.25 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/9.681, allocations: 3.75 kB / 4.317 GB, free: 77.25 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003057/9.684, allocations: 1.165 MB / 4.319 GB, free: 77.22 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.822e-05/9.684, allocations: 11.41 kB / 4.319 GB, free: 77.22 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/9.684, allocations: 22.33 kB / 4.319 GB, free: 77.21 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/9.685, allocations: 356 kB / 4.319 GB, free: 77.21 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.203e-05/9.685, allocations: 25.72 kB / 4.319 GB, free: 77.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/9.687, allocations: 239 kB / 4.319 GB, free: 77.18 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/9.687, allocations: 72.25 kB / 4.319 GB, free: 77.17 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 16 (sink2.medium.phase,source2.medium.phase,sink4.medium.phase,source4.medium.phase,sink3.medium.phase,source3.medium.phase,sink1.medium.phase,source1.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002675/9.687, allocations: 144.6 kB / 4.319 GB, free: 77.06 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003002/9.687, allocations: 110.1 kB / 4.319 GB, free: 77.01 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001702/9.689, allocations: 1.118 MB / 4.321 GB, free: 76.83 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/9.689, allocations: 11.48 kB / 4.321 GB, free: 76.83 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/9.689, allocations: 4 kB / 4.321 GB, free: 76.82 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/9.689, allocations: 3.562 kB / 4.321 GB, free: 76.82 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003002/9.692, allocations: 2.028 MB / 4.323 GB, free: 76.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/9.692, allocations: 3.969 kB / 4.323 GB, free: 76.39 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/9.692, allocations: 101.8 kB / 4.323 GB, free: 76.38 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.061e-05/9.692, allocations: 7.719 kB / 4.323 GB, free: 76.38 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/9.692, allocations: 14.08 kB / 4.323 GB, free: 76.38 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/9.692, allocations: 7.625 kB / 4.323 GB, free: 76.38 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/9.692, allocations: 3.875 kB / 4.323 GB, free: 76.38 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/9.694, allocations: 0.9663 MB / 4.324 GB, free: 75.69 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006259/9.694, allocations: 449.8 kB / 4.324 GB, free: 75.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003297/9.695, allocations: 5.625 kB / 4.324 GB, free: 75.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009957/9.696, allocations: 98.64 kB / 4.324 GB, free: 75.51 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.034e-05/9.696, allocations: 38.78 kB / 4.324 GB, free: 75.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.654e-05/9.696, allocations: 26 kB / 4.324 GB, free: 75.5 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.001323/9.697, allocations: 1.15 MB / 4.325 GB, free: 75.39 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/9.697, allocations: 0 / 4.325 GB, free: 75.39 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.007083/9.704, allocations: 1.77 MB / 4.327 GB, free: 75.28 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008406/9.713, allocations: 2.139 MB / 4.329 GB, free: 74.97 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002588/9.715, allocations: 1.222 MB / 4.33 GB, free: 74.95 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/9.715, allocations: 7.625 kB / 4.33 GB, free: 74.94 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002939/9.715, allocations: 155.2 kB / 4.331 GB, free: 74.94 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/9.718, allocations: 423.2 kB / 4.331 GB, free: 74.91 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/9.722, allocations: 1.594 MB / 4.333 GB, free: 74.28 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007828/9.722, allocations: 1.258 MB / 4.334 GB, free: 73.55 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.003783/9.726, allocations: 3.02 MB / 4.337 GB, free: 73.48 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002662/9.726, allocations: 100.3 kB / 4.337 GB, free: 73.48 MB / 0.6511 GB Notification: Performance of SimCode: time 1.353e-06/9.726, allocations: 0 / 4.337 GB, free: 73.48 MB / 0.6511 GB Notification: Performance of Templates: time 0.05584/9.782, allocations: 42.66 MB / 4.378 GB, free: 65.67 MB / 0.6511 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCharacteristics/TestValveCharacteristics.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches