Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008089/0.0008089, allocations: 88.75 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1662/0.1662, allocations: 45.14 MB / 389.3 MB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.786e-05/2.788e-05, allocations: 7.984 kB / 460.4 MB, free: 70 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08684/0.08688, allocations: 63.24 MB / 0.5114 GB, free: 6.77 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.027/5.114, allocations: 2.777 GB / 3.289 GB, free: 81.04 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/5.114, allocations: 82.83 kB / 3.289 GB, free: 80.96 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.7696/5.884, allocations: 236.4 MB / 3.519 GB, free: 67.76 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.196e-06/5.884, allocations: 0 / 3.519 GB, free: 67.76 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.271e-05/5.884, allocations: 8 kB / 3.519 GB, free: 67.75 MB / 0.5417 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.005852/5.89, allocations: 1.28 MB / 3.521 GB, free: 66.43 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/5.89, allocations: 12.03 kB / 3.521 GB, free: 66.42 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001746/5.892, allocations: 247.2 kB / 3.521 GB, free: 66.18 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006208/5.893, allocations: 414.8 kB / 3.521 GB, free: 65.74 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/5.893, allocations: 24.78 kB / 3.521 GB, free: 65.71 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.799e-05/5.893, allocations: 28 kB / 3.521 GB, free: 65.69 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/5.894, allocations: 0.6065 MB / 3.522 GB, free: 65.05 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/5.894, allocations: 4.281 kB / 3.522 GB, free: 65.04 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.362e-05/5.894, allocations: 15.95 kB / 3.522 GB, free: 65.03 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/5.894, allocations: 8 kB / 3.522 GB, free: 65.02 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/5.895, allocations: 0.5174 MB / 3.523 GB, free: 64.5 MB / 0.5417 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.002613/5.898, allocations: 2.628 MB / 3.525 GB, free: 61.64 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/5.899, allocations: 430.1 kB / 3.526 GB, free: 61.21 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001798/5.899, allocations: 144.8 kB / 3.526 GB, free: 61.07 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04179/5.941, allocations: 26.71 MB / 3.552 GB, free: 30.97 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/5.941, allocations: 38.5 kB / 3.552 GB, free: 30.92 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=25): time 1.963e-06/5.941, allocations: 0 / 3.552 GB, free: 30.92 MB / 0.5417 GB Notification: Performance of matching and sorting (n=25): time 0.002046/5.943, allocations: 0.6456 MB / 3.552 GB, free: 30.27 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/5.943, allocations: 110.8 kB / 3.553 GB, free: 30.14 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003776/5.943, allocations: 323.5 kB / 3.553 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.367e-05/5.943, allocations: 29.7 kB / 3.553 GB, free: 29.78 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/5.943, allocations: 223.5 kB / 3.553 GB, free: 29.56 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 6.281e-05/5.943, allocations: 78.84 kB / 3.553 GB, free: 29.48 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.922e-05/5.943, allocations: 15.94 kB / 3.553 GB, free: 29.47 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.949e-05/5.944, allocations: 354.8 kB / 3.553 GB, free: 29.11 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/5.944, allocations: 99.98 kB / 3.554 GB, free: 29.02 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/5.944, allocations: 219.6 kB / 3.554 GB, free: 28.76 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/5.944, allocations: 128.7 kB / 3.554 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/5.944, allocations: 0 / 3.554 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005564/5.945, allocations: 378.7 kB / 3.554 GB, free: 28.26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002055/5.945, allocations: 1.055 MB / 3.555 GB, free: 27.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/5.945, allocations: 0 / 3.555 GB, free: 27.12 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/5.945, allocations: 8 kB / 3.555 GB, free: 27.12 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004003/5.945, allocations: 103.9 kB / 3.555 GB, free: 27.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/5.945, allocations: 8 kB / 3.555 GB, free: 27.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004367/5.946, allocations: 71.55 kB / 3.555 GB, free: 26.94 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/5.946, allocations: 27.95 kB / 3.556 GB, free: 26.91 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.087e-06/5.946, allocations: 7.938 kB / 3.556 GB, free: 26.9 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000446/5.946, allocations: 311.5 kB / 3.556 GB, free: 26.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/5.946, allocations: 4 kB / 3.556 GB, free: 26.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.65e-06/5.946, allocations: 4 kB / 3.556 GB, free: 26.59 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/5.947, allocations: 112.2 kB / 3.556 GB, free: 26.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/5.947, allocations: 4 kB / 3.556 GB, free: 26.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003762/5.947, allocations: 75.64 kB / 3.556 GB, free: 26.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.991e-05/5.947, allocations: 16 kB / 3.556 GB, free: 26.39 MB / 0.5417 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 9.926e-05/5.947, allocations: 121.4 kB / 3.556 GB, free: 26.26 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.45e-05/5.947, allocations: 47.42 kB / 3.556 GB, free: 26.21 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001626/5.949, allocations: 1.92 MB / 3.558 GB, free: 24.28 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.411e-05/5.949, allocations: 27.95 kB / 3.558 GB, free: 24.25 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/5.949, allocations: 0 / 3.558 GB, free: 24.25 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/5.949, allocations: 7.984 kB / 3.558 GB, free: 24.24 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008245/5.95, allocations: 1.038 MB / 3.559 GB, free: 23.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/5.95, allocations: 0 / 3.559 GB, free: 23.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003074/5.95, allocations: 87.88 kB / 3.559 GB, free: 23.08 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/5.95, allocations: 0 / 3.559 GB, free: 23.08 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/5.95, allocations: 19.94 kB / 3.559 GB, free: 23.06 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/5.95, allocations: 0 / 3.559 GB, free: 23.06 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/5.95, allocations: 0 / 3.559 GB, free: 23.06 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008327/5.951, allocations: 1.036 MB / 3.56 GB, free: 22.01 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/5.951, allocations: 267.3 kB / 3.56 GB, free: 21.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.082e-05/5.951, allocations: 4 kB / 3.56 GB, free: 21.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/5.952, allocations: 51.92 kB / 3.561 GB, free: 21.67 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.76e-05/5.952, allocations: 39.88 kB / 3.561 GB, free: 21.63 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.323e-05/5.952, allocations: 8 kB / 3.561 GB, free: 21.62 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000336/5.952, allocations: 361.6 kB / 3.561 GB, free: 21.27 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4e-07/5.952, allocations: 0 / 3.561 GB, free: 21.27 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006245/5.958, allocations: 1.206 MB / 3.562 GB, free: 20.06 MB / 0.5417 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.00854/5.967, allocations: 1.494 MB / 3.564 GB, free: 18.71 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001047/5.968, allocations: 0.72 MB / 3.564 GB, free: 17.98 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/5.968, allocations: 0 / 3.564 GB, free: 17.98 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000422/5.969, allocations: 493.5 kB / 3.565 GB, free: 17.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/5.97, allocations: 215.6 kB / 3.565 GB, free: 17.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/5.971, allocations: 1.193 MB / 3.566 GB, free: 16.07 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/5.972, allocations: 0.9998 MB / 3.567 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0007796/5.972, allocations: 0.5585 MB / 3.568 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/5.973, allocations: 47.42 kB / 3.568 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of SimCode: time 1.052e-06/5.973, allocations: 0 / 3.568 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of Templates: time 0.3457/6.318, allocations: 35.1 MB / 3.602 GB, free: 103.8 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches