Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.TestCheckValve,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001493/0.001493, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.881/1.881, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00119/0.00119, allocations: 94.36 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5026/0.5026, allocations: 43.55 MB / 362.7 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004479/0.0004479, allocations: 12 kB / 431.4 MB, free: 6.188 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.125, allocations: 58.85 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.16/8.285, allocations: 2.771 GB / 3.25 GB, free: 54.17 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003066/8.285, allocations: 89.45 kB / 3.25 GB, free: 54.12 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.207/9.492, allocations: 234.6 MB / 3.479 GB, free: 22.57 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.856e-06/9.493, allocations: 0 / 3.479 GB, free: 22.57 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.779e-05/9.493, allocations: 12 kB / 3.479 GB, free: 22.56 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.006246/9.499, allocations: 1.325 MB / 3.48 GB, free: 21.18 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/9.499, allocations: 8.031 kB / 3.48 GB, free: 21.18 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002979/9.502, allocations: 251.1 kB / 3.48 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/9.503, allocations: 412.3 kB / 3.481 GB, free: 20.48 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.869e-05/9.503, allocations: 28.66 kB / 3.481 GB, free: 20.46 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.72e-05/9.503, allocations: 28 kB / 3.481 GB, free: 20.43 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002427/9.506, allocations: 0.6249 MB / 3.482 GB, free: 19.77 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/9.506, allocations: 352 / 3.482 GB, free: 19.77 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.473e-05/9.506, allocations: 23.95 kB / 3.482 GB, free: 19.75 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/9.506, allocations: 8 kB / 3.482 GB, free: 19.74 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002733/9.509, allocations: 0.5914 MB / 3.482 GB, free: 19.14 MB / 0.4948 GB 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.004622/9.513, allocations: 2.629 MB / 3.485 GB, free: 16.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002439/9.516, allocations: 462.2 kB / 3.485 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.427/9.943, allocations: 24.08 MB / 3.509 GB, free: 55.44 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.686e-05/9.943, allocations: 34.72 kB / 3.509 GB, free: 55.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 2.756e-06/9.943, allocations: 1.062 kB / 3.509 GB, free: 55.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.004643/9.948, allocations: 0.831 MB / 3.509 GB, free: 55.37 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/9.948, allocations: 108.6 kB / 3.51 GB, free: 55.25 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005789/9.948, allocations: 330 kB / 3.51 GB, free: 55.15 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.82e-05/9.948, allocations: 33.92 kB / 3.51 GB, free: 55.12 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/9.949, allocations: 262.1 kB / 3.51 GB, free: 54.95 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.612e-05/9.949, allocations: 90.17 kB / 3.51 GB, free: 54.91 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-05/9.949, allocations: 12.22 kB / 3.51 GB, free: 54.91 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.799e-05/9.949, allocations: 322.8 kB / 3.511 GB, free: 54.59 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007095/9.95, allocations: 160.1 kB / 3.511 GB, free: 54.59 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007667/9.95, allocations: 260 kB / 3.511 GB, free: 54.48 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007977/9.951, allocations: 183.4 kB / 3.511 GB, free: 54.48 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/9.951, allocations: 0 / 3.511 GB, free: 54.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001808/9.953, allocations: 469.4 kB / 3.512 GB, free: 54.44 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002368/9.953, allocations: 1.053 MB / 3.513 GB, free: 53.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/9.953, allocations: 2.125 kB / 3.513 GB, free: 53.35 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.609e-05/9.953, allocations: 4.562 kB / 3.513 GB, free: 53.35 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008128/9.954, allocations: 105.1 kB / 3.513 GB, free: 53.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.542e-05/9.954, allocations: 6.656 kB / 3.513 GB, free: 53.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008065/9.955, allocations: 84.53 kB / 3.513 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-05/9.955, allocations: 18.84 kB / 3.513 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/9.955, allocations: 8.438 kB / 3.513 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0017/9.957, allocations: 419.3 kB / 3.513 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/9.957, allocations: 7.906 kB / 3.513 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/9.957, allocations: 2.938 kB / 3.513 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007602/9.958, allocations: 109.8 kB / 3.513 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/9.958, allocations: 3.219 kB / 3.513 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005889/9.958, allocations: 72.09 kB / 3.513 GB, free: 53.32 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.067e-05/9.958, allocations: 21.08 kB / 3.513 GB, free: 53.32 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,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 initialization (38): * Single equations (assignments): 38 * 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.0003904/9.959, allocations: 234.4 kB / 3.514 GB, free: 53.14 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/9.959, allocations: 39.66 kB / 3.514 GB, free: 53.12 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003657/9.962, allocations: 1.98 MB / 3.516 GB, free: 52.91 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-05/9.963, allocations: 24.3 kB / 3.516 GB, free: 52.91 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/9.963, allocations: 2.531 kB / 3.516 GB, free: 52.91 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/9.963, allocations: 7.281 kB / 3.516 GB, free: 52.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001549/9.964, allocations: 1.036 MB / 3.517 GB, free: 52.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/9.964, allocations: 0 / 3.517 GB, free: 52.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006763/9.965, allocations: 94.75 kB / 3.517 GB, free: 52.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/9.965, allocations: 4.562 kB / 3.517 GB, free: 52.68 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.744e-05/9.965, allocations: 19.19 kB / 3.517 GB, free: 52.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/9.965, allocations: 2.219 kB / 3.517 GB, free: 52.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/9.965, allocations: 3.438 kB / 3.517 GB, free: 52.68 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/9.967, allocations: 1.134 MB / 3.518 GB, free: 52.44 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005104/9.968, allocations: 261.8 kB / 3.518 GB, free: 52.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/9.968, allocations: 10.2 kB / 3.518 GB, free: 52.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006531/9.969, allocations: 48.28 kB / 3.518 GB, free: 52.29 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/9.969, allocations: 33.05 kB / 3.518 GB, free: 52.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.045e-05/9.969, allocations: 15.59 kB / 3.518 GB, free: 52.29 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006563/9.97, allocations: 368.7 kB / 3.519 GB, free: 52.21 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.1e-07/9.97, allocations: 0 / 3.519 GB, free: 52.21 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00579/9.975, allocations: 1.196 MB / 3.52 GB, free: 52.2 MB / 0.4948 GB 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,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse15.phase,$cse15.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 (38): * Single equations (assignments): 29 * 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.01021/9.986, allocations: 1.472 MB / 3.521 GB, free: 52.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00288/9.989, allocations: 0.8596 MB / 3.522 GB, free: 52.08 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/9.989, allocations: 0 / 3.522 GB, free: 52.08 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00108/9.99, allocations: 0.5287 MB / 3.523 GB, free: 52.08 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/9.992, allocations: 216.8 kB / 3.523 GB, free: 52.08 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003347/9.995, allocations: 1.993 MB / 3.525 GB, free: 51.19 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004684/9.996, allocations: 0.9978 MB / 3.526 GB, free: 50.48 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002777/9.996, allocations: 48.7 kB / 3.526 GB, free: 50.48 MB / 0.4948 GB Notification: Performance of SimCode: time 1.422e-06/9.996, allocations: 0 / 3.526 GB, free: 50.48 MB / 0.4948 GB Notification: Performance of Templates: time 0.06261/10.06, allocations: 28.18 MB / 3.553 GB, free: 48.58 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestCheckValve/TestCheckValve.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches