Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.001159, allocations: 179.6 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 221.3 MB / 236 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009141/0.0009141, allocations: 91.55 kB / 287 MB, free: 236 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2124/0.2124, allocations: 44.16 MB / 382.1 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.971e-05/2.972e-05, allocations: 4.219 kB / 451.8 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1377, allocations: 61.92 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.175/6.313, allocations: 2.776 GB / 3.278 GB, free: 93.31 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/6.313, allocations: 80.8 kB / 3.278 GB, free: 93.28 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.8125/7.126, allocations: 236.3 MB / 3.509 GB, free: 72.13 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.984e-06/7.126, allocations: 0 / 3.509 GB, free: 72.13 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.164e-05/7.126, allocations: 8 kB / 3.509 GB, free: 72.12 MB / 0.5261 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.005357/7.131, allocations: 1.273 MB / 3.51 GB, free: 70.82 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/7.131, allocations: 12.03 kB / 3.51 GB, free: 70.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001846/7.133, allocations: 247.2 kB / 3.51 GB, free: 70.57 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006912/7.134, allocations: 415.8 kB / 3.511 GB, free: 70.12 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.578e-05/7.134, allocations: 27.59 kB / 3.511 GB, free: 70.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.1e-05/7.134, allocations: 28 kB / 3.511 GB, free: 70.07 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/7.135, allocations: 0.6093 MB / 3.511 GB, free: 69.43 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/7.135, allocations: 4 kB / 3.511 GB, free: 69.43 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.408e-05/7.135, allocations: 16 kB / 3.511 GB, free: 69.41 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/7.135, allocations: 8 kB / 3.511 GB, free: 69.4 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/7.136, allocations: 0.5135 MB / 3.512 GB, free: 68.89 MB / 0.5261 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.00279/7.139, allocations: 2.632 MB / 3.514 GB, free: 66.02 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/7.14, allocations: 430.2 kB / 3.515 GB, free: 65.59 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001948/7.14, allocations: 140.8 kB / 3.515 GB, free: 65.45 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04048/7.181, allocations: 24.15 MB / 3.538 GB, free: 38.43 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/7.181, allocations: 34.56 kB / 3.538 GB, free: 38.38 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 3.707e-06/7.181, allocations: 0 / 3.538 GB, free: 38.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.002084/7.183, allocations: 0.6534 MB / 3.539 GB, free: 37.72 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/7.183, allocations: 102.8 kB / 3.539 GB, free: 37.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003736/7.183, allocations: 319.5 kB / 3.54 GB, free: 37.28 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/7.183, allocations: 33.69 kB / 3.54 GB, free: 37.24 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/7.184, allocations: 223.8 kB / 3.54 GB, free: 37.02 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.852e-05/7.184, allocations: 82.84 kB / 3.54 GB, free: 36.94 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.663e-05/7.184, allocations: 8 kB / 3.54 GB, free: 36.93 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.449e-05/7.184, allocations: 346.8 kB / 3.54 GB, free: 36.58 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/7.184, allocations: 104 kB / 3.54 GB, free: 36.48 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/7.184, allocations: 215.6 kB / 3.541 GB, free: 36.23 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/7.184, allocations: 128.4 kB / 3.541 GB, free: 36.11 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/7.184, allocations: 0 / 3.541 GB, free: 36.11 MB / 0.5261 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000522/7.185, allocations: 382.7 kB / 3.541 GB, free: 35.73 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002212/7.185, allocations: 1.052 MB / 3.542 GB, free: 34.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/7.185, allocations: 4 kB / 3.542 GB, free: 34.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.595e-05/7.185, allocations: 4 kB / 3.542 GB, free: 34.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004202/7.186, allocations: 107.9 kB / 3.542 GB, free: 34.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/7.186, allocations: 7.938 kB / 3.542 GB, free: 34.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004543/7.186, allocations: 83.55 kB / 3.542 GB, free: 34.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.257e-05/7.186, allocations: 23.92 kB / 3.542 GB, free: 34.37 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.043e-06/7.186, allocations: 4 kB / 3.542 GB, free: 34.36 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004382/7.187, allocations: 303.6 kB / 3.543 GB, free: 34.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/7.187, allocations: 8 kB / 3.543 GB, free: 34.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.931e-06/7.187, allocations: 8.344 kB / 3.543 GB, free: 34.05 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003747/7.187, allocations: 103.9 kB / 3.543 GB, free: 33.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/7.187, allocations: 7.953 kB / 3.543 GB, free: 33.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003276/7.187, allocations: 71.64 kB / 3.543 GB, free: 33.87 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/7.187, allocations: 16 kB / 3.543 GB, free: 33.86 MB / 0.5261 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 () * 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.0001281/7.187, allocations: 128.8 kB / 3.543 GB, free: 33.72 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.637e-05/7.188, allocations: 39.53 kB / 3.543 GB, free: 33.68 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002036/7.19, allocations: 1.917 MB / 3.545 GB, free: 31.76 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.152e-05/7.19, allocations: 31.89 kB / 3.545 GB, free: 31.73 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/7.19, allocations: 0 / 3.545 GB, free: 31.73 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/7.19, allocations: 7.938 kB / 3.545 GB, free: 31.72 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/7.191, allocations: 1.043 MB / 3.546 GB, free: 30.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/7.191, allocations: 4 kB / 3.546 GB, free: 30.64 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003322/7.191, allocations: 91.86 kB / 3.546 GB, free: 30.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.603e-06/7.191, allocations: 0 / 3.546 GB, free: 30.55 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/7.191, allocations: 8 kB / 3.546 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/7.191, allocations: 4 kB / 3.546 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/7.191, allocations: 7.938 kB / 3.546 GB, free: 30.53 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009497/7.192, allocations: 1.032 MB / 3.547 GB, free: 29.48 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002417/7.192, allocations: 263.3 kB / 3.547 GB, free: 29.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.287e-05/7.192, allocations: 12 kB / 3.547 GB, free: 29.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003364/7.193, allocations: 47.95 kB / 3.547 GB, free: 29.14 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/7.193, allocations: 31.95 kB / 3.547 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/7.193, allocations: 8 kB / 3.547 GB, free: 29.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003562/7.193, allocations: 365.6 kB / 3.548 GB, free: 28.74 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.6e-07/7.193, allocations: 0 / 3.548 GB, free: 28.74 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005402/7.199, allocations: 1.194 MB / 3.549 GB, free: 27.55 MB / 0.5261 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 () * 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.005913/7.205, allocations: 1.481 MB / 3.55 GB, free: 26.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001012/7.206, allocations: 0.7158 MB / 3.551 GB, free: 25.48 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/7.206, allocations: 4 kB / 3.551 GB, free: 25.48 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003702/7.206, allocations: 494.8 kB / 3.551 GB, free: 24.99 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001142/7.207, allocations: 208 kB / 3.552 GB, free: 24.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001504/7.209, allocations: 1.197 MB / 3.553 GB, free: 23.57 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/7.209, allocations: 0.9998 MB / 3.554 GB, free: 22.54 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0007345/7.21, allocations: 0.5697 MB / 3.554 GB, free: 21.98 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.826e-05/7.21, allocations: 47.42 kB / 3.554 GB, free: 21.93 MB / 0.5261 GB Notification: Performance of SimCode: time 3.41e-07/7.21, allocations: 0 / 3.554 GB, free: 21.93 MB / 0.5261 GB Notification: Performance of Templates: time 0.3526/7.562, allocations: 35 MB / 3.589 GB, free: 90.95 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestCheckValve/TestCheckValve.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches