Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 202.1 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007669/0.0007669, allocations: 97.36 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1748/0.1748, allocations: 44.84 MB / 392 MB, free: 9.352 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000263/0.000263, allocations: 4 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08322/0.0835, allocations: 62.95 MB / 0.5153 GB, free: 2.789 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.1814/0.2649, allocations: 26.21 MB / 0.5409 GB, free: 11.88 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01338/0.2783, allocations: 12.4 MB / 0.553 GB, free: 2.766 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003692/0.2787, allocations: 9.5 kB / 0.553 GB, free: 2.762 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006395/0.2794, allocations: 202.1 kB / 0.5532 GB, free: 2.594 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.008447/0.2878, allocations: 2.858 MB / 0.556 GB, free: 484 kB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005544/0.2934, allocations: 1.825 MB / 0.5578 GB, free: 15.13 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.2946, allocations: 0.9924 MB / 0.5588 GB, free: 14.55 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003956/0.295, allocations: 200.6 kB / 0.559 GB, free: 14.42 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008401/0.2958, allocations: 392.1 kB / 0.5593 GB, free: 14.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004586/0.2963, allocations: 256.9 kB / 0.5596 GB, free: 14.06 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.512e-05/0.2964, allocations: 16.69 kB / 0.5596 GB, free: 14.06 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01259/0.309, allocations: 6.827 MB / 0.5663 GB, free: 9.641 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.3091, allocations: 83.7 kB / 0.5664 GB, free: 9.559 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001953/0.3094, allocations: 109.5 kB / 0.5665 GB, free: 9.445 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004533/0.3139, allocations: 2.97 MB / 0.5694 GB, free: 6.469 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3139, allocations: 0 / 0.5694 GB, free: 6.469 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3139, allocations: 0 / 0.5694 GB, free: 6.469 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.3139, allocations: 0 / 0.5694 GB, free: 6.469 MB / 378.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.002767/0.3167, allocations: 1.177 MB / 0.5705 GB, free: 5.242 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.3167, allocations: 8.031 kB / 0.5705 GB, free: 5.234 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001585/0.3183, allocations: 231.2 kB / 0.5707 GB, free: 5.012 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004544/0.3188, allocations: 358.1 kB / 0.5711 GB, free: 4.621 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.3188, allocations: 24.66 kB / 0.5711 GB, free: 4.598 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.182e-05/0.3189, allocations: 35.89 kB / 0.5711 GB, free: 4.562 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.3204, allocations: 0.6134 MB / 0.5717 GB, free: 3.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3204, allocations: 4 kB / 0.5717 GB, free: 3.906 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.803e-05/0.3205, allocations: 12 kB / 0.5718 GB, free: 3.895 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.3205, allocations: 8 kB / 0.5718 GB, free: 3.887 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001608/0.3221, allocations: 0.5875 MB / 0.5723 GB, free: 3.301 MB / 378.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.002775/0.3249, allocations: 2.64 MB / 0.5749 GB, free: 432 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.3264, allocations: 0.4981 MB / 0.5754 GB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004827/0.3269, allocations: 220.7 kB / 0.5756 GB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04527/0.3722, allocations: 26.99 MB / 0.602 GB, free: 1.301 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.3722, allocations: 38.56 kB / 0.602 GB, free: 1.254 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 3.026e-06/0.3722, allocations: 3.984 kB / 0.602 GB, free: 1.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.002764/0.375, allocations: 0.8904 MB / 0.6029 GB, free: 364 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.3751, allocations: 110.7 kB / 0.603 GB, free: 228 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003268/0.3754, allocations: 308.4 kB / 0.6033 GB, free: 15.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.3755, allocations: 33.7 kB / 0.6033 GB, free: 15.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.3756, allocations: 204.3 kB / 0.6035 GB, free: 15.67 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.467e-05/0.3757, allocations: 82.73 kB / 0.6036 GB, free: 15.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.899e-05/0.3757, allocations: 16 kB / 0.6036 GB, free: 15.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3758, allocations: 346.8 kB / 0.6039 GB, free: 15.22 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004364/0.3763, allocations: 163.9 kB / 0.6041 GB, free: 15.06 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004808/0.3767, allocations: 258.9 kB / 0.6043 GB, free: 14.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004401/0.3772, allocations: 187.9 kB / 0.6045 GB, free: 14.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.3772, allocations: 0 / 0.6045 GB, free: 14.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001031/0.3782, allocations: 485.9 kB / 0.605 GB, free: 14.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.3783, allocations: 4 kB / 0.605 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3783, allocations: 4 kB / 0.605 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.3783, allocations: 4 kB / 0.605 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003487/0.3787, allocations: 91.88 kB / 0.6051 GB, free: 14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.3787, allocations: 7.984 kB / 0.6051 GB, free: 14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.379, allocations: 75.62 kB / 0.6051 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-05/0.3791, allocations: 15.98 kB / 0.6052 GB, free: 13.91 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: 4 (SourceP1.medium.phase,SinkP1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001617/0.3792, allocations: 169.6 kB / 0.6053 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.501e-05/0.3793, allocations: 31.62 kB / 0.6054 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002371/0.3817, allocations: 1.963 MB / 0.6073 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.512e-05/0.3817, allocations: 27.95 kB / 0.6073 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3817, allocations: 0 / 0.6073 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3817, allocations: 11.98 kB / 0.6073 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009266/0.3827, allocations: 1.02 MB / 0.6083 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.3827, allocations: 0 / 0.6083 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003367/0.383, allocations: 87.88 kB / 0.6084 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.383, allocations: 4 kB / 0.6084 GB, free: 10.53 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.3831, allocations: 8.859 kB / 0.6084 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.3831, allocations: 4 kB / 0.6084 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3831, allocations: 0 / 0.6084 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.3846, allocations: 1.131 MB / 0.6095 GB, free: 9.371 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.3847, allocations: 215.6 kB / 0.6097 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.792e-05/0.3848, allocations: 8 kB / 0.6097 GB, free: 9.133 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003358/0.3851, allocations: 59.89 kB / 0.6098 GB, free: 9.074 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.767e-05/0.3852, allocations: 31.95 kB / 0.6098 GB, free: 9.043 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.3853, allocations: 11.98 kB / 0.6098 GB, free: 9.031 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003176/0.3856, allocations: 319.1 kB / 0.6101 GB, free: 8.719 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3856, allocations: 4 kB / 0.6101 GB, free: 8.715 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002363/0.388, allocations: 0.9955 MB / 0.6111 GB, free: 7.719 MB / 426.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: 18 ($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) * 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 (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.004029/0.392, allocations: 1.191 MB / 0.6123 GB, free: 6.523 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.3932, allocations: 0.6469 MB / 0.6129 GB, free: 5.879 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3932, allocations: 0 / 0.6129 GB, free: 5.879 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006891/0.3939, allocations: 0.5362 MB / 0.6134 GB, free: 5.344 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.395, allocations: 218.5 kB / 0.6136 GB, free: 5.137 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.397, allocations: 1.92 MB / 0.6155 GB, free: 3.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.3975, allocations: 0.968 MB / 0.6164 GB, free: 2.184 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.3976, allocations: 43.44 kB / 0.6165 GB, free: 2.141 MB / 426.7 MB Notification: Performance of SimCode: time 3.8e-07/0.3976, allocations: 0 / 0.6165 GB, free: 2.141 MB / 426.7 MB Notification: Performance of Templates: time 0.0312/0.4288, allocations: 24.07 MB / 0.64 GB, free: 10.09 MB / 458.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches