Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001433/0.001432, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.108/2.108, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001078, allocations: 95.77 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3063/0.3063, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.121e-05/2.127e-05, allocations: 224 / 418.2 MB, free: 41.03 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4011/0.4012, allocations: 58.86 MB / 477.1 MB, free: 5.254 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.953/8.354, allocations: 2.753 GB / 3.219 GB, free: 33.44 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/8.354, allocations: 82.45 kB / 3.219 GB, free: 33.39 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 1.175/9.529, allocations: 214 MB / 3.428 GB, free: 24.72 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.783e-06/9.529, allocations: 0 / 3.428 GB, free: 24.72 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 3.115e-05/9.529, allocations: 15.94 kB / 3.428 GB, free: 24.7 MB / 0.4952 GB 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.005525/9.535, allocations: 1.181 MB / 3.429 GB, free: 23.48 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/9.535, allocations: 8.031 kB / 3.429 GB, free: 23.47 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002444/9.537, allocations: 227.3 kB / 3.43 GB, free: 23.25 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008597/9.538, allocations: 373.9 kB / 3.43 GB, free: 22.85 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.773e-05/9.538, allocations: 8 kB / 3.43 GB, free: 22.84 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.685e-05/9.539, allocations: 20 kB / 3.43 GB, free: 22.82 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000743/9.539, allocations: 297.5 kB / 3.43 GB, free: 22.53 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007257/9.54, allocations: 393.4 kB / 3.431 GB, free: 22.11 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/9.54, allocations: 0 / 3.431 GB, free: 22.11 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.2e-05/9.54, allocations: 0 / 3.431 GB, free: 22.11 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/9.54, allocations: 11.95 kB / 3.431 GB, free: 22.09 MB / 0.4952 GB Warning: The model contains alias variables with conflicting start and/or 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.02764/9.568, allocations: 10.13 MB / 3.441 GB, free: 10.86 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006371/9.568, allocations: 235.2 kB / 3.441 GB, free: 10.62 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002599/9.569, allocations: 117.2 kB / 3.441 GB, free: 10.5 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4148/9.984, allocations: 24.14 MB / 3.465 GB, free: 74.23 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/9.984, allocations: 36.28 kB / 3.465 GB, free: 74.19 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=24): time 3.266e-06/9.984, allocations: 2.938 kB / 3.465 GB, free: 74.19 MB / 0.4952 GB Notification: Performance of matching and sorting (n=24): time 0.002685/9.986, allocations: 0.5081 MB / 3.465 GB, free: 74.15 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/9.986, allocations: 109.9 kB / 3.465 GB, free: 74.02 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003631/9.987, allocations: 230.1 kB / 3.465 GB, free: 73.93 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/9.987, allocations: 25.7 kB / 3.465 GB, free: 73.9 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/9.987, allocations: 269.5 kB / 3.466 GB, free: 73.73 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 9.092e-05/9.987, allocations: 77.31 kB / 3.466 GB, free: 73.69 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.365e-05/9.987, allocations: 0.875 kB / 3.466 GB, free: 73.69 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 7.242e-05/9.987, allocations: 321 kB / 3.466 GB, free: 73.38 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002288/9.987, allocations: 86.91 kB / 3.466 GB, free: 73.38 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002945/9.988, allocations: 178.2 kB / 3.466 GB, free: 73.27 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009667/9.989, allocations: 166.9 kB / 3.466 GB, free: 73.27 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/9.989, allocations: 1.031 kB / 3.466 GB, free: 73.27 MB / 0.4952 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001437/9.99, allocations: 344.6 kB / 3.467 GB, free: 73.23 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/9.99, allocations: 9.797 kB / 3.467 GB, free: 73.23 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/9.99, allocations: 5.031 kB / 3.467 GB, free: 73.23 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-05/9.99, allocations: 4.094 kB / 3.467 GB, free: 73.23 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007439/9.991, allocations: 97.31 kB / 3.467 GB, free: 73.23 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/9.991, allocations: 9.438 kB / 3.467 GB, free: 73.23 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006552/9.992, allocations: 62.88 kB / 3.467 GB, free: 73.22 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.998e-05/9.992, allocations: 18.48 kB / 3.467 GB, free: 73.22 MB / 0.4952 GB 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 () * 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.0001268/9.992, allocations: 116.3 kB / 3.467 GB, free: 73.12 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.094e-05/9.992, allocations: 31.38 kB / 3.467 GB, free: 73.1 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003073/9.995, allocations: 1.63 MB / 3.469 GB, free: 72.92 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.585e-05/9.995, allocations: 26.72 kB / 3.469 GB, free: 72.92 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/9.995, allocations: 0 / 3.469 GB, free: 72.92 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.048e-06/9.995, allocations: 1.359 kB / 3.469 GB, free: 72.92 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/9.997, allocations: 0.8441 MB / 3.47 GB, free: 72.73 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/9.997, allocations: 2.906 kB / 3.47 GB, free: 72.73 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000709/9.997, allocations: 93.52 kB / 3.47 GB, free: 72.73 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.088e-06/9.997, allocations: 1.344 kB / 3.47 GB, free: 72.73 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/9.997, allocations: 2.234 kB / 3.47 GB, free: 72.73 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/9.997, allocations: 5.625 kB / 3.47 GB, free: 72.73 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/9.997, allocations: 4.656 kB / 3.47 GB, free: 72.73 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001905/9.999, allocations: 0.9195 MB / 3.471 GB, free: 72.51 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/10, allocations: 207.3 kB / 3.471 GB, free: 72.38 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.074e-05/10, allocations: 0.6094 kB / 3.471 GB, free: 72.38 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006248/10, allocations: 52.14 kB / 3.471 GB, free: 72.38 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/10, allocations: 36.97 kB / 3.471 GB, free: 72.38 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.823e-05/10, allocations: 8.828 kB / 3.471 GB, free: 72.38 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.000466/10, allocations: 289.3 kB / 3.471 GB, free: 72.29 MB / 0.4952 GB Notification: Performance of sort global known variables: time 3.81e-07/10, allocations: 0 / 3.471 GB, free: 72.29 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.005309/10.01, allocations: 0.9911 MB / 3.472 GB, free: 72.28 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.009734/10.02, allocations: 1.421 MB / 3.474 GB, free: 72.17 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.001115/10.02, allocations: 459.1 kB / 3.474 GB, free: 72.16 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/10.02, allocations: 0 / 3.474 GB, free: 72.16 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.0006691/10.02, allocations: 428.2 kB / 3.474 GB, free: 72.16 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/10.02, allocations: 165.1 kB / 3.475 GB, free: 72.16 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/10.02, allocations: 1.055 MB / 3.476 GB, free: 71.88 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004985/10.02, allocations: 0.958 MB / 3.476 GB, free: 71.19 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002192/10.02, allocations: 45.62 kB / 3.477 GB, free: 71.18 MB / 0.4952 GB Notification: Performance of SimCode: time 1.202e-06/10.02, allocations: 0 / 3.477 GB, free: 71.18 MB / 0.4952 GB Notification: Performance of Templates: time 0.05528/10.08, allocations: 26.62 MB / 3.503 GB, free: 69.35 MB / 0.4952 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches