Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001239/0.001239, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 247.4 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2231/0.2231, allocations: 46.1 MB / 344.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 75.59 kB / 418.3 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1318, allocations: 62.45 MB / 480.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03527/0.1672, allocations: 28.26 MB / 0.497 GB, free: 8.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2634/0.4306, allocations: 13.29 MB / 0.51 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003995/0.431, allocations: 8.906 kB / 0.51 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008141/0.4319, allocations: 255.1 kB / 0.5103 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01145/0.4433, allocations: 3.674 MB / 0.5139 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007201/0.4506, allocations: 2.366 MB / 0.5162 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001542/0.4521, allocations: 0.9 MB / 0.5171 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004381/0.4526, allocations: 243.2 kB / 0.5173 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008216/0.4534, allocations: 450.5 kB / 0.5177 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003606/0.4538, allocations: 275.9 kB / 0.518 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.317e-05/0.4538, allocations: 32.19 kB / 0.518 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01698/0.4708, allocations: 7.064 MB / 0.5249 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002407/0.4711, allocations: 103.1 kB / 0.525 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004601/0.4716, allocations: 218.1 kB / 0.5252 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01248/0.4841, allocations: 4.425 MB / 0.5295 GB, free: 8.086 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.4841, allocations: 6.531 kB / 0.5295 GB, free: 8.082 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4841, allocations: 0 / 0.5295 GB, free: 8.082 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.4841, allocations: 0 / 0.5295 GB, free: 8.082 MB / 382.1 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.003979/0.4881, allocations: 1.241 MB / 0.5308 GB, free: 7.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.4882, allocations: 10.47 kB / 0.5308 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001786/0.49, allocations: 212.2 kB / 0.531 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004365/0.4904, allocations: 362.5 kB / 0.5313 GB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.319e-05/0.4905, allocations: 22.78 kB / 0.5313 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.4905, allocations: 35.8 kB / 0.5314 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.4921, allocations: 0.5985 MB / 0.532 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.4921, allocations: 1.375 kB / 0.532 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.135e-05/0.4921, allocations: 12.12 kB / 0.532 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.4922, allocations: 8.25 kB / 0.532 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.4938, allocations: 0.5413 MB / 0.5325 GB, free: 6.078 MB / 382.1 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.0026/0.4964, allocations: 2.629 MB / 0.5351 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.4979, allocations: 472.2 kB / 0.5355 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004954/0.4984, allocations: 199.6 kB / 0.5357 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05506/0.5535, allocations: 26.78 MB / 0.5619 GB, free: 8.488 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/0.5536, allocations: 38.5 kB / 0.5619 GB, free: 8.441 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.675e-06/0.5536, allocations: 0.8438 kB / 0.5619 GB, free: 8.441 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003196/0.5568, allocations: 0.8175 MB / 0.5627 GB, free: 7.617 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.547e-05/0.5569, allocations: 110.8 kB / 0.5628 GB, free: 7.484 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004121/0.5573, allocations: 304.5 kB / 0.5631 GB, free: 7.184 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.662e-05/0.5574, allocations: 33.7 kB / 0.5631 GB, free: 7.145 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/0.5576, allocations: 208.8 kB / 0.5633 GB, free: 6.941 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.438e-05/0.5576, allocations: 82.84 kB / 0.5634 GB, free: 6.859 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.5578, allocations: 73.59 kB / 0.5635 GB, free: 6.781 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.5579, allocations: 338.8 kB / 0.5638 GB, free: 6.441 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004467/0.5584, allocations: 157.6 kB / 0.5639 GB, free: 6.289 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000528/0.5589, allocations: 248.6 kB / 0.5642 GB, free: 6.008 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000937/0.5599, allocations: 381.2 kB / 0.5645 GB, free: 5.602 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.5599, allocations: 0 / 0.5645 GB, free: 5.602 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00118/0.5611, allocations: 436.8 kB / 0.565 GB, free: 5.168 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.5611, allocations: 10.5 kB / 0.565 GB, free: 5.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.5611, allocations: 4.312 kB / 0.565 GB, free: 5.156 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.5612, allocations: 4 kB / 0.565 GB, free: 5.152 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003636/0.5615, allocations: 91.81 kB / 0.5651 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/0.5615, allocations: 11.92 kB / 0.5651 GB, free: 5.051 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.5619, allocations: 55.59 kB / 0.5651 GB, free: 4.996 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-05/0.562, allocations: 19.98 kB / 0.5651 GB, free: 4.977 MB / 414.1 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 (SinkP1.medium.phase,SourceP1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002004/0.5622, allocations: 153.8 kB / 0.5653 GB, free: 4.816 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.5623, allocations: 36.5 kB / 0.5653 GB, free: 4.781 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00264/0.5649, allocations: 1.934 MB / 0.5672 GB, free: 2.852 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.631e-05/0.565, allocations: 31.89 kB / 0.5672 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.565, allocations: 0 / 0.5672 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.565, allocations: 3.984 kB / 0.5673 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.5661, allocations: 1.012 MB / 0.5682 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.5661, allocations: 0 / 0.5682 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003467/0.5665, allocations: 71.94 kB / 0.5683 GB, free: 1.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.5665, allocations: 4 kB / 0.5683 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.715e-05/0.5665, allocations: 11.98 kB / 0.5683 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.5666, allocations: 7.938 kB / 0.5683 GB, free: 1.668 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.5666, allocations: 0 / 0.5683 GB, free: 1.668 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.5682, allocations: 1.096 MB / 0.5694 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.5684, allocations: 167.8 kB / 0.5696 GB, free: 380 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.995e-05/0.5685, allocations: 19.75 kB / 0.5696 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003172/0.5688, allocations: 38.66 kB / 0.5696 GB, free: 324 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.569, allocations: 31.95 kB / 0.5696 GB, free: 292 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.6e-05/0.569, allocations: 15.92 kB / 0.5697 GB, free: 276 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003946/0.5694, allocations: 327.1 kB / 0.57 GB, free: 15.95 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5694, allocations: 0 / 0.57 GB, free: 15.95 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004016/0.5734, allocations: 1.003 MB / 0.571 GB, free: 14.95 MB / 430.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006563/0.58, allocations: 1.178 MB / 0.5721 GB, free: 13.86 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.5818, allocations: 0.6296 MB / 0.5727 GB, free: 13.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5818, allocations: 0.625 kB / 0.5727 GB, free: 13.23 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007902/0.5826, allocations: 0.5244 MB / 0.5732 GB, free: 12.71 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.584, allocations: 226.5 kB / 0.5734 GB, free: 12.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00239/0.5864, allocations: 1.556 MB / 0.575 GB, free: 10.91 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005335/0.5869, allocations: 0.9638 MB / 0.5759 GB, free: 9.918 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.5871, allocations: 43.42 kB / 0.576 GB, free: 9.875 MB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.5871, allocations: 0 / 0.576 GB, free: 9.875 MB / 430.1 MB Notification: Performance of Templates: time 0.03706/0.6242, allocations: 24.16 MB / 0.5995 GB, free: 1.742 MB / 446.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches