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.002576/0.002575, allocations: 186.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.218/2.218, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.001186/0.001185, allocations: 106.8 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2954/0.2954, allocations: 43.55 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004555/0.0004556, allocations: 12 kB / 431.4 MB, free: 20.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1208, allocations: 58.85 MB / 490.2 MB, free: 9.332 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.04164/0.1625, allocations: 24.14 MB / 0.5023 GB, free: 1.117 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03004/0.1926, allocations: 14.77 MB / 0.5167 GB, free: 2.32 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00089/0.1935, allocations: 11.88 kB / 0.5167 GB, free: 2.309 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001847/0.1954, allocations: 262.8 kB / 0.517 GB, free: 2.051 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3378/0.5333, allocations: 3.523 MB / 0.5204 GB, free: 12.62 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01076/0.544, allocations: 2.484 MB / 0.5229 GB, free: 12.58 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001495/0.5456, allocations: 0.5857 MB / 0.5234 GB, free: 12.58 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005726/0.5462, allocations: 228.6 kB / 0.5236 GB, free: 12.56 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001472/0.5476, allocations: 446.2 kB / 0.5241 GB, free: 12.56 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009063/0.5567, allocations: 2.947 MB / 0.5269 GB, free: 12.52 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000134/0.5569, allocations: 17.5 kB / 0.527 GB, free: 12.52 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0214/0.5783, allocations: 7.277 MB / 0.5341 GB, free: 12.5 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000266/0.5787, allocations: 84.23 kB / 0.5341 GB, free: 12.5 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002838/0.579, allocations: 113.7 kB / 0.5343 GB, free: 12.47 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008867/0.5878, allocations: 3.101 MB / 0.5373 GB, free: 12.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.5879, allocations: 1.281 kB / 0.5373 GB, free: 12.01 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5879, allocations: 0 / 0.5373 GB, free: 12.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.5879, allocations: 0 / 0.5373 GB, free: 12.01 MB / 362.7 MB 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.004935/0.5929, allocations: 1.257 MB / 0.5385 GB, free: 11.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.5929, allocations: 13.61 kB / 0.5385 GB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002816/0.5958, allocations: 249.6 kB / 0.5388 GB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008276/0.5966, allocations: 382.4 kB / 0.5391 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.327e-05/0.5967, allocations: 27.97 kB / 0.5392 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.34e-05/0.5968, allocations: 32.42 kB / 0.5392 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002394/0.5992, allocations: 0.6204 MB / 0.5398 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.5992, allocations: 2.906 kB / 0.5398 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.878e-05/0.5993, allocations: 21.88 kB / 0.5398 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.5993, allocations: 6.875 kB / 0.5398 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002571/0.6019, allocations: 0.5993 MB / 0.5404 GB, free: 10.39 MB / 362.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.004648/0.6066, allocations: 2.653 MB / 0.543 GB, free: 8.238 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/0.6091, allocations: 0.4927 MB / 0.5435 GB, free: 8.094 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08544/0.6946, allocations: 24.42 MB / 0.5673 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.6947, allocations: 44.12 kB / 0.5674 GB, free: 476 kB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.635e-06/0.6947, allocations: 0 / 0.5674 GB, free: 476 kB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.004681/0.6994, allocations: 0.8749 MB / 0.5682 GB, free: 15.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.404e-05/0.6995, allocations: 102.8 kB / 0.5683 GB, free: 15.62 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006723/0.7002, allocations: 376.8 kB / 0.5687 GB, free: 15.33 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.631e-05/0.7003, allocations: 32.39 kB / 0.5687 GB, free: 15.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.7005, allocations: 260.8 kB / 0.569 GB, free: 15.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.7006, allocations: 87.47 kB / 0.569 GB, free: 15.01 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.7007, allocations: 5.625 kB / 0.569 GB, free: 15.01 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.7008, allocations: 327.2 kB / 0.5694 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007796/0.7016, allocations: 176.1 kB / 0.5695 GB, free: 14.56 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000876/0.7025, allocations: 279 kB / 0.5698 GB, free: 14.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008499/0.7034, allocations: 192.1 kB / 0.57 GB, free: 14.17 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.7034, allocations: 2.734 kB / 0.57 GB, free: 14.17 MB / 394.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001956/0.7054, allocations: 488.1 kB / 0.5704 GB, free: 13.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005047/0.7059, allocations: 1.049 MB / 0.5715 GB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.706, allocations: 8 kB / 0.5715 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.706, allocations: 4 kB / 0.5715 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008455/0.7068, allocations: 105.3 kB / 0.5716 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.7069, allocations: 6.344 kB / 0.5716 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008121/0.7077, allocations: 78.8 kB / 0.5717 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.596e-05/0.7078, allocations: 19.25 kB / 0.5717 GB, free: 12.51 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.569e-06/0.7078, allocations: 0 / 0.5717 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001827/0.7096, allocations: 442.8 kB / 0.5721 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.7097, allocations: 0 / 0.5721 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.7097, allocations: 12.22 kB / 0.5721 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007843/0.7105, allocations: 108 kB / 0.5722 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.499e-05/0.7105, allocations: 11.94 kB / 0.5722 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005652/0.7111, allocations: 64.95 kB / 0.5723 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.325e-05/0.7112, allocations: 18.98 kB / 0.5723 GB, free: 12.02 MB / 394.7 MB 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.0003699/0.7116, allocations: 240.3 kB / 0.5725 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.7117, allocations: 39.53 kB / 0.5726 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004153/0.7159, allocations: 2.005 MB / 0.5745 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.637e-05/0.716, allocations: 27.52 kB / 0.5746 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.716, allocations: 3.953 kB / 0.5746 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.716, allocations: 3.984 kB / 0.5746 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001691/0.7177, allocations: 1.051 MB / 0.5756 GB, free: 9.633 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.7178, allocations: 0 / 0.5756 GB, free: 9.633 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006864/0.7185, allocations: 92.95 kB / 0.5757 GB, free: 9.547 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.359e-05/0.7185, allocations: 7.984 kB / 0.5757 GB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.702e-05/0.7185, allocations: 11.5 kB / 0.5757 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.7186, allocations: 0 / 0.5757 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.7186, allocations: 0 / 0.5757 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002585/0.7212, allocations: 1.148 MB / 0.5768 GB, free: 8.684 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005135/0.7217, allocations: 275.6 kB / 0.5771 GB, free: 8.43 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.7218, allocations: 2.938 kB / 0.5771 GB, free: 8.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006361/0.7225, allocations: 46.78 kB / 0.5771 GB, free: 8.391 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.7226, allocations: 38.8 kB / 0.5772 GB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.71e-05/0.7227, allocations: 10.75 kB / 0.5772 GB, free: 8.352 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007301/0.7234, allocations: 367 kB / 0.5775 GB, free: 8.078 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.7235, allocations: 8 kB / 0.5775 GB, free: 8.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00487/0.7283, allocations: 1.158 MB / 0.5787 GB, free: 6.969 MB / 394.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 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.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.008299/0.7367, allocations: 1.251 MB / 0.5799 GB, free: 5.844 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003126/0.7399, allocations: 0.8995 MB / 0.5808 GB, free: 5.215 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.7399, allocations: 0 / 0.5808 GB, free: 5.215 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.7411, allocations: 0.5428 MB / 0.5813 GB, free: 4.914 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002063/0.7432, allocations: 206.7 kB / 0.5815 GB, free: 4.754 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003803/0.747, allocations: 2.01 MB / 0.5835 GB, free: 2.961 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007399/0.7478, allocations: 0.9987 MB / 0.5844 GB, free: 1.938 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002716/0.7481, allocations: 51.23 kB / 0.5845 GB, free: 1.891 MB / 394.7 MB Notification: Performance of SimCode: time 1.203e-06/0.7481, allocations: 3.188 kB / 0.5845 GB, free: 1.891 MB / 394.7 MB Notification: Performance of Templates: time 0.06888/0.817, allocations: 28.74 MB / 0.6126 GB, free: 5.383 MB / 426.7 MB 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