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.001003/0.001003, allocations: 92.61 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 200.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.7 MB / 247.5 MB, free: 9.473 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1987/0.1987, allocations: 46.18 MB / 345.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002795/0.0002795, allocations: 8 kB / 420.2 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1177, allocations: 63.57 MB / 483.7 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03152/0.1493, allocations: 28.44 MB / 0.5002 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2504/0.3997, allocations: 14.03 MB / 0.5139 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005861/0.4003, allocations: 13.25 kB / 0.5139 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009192/0.4013, allocations: 218.5 kB / 0.5141 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01155/0.4129, allocations: 2.927 MB / 0.5169 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006613/0.4195, allocations: 1.973 MB / 0.5189 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001747/0.4213, allocations: 1.139 MB / 0.52 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004377/0.4217, allocations: 219.8 kB / 0.5202 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008381/0.4226, allocations: 400.4 kB / 0.5206 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004677/0.423, allocations: 272.5 kB / 0.5208 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.272e-05/0.4231, allocations: 16.75 kB / 0.5209 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01592/0.439, allocations: 7.128 MB / 0.5278 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002114/0.4393, allocations: 87.61 kB / 0.5279 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003941/0.4397, allocations: 227.5 kB / 0.5281 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006746/0.4464, allocations: 2.99 MB / 0.531 GB, free: 8.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4465, allocations: 1.219 kB / 0.531 GB, free: 8.898 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.4465, allocations: 0 / 0.531 GB, free: 8.898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.4465, allocations: 0 / 0.531 GB, free: 8.898 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.004063/0.4506, allocations: 1.179 MB / 0.5322 GB, free: 8.086 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.4506, allocations: 13.59 kB / 0.5322 GB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00169/0.4523, allocations: 221.7 kB / 0.5324 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004309/0.4528, allocations: 362.8 kB / 0.5328 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.4528, allocations: 29.22 kB / 0.5328 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.462e-05/0.4529, allocations: 28.81 kB / 0.5328 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.4544, allocations: 0.6225 MB / 0.5334 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.4544, allocations: 7.875 kB / 0.5334 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.169e-05/0.4545, allocations: 16.91 kB / 0.5334 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/0.4545, allocations: 7.625 kB / 0.5335 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.4561, allocations: 0.5868 MB / 0.534 GB, free: 7.285 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.002621/0.4588, allocations: 2.641 MB / 0.5366 GB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.4603, allocations: 0.4962 MB / 0.5371 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004596/0.4608, allocations: 223.4 kB / 0.5373 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05266/0.5135, allocations: 26.98 MB / 0.5637 GB, free: 10.11 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.712e-05/0.5136, allocations: 38.56 kB / 0.5637 GB, free: 10.06 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 5.721e-06/0.5136, allocations: 0 / 0.5637 GB, free: 10.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.0033/0.5169, allocations: 0.8878 MB / 0.5646 GB, free: 9.164 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.682e-05/0.517, allocations: 114.8 kB / 0.5647 GB, free: 9.027 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004137/0.5174, allocations: 316.4 kB / 0.565 GB, free: 8.715 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.553e-05/0.5175, allocations: 29.7 kB / 0.565 GB, free: 8.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.5177, allocations: 202 kB / 0.5652 GB, free: 8.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.503e-05/0.5177, allocations: 85.48 kB / 0.5653 GB, free: 8.398 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.678e-05/0.5178, allocations: 37.7 kB / 0.5653 GB, free: 8.355 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.518, allocations: 346.7 kB / 0.5656 GB, free: 8.008 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004676/0.5184, allocations: 163.9 kB / 0.5658 GB, free: 7.848 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000537/0.519, allocations: 273.5 kB / 0.5661 GB, free: 7.543 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009693/0.52, allocations: 417.2 kB / 0.5665 GB, free: 7.102 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.52, allocations: 0 / 0.5665 GB, free: 7.102 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001172/0.5212, allocations: 480.8 kB / 0.5669 GB, free: 6.625 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.5212, allocations: 6.5 kB / 0.5669 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.5212, allocations: 4 kB / 0.5669 GB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.638e-05/0.5213, allocations: 4 kB / 0.5669 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003913/0.5217, allocations: 104.1 kB / 0.567 GB, free: 6.512 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.5217, allocations: 4 kB / 0.567 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00042/0.5221, allocations: 67.64 kB / 0.5671 GB, free: 6.441 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.696e-05/0.5222, allocations: 19.98 kB / 0.5671 GB, free: 6.422 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.0001956/0.5224, allocations: 157.7 kB / 0.5673 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.056e-05/0.5225, allocations: 39.47 kB / 0.5673 GB, free: 6.219 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00266/0.5251, allocations: 1.972 MB / 0.5692 GB, free: 4.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.099e-05/0.5252, allocations: 31.89 kB / 0.5693 GB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.5252, allocations: 0 / 0.5693 GB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.5252, allocations: 0 / 0.5693 GB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.5263, allocations: 1.019 MB / 0.5703 GB, free: 3.156 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.5263, allocations: 0 / 0.5703 GB, free: 3.156 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003508/0.5267, allocations: 91.88 kB / 0.5703 GB, free: 3.066 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.5267, allocations: 3.938 kB / 0.5703 GB, free: 3.066 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.402e-05/0.5267, allocations: 14.42 kB / 0.5704 GB, free: 3.055 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.5267, allocations: 3.938 kB / 0.5704 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.5267, allocations: 8 kB / 0.5704 GB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.5284, allocations: 1.131 MB / 0.5715 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.5286, allocations: 223.5 kB / 0.5717 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.695e-05/0.5287, allocations: 4 kB / 0.5717 GB, free: 1.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003524/0.529, allocations: 51.89 kB / 0.5717 GB, free: 1.602 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.763e-05/0.5291, allocations: 35.89 kB / 0.5718 GB, free: 1.566 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.744e-05/0.5292, allocations: 15.98 kB / 0.5718 GB, free: 1.551 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003583/0.5295, allocations: 327.1 kB / 0.5721 GB, free: 1.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5295, allocations: 0 / 0.5721 GB, free: 1.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003747/0.5333, allocations: 0.9993 MB / 0.5731 GB, free: 236 kB / 414.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.006361/0.5397, allocations: 1.184 MB / 0.5742 GB, free: 15.13 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001468/0.5411, allocations: 0.6498 MB / 0.5749 GB, free: 14.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5412, allocations: 0 / 0.5749 GB, free: 14.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007937/0.542, allocations: 0.5362 MB / 0.5754 GB, free: 13.95 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.5433, allocations: 208.6 kB / 0.5756 GB, free: 13.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.5458, allocations: 1.927 MB / 0.5775 GB, free: 11.79 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005141/0.5464, allocations: 0.9598 MB / 0.5784 GB, free: 10.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.5465, allocations: 43.44 kB / 0.5785 GB, free: 10.75 MB / 430.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5465, allocations: 0 / 0.5785 GB, free: 10.75 MB / 430.1 MB Notification: Performance of Templates: time 0.03852/0.585, allocations: 24.1 MB / 0.602 GB, free: 2.691 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