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.001545/0.001549, allocations: 186.6 kB / 16.4 MB, free: 5.621 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.041/2.041, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001149/0.001149, allocations: 94.86 kB / 270.9 MB, free: 13.28 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.2952/0.2952, allocations: 43.56 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007707/0.0007711, allocations: 12 kB / 431.4 MB, free: 20.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1321, allocations: 58.86 MB / 490.2 MB, free: 9.336 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.04283/0.175, allocations: 23.79 MB / 0.502 GB, free: 1.48 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02299/0.1981, allocations: 11.37 MB / 0.5131 GB, free: 6.09 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005805/0.1987, allocations: 11.94 kB / 0.5131 GB, free: 6.078 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.1998, allocations: 203 kB / 0.5133 GB, free: 5.879 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01232/0.2121, allocations: 2.824 MB / 0.516 GB, free: 3.047 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008449/0.2206, allocations: 1.909 MB / 0.5179 GB, free: 1.133 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.222, allocations: 0.5354 MB / 0.5184 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005597/0.2226, allocations: 201 kB / 0.5186 GB, free: 400 kB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3447/0.5673, allocations: 401.2 kB / 0.519 GB, free: 13.71 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006221/0.568, allocations: 197.5 kB / 0.5192 GB, free: 13.71 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001097/0.5681, allocations: 18.84 kB / 0.5192 GB, free: 13.71 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02154/0.5896, allocations: 7.017 MB / 0.526 GB, free: 13.7 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002871/0.59, allocations: 73.69 kB / 0.5261 GB, free: 13.7 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000267/0.5903, allocations: 103.7 kB / 0.5262 GB, free: 13.67 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0107/0.601, allocations: 2.949 MB / 0.5291 GB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.6011, allocations: 0 / 0.5291 GB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.6011, allocations: 4.25 kB / 0.5291 GB, free: 13.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.6011, allocations: 0 / 0.5291 GB, free: 13.55 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.006795/0.6079, allocations: 1.174 MB / 0.5302 GB, free: 12.85 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.608, allocations: 9.281 kB / 0.5303 GB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002619/0.6106, allocations: 220 kB / 0.5305 GB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008823/0.6115, allocations: 354.9 kB / 0.5308 GB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.661e-05/0.6116, allocations: 27.56 kB / 0.5308 GB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.197e-05/0.6117, allocations: 26.34 kB / 0.5309 GB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002639/0.6143, allocations: 0.6159 MB / 0.5315 GB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.6144, allocations: 1.375 kB / 0.5315 GB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.958e-05/0.6145, allocations: 21 kB / 0.5315 GB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.6145, allocations: 12.25 kB / 0.5315 GB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002918/0.6174, allocations: 0.5869 MB / 0.5321 GB, free: 12.46 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.004547/0.622, allocations: 2.64 MB / 0.5346 GB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002717/0.6248, allocations: 0.5021 MB / 0.5351 GB, free: 10.51 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08468/0.7095, allocations: 24.43 MB / 0.559 GB, free: 7.945 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.557e-05/0.7096, allocations: 37.16 kB / 0.559 GB, free: 7.906 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.415e-06/0.7096, allocations: 0 / 0.559 GB, free: 7.906 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.005041/0.7147, allocations: 0.8926 MB / 0.5599 GB, free: 7.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.328e-05/0.7148, allocations: 106.8 kB / 0.56 GB, free: 7.031 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005415/0.7154, allocations: 306.7 kB / 0.5603 GB, free: 6.785 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.917e-05/0.7154, allocations: 28.14 kB / 0.5603 GB, free: 6.754 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002274/0.7157, allocations: 255.3 kB / 0.5606 GB, free: 6.543 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.7158, allocations: 90.34 kB / 0.5606 GB, free: 6.469 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.653e-05/0.7159, allocations: 3.25 kB / 0.5606 GB, free: 6.469 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.716, allocations: 324.9 kB / 0.561 GB, free: 6.148 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008185/0.7169, allocations: 169.7 kB / 0.5611 GB, free: 6.023 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009038/0.7178, allocations: 257.5 kB / 0.5614 GB, free: 5.777 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008314/0.7186, allocations: 176.4 kB / 0.5615 GB, free: 5.652 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.7187, allocations: 0 / 0.5615 GB, free: 5.652 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001968/0.7206, allocations: 466.9 kB / 0.562 GB, free: 5.297 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.7207, allocations: 10.62 kB / 0.562 GB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.7207, allocations: 4 kB / 0.562 GB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/0.7208, allocations: 4 kB / 0.562 GB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007161/0.7215, allocations: 91.81 kB / 0.5621 GB, free: 5.199 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.885e-05/0.7215, allocations: 14.73 kB / 0.5621 GB, free: 5.188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007304/0.7223, allocations: 68.27 kB / 0.5622 GB, free: 5.125 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-05/0.7223, allocations: 14.88 kB / 0.5622 GB, free: 5.113 MB / 378.7 MB 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 () * Number of clocked 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.0003346/0.7227, allocations: 166.8 kB / 0.5623 GB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.7228, allocations: 31.62 kB / 0.5624 GB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004226/0.7271, allocations: 1.969 MB / 0.5643 GB, free: 3.621 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.657e-05/0.7272, allocations: 34.5 kB / 0.5643 GB, free: 3.598 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.7272, allocations: 4 kB / 0.5643 GB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.7272, allocations: 7.953 kB / 0.5643 GB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.729, allocations: 1.013 MB / 0.5653 GB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.7291, allocations: 0 / 0.5653 GB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007242/0.7298, allocations: 93.92 kB / 0.5654 GB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.618e-06/0.7298, allocations: 2.219 kB / 0.5654 GB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.448e-05/0.7299, allocations: 7.938 kB / 0.5654 GB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.246e-06/0.7299, allocations: 4 kB / 0.5654 GB, free: 2.754 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.7299, allocations: 0 / 0.5654 GB, free: 2.754 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002732/0.7326, allocations: 1.13 MB / 0.5665 GB, free: 1.914 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003476/0.733, allocations: 218 kB / 0.5667 GB, free: 1.699 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.7331, allocations: 9.312 kB / 0.5667 GB, free: 1.695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006031/0.7338, allocations: 47.77 kB / 0.5668 GB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.7339, allocations: 33.64 kB / 0.5668 GB, free: 1.625 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.325e-05/0.734, allocations: 11.17 kB / 0.5668 GB, free: 1.617 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005743/0.7346, allocations: 329 kB / 0.5671 GB, free: 1.371 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7346, allocations: 0 / 0.5671 GB, free: 1.371 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005548/0.7401, allocations: 0.9924 MB / 0.5681 GB, free: 432 kB / 378.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 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.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 (35): * Single equations (assignments): 26 * 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.0106/0.7508, allocations: 1.179 MB / 0.5693 GB, free: 15.38 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002305/0.7531, allocations: 0.6479 MB / 0.5699 GB, free: 14.92 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.7532, allocations: 0 / 0.5699 GB, free: 14.92 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001261/0.7545, allocations: 0.5369 MB / 0.5704 GB, free: 14.61 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001991/0.7565, allocations: 205.3 kB / 0.5706 GB, free: 14.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003637/0.7601, allocations: 1.909 MB / 0.5725 GB, free: 12.76 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006849/0.7609, allocations: 0.9797 MB / 0.5734 GB, free: 11.76 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002427/0.7611, allocations: 42.67 kB / 0.5735 GB, free: 11.72 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.7612, allocations: 0 / 0.5735 GB, free: 11.72 MB / 394.7 MB Notification: Performance of Templates: time 0.06856/0.8297, allocations: 27.19 MB / 0.6 GB, free: 0.793 MB / 410.7 MB 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