Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 104.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1993/0.1993, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 64.09 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1098, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02842/0.1382, allocations: 28.13 MB / 497.5 MB, free: 2.023 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0155/0.1538, allocations: 13.31 MB / 0.4988 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003142/0.1541, allocations: 15.88 kB / 0.4988 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006971/0.1548, allocations: 250.4 kB / 0.4991 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009263/0.1641, allocations: 3.661 MB / 0.5027 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2225/0.3866, allocations: 2.351 MB / 0.505 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00108/0.3877, allocations: 0.9026 MB / 0.5058 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003748/0.3881, allocations: 255.5 kB / 0.5061 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007681/0.3889, allocations: 438.4 kB / 0.5065 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003374/0.3892, allocations: 271.4 kB / 0.5068 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.655e-05/0.3893, allocations: 33.47 kB / 0.5068 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01445/0.4038, allocations: 7.056 MB / 0.5137 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002576/0.4041, allocations: 107.6 kB / 0.5138 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005332/0.4046, allocations: 215.2 kB / 0.514 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01298/0.4176, allocations: 4.423 MB / 0.5183 GB, free: 13.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4177, allocations: 1.062 kB / 0.5183 GB, free: 13.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4177, allocations: 0 / 0.5183 GB, free: 13.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.4177, allocations: 4.188 kB / 0.5183 GB, free: 13.2 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.00384/0.4215, allocations: 1.233 MB / 0.5195 GB, free: 12.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.4216, allocations: 9.844 kB / 0.5195 GB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.435e-05/0.4217, allocations: 69.16 kB / 0.5196 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001703/0.4234, allocations: 218.6 kB / 0.5198 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004152/0.4238, allocations: 366 kB / 0.5201 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.4239, allocations: 24.41 kB / 0.5202 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.247e-05/0.4239, allocations: 29.62 kB / 0.5202 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.4254, allocations: 0.5997 MB / 0.5208 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.4254, allocations: 1.375 kB / 0.5208 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.953e-05/0.4254, allocations: 11.31 kB / 0.5208 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.4254, allocations: 6.875 kB / 0.5208 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.4271, allocations: 0.5516 MB / 0.5213 GB, free: 12.05 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.002549/0.4296, allocations: 2.626 MB / 0.5239 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.4311, allocations: 475.5 kB / 0.5244 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004507/0.4316, allocations: 196.8 kB / 0.5245 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04695/0.4786, allocations: 24.2 MB / 0.5482 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/0.4786, allocations: 38.91 kB / 0.5482 GB, free: 5.289 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/0.4787, allocations: 0 / 0.5482 GB, free: 5.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003053/0.4817, allocations: 0.8177 MB / 0.549 GB, free: 4.617 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.382e-05/0.4818, allocations: 112.9 kB / 0.5491 GB, free: 4.488 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000379/0.4822, allocations: 306.4 kB / 0.5494 GB, free: 4.238 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.264e-05/0.4823, allocations: 37.58 kB / 0.5495 GB, free: 4.199 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.4824, allocations: 203.3 kB / 0.5496 GB, free: 4.043 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.319e-05/0.4825, allocations: 86.94 kB / 0.5497 GB, free: 3.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.4826, allocations: 73.75 kB / 0.5498 GB, free: 3.918 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.4827, allocations: 344.7 kB / 0.5501 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004423/0.4832, allocations: 149.9 kB / 0.5503 GB, free: 3.477 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004969/0.4837, allocations: 239.2 kB / 0.5505 GB, free: 3.246 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009194/0.4846, allocations: 386.3 kB / 0.5509 GB, free: 2.941 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4846, allocations: 0 / 0.5509 GB, free: 2.941 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001094/0.4857, allocations: 439.3 kB / 0.5513 GB, free: 2.609 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.4858, allocations: 10.97 kB / 0.5513 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/0.4858, allocations: 4 kB / 0.5513 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.4858, allocations: 7.938 kB / 0.5513 GB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/0.4862, allocations: 89.53 kB / 0.5514 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.4862, allocations: 8 kB / 0.5514 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/0.4866, allocations: 51.27 kB / 0.5515 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.247e-05/0.4866, allocations: 15.5 kB / 0.5515 GB, free: 2.449 MB / 398.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.0001862/0.4868, allocations: 164.5 kB / 0.5516 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.789e-05/0.4869, allocations: 31.62 kB / 0.5517 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002464/0.4894, allocations: 1.923 MB / 0.5535 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.579e-05/0.4894, allocations: 35.89 kB / 0.5536 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.4894, allocations: 0 / 0.5536 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.4894, allocations: 3.984 kB / 0.5536 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009889/0.4904, allocations: 1.008 MB / 0.5546 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.4904, allocations: 0 / 0.5546 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003495/0.4908, allocations: 80.17 kB / 0.5546 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.4908, allocations: 7.844 kB / 0.5546 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.4908, allocations: 11.94 kB / 0.5546 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.4908, allocations: 7.938 kB / 0.5547 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4909, allocations: 0 / 0.5547 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/0.4925, allocations: 1.095 MB / 0.5557 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/0.4926, allocations: 167.8 kB / 0.5559 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.163e-05/0.4927, allocations: 25.75 kB / 0.5559 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002993/0.493, allocations: 31.91 kB / 0.5559 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.502e-05/0.4931, allocations: 31.95 kB / 0.556 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.022e-05/0.4932, allocations: 15.98 kB / 0.556 GB, free: 13.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000373/0.4935, allocations: 327.1 kB / 0.5563 GB, free: 13.58 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4936, allocations: 0 / 0.5563 GB, free: 13.58 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003907/0.4975, allocations: 0.9877 MB / 0.5573 GB, free: 12.59 MB / 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.008254/0.5057, allocations: 2.735 MB / 0.5599 GB, free: 9.941 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001628/0.5074, allocations: 0.6324 MB / 0.5606 GB, free: 9.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5074, allocations: 0 / 0.5606 GB, free: 9.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007354/0.5081, allocations: 0.515 MB / 0.5611 GB, free: 8.812 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.5095, allocations: 226.4 kB / 0.5613 GB, free: 8.605 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009321/0.5188, allocations: 5.064 MB / 0.5662 GB, free: 3.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005414/0.5194, allocations: 0.9599 MB / 0.5672 GB, free: 2.449 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005169/0.5199, allocations: 274.2 kB / 0.5674 GB, free: 2.188 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003522/0.5202, allocations: 263.3 kB / 0.5677 GB, free: 1.93 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5203, allocations: 0 / 0.5677 GB, free: 1.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08761/0.6079, allocations: 46.69 MB / 0.6133 GB, free: 3.465 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.921/10.53, allocations: 14.5 kB / 0.6133 GB, free: 3.457 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches