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.001477/0.001477, allocations: 105.5 kB / 17.21 MB, free: 6.289 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.001734/0.001734, allocations: 194 kB / 18.12 MB, free: 5.383 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.366/1.366, allocations: 222.9 MB / 241.8 MB, free: 15.45 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.2057/0.2057, allocations: 44.18 MB / 336.1 MB, free: 3.016 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 62.53 kB / 407.8 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09922/0.1007, allocations: 60.82 MB / 468.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03486/0.1356, allocations: 28.99 MB / 497.6 MB, free: 1.664 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01651/0.1522, allocations: 14.29 MB / 0.4999 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004376/0.1526, allocations: 15.94 kB / 0.4999 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000771/0.1535, allocations: 218.8 kB / 0.5001 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007911/0.1614, allocations: 2.925 MB / 0.503 GB, free: 184 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1994/0.3608, allocations: 1.964 MB / 0.5049 GB, free: 13.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001428/0.3623, allocations: 1.144 MB / 0.506 GB, free: 13.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004365/0.3627, allocations: 216 kB / 0.5062 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008869/0.3636, allocations: 394.2 kB / 0.5066 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004972/0.3641, allocations: 281.6 kB / 0.5069 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.364e-05/0.3642, allocations: 17.47 kB / 0.5069 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01312/0.3773, allocations: 7.12 MB / 0.5138 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001873/0.3775, allocations: 91.94 kB / 0.5139 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004113/0.378, allocations: 200.8 kB / 0.5141 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009331/0.3873, allocations: 4.412 MB / 0.5184 GB, free: 13.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3873, allocations: 1.281 kB / 0.5184 GB, free: 13.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.3873, allocations: 0 / 0.5184 GB, free: 13.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.3874, allocations: 0 / 0.5184 GB, free: 13.49 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.003845/0.3912, allocations: 1.238 MB / 0.5196 GB, free: 12.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3913, allocations: 12.19 kB / 0.5197 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.372e-05/0.3914, allocations: 68.42 kB / 0.5197 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00178/0.3932, allocations: 220.4 kB / 0.5199 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000437/0.3936, allocations: 362.8 kB / 0.5203 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.3936, allocations: 26.47 kB / 0.5203 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.602e-05/0.3937, allocations: 29.69 kB / 0.5203 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.3952, allocations: 0.5937 MB / 0.5209 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3953, allocations: 3.562 kB / 0.5209 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.3953, allocations: 17.88 kB / 0.5209 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.3953, allocations: 7.562 kB / 0.5209 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.397, allocations: 0.5414 MB / 0.5215 GB, free: 12.07 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.002839/0.3999, allocations: 2.626 MB / 0.524 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.4015, allocations: 473.4 kB / 0.5245 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004504/0.4019, allocations: 200.8 kB / 0.5247 GB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04438/0.4463, allocations: 24.21 MB / 0.5483 GB, free: 4.941 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.569e-05/0.4464, allocations: 45.86 kB / 0.5484 GB, free: 4.891 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 3.176e-06/0.4464, allocations: 0.75 kB / 0.5484 GB, free: 4.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.00308/0.4495, allocations: 0.8193 MB / 0.5492 GB, free: 4.223 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.4496, allocations: 106.8 kB / 0.5493 GB, free: 4.094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003659/0.4499, allocations: 304.9 kB / 0.5496 GB, free: 3.848 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.701e-05/0.45, allocations: 35.2 kB / 0.5496 GB, free: 3.812 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.4501, allocations: 208.1 kB / 0.5498 GB, free: 3.652 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.554e-05/0.4502, allocations: 89.77 kB / 0.5499 GB, free: 3.582 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.4503, allocations: 74 kB / 0.5499 GB, free: 3.527 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.4505, allocations: 337.2 kB / 0.5503 GB, free: 3.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004496/0.4509, allocations: 152.8 kB / 0.5504 GB, free: 3.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004915/0.4514, allocations: 240.5 kB / 0.5506 GB, free: 2.863 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009135/0.4524, allocations: 384.5 kB / 0.551 GB, free: 2.551 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4524, allocations: 0 / 0.551 GB, free: 2.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00111/0.4535, allocations: 439.9 kB / 0.5514 GB, free: 2.219 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.4535, allocations: 6.188 kB / 0.5514 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.4535, allocations: 4 kB / 0.5514 GB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.4536, allocations: 7.938 kB / 0.5514 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003659/0.4539, allocations: 93.98 kB / 0.5515 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.4539, allocations: 8 kB / 0.5515 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003858/0.4543, allocations: 59.52 kB / 0.5516 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.4544, allocations: 15.81 kB / 0.5516 GB, free: 2.051 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.0002013/0.4546, allocations: 159.9 kB / 0.5518 GB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.556e-05/0.4547, allocations: 36.8 kB / 0.5518 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002436/0.4571, allocations: 1.917 MB / 0.5537 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.241e-05/0.4572, allocations: 35.89 kB / 0.5537 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4572, allocations: 3.188 kB / 0.5537 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.4572, allocations: 7.984 kB / 0.5537 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.4583, allocations: 1.009 MB / 0.5547 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.4583, allocations: 0 / 0.5547 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003499/0.4586, allocations: 83.77 kB / 0.5548 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.4587, allocations: 3.938 kB / 0.5548 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.4587, allocations: 8 kB / 0.5548 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.4587, allocations: 7.219 kB / 0.5548 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.4587, allocations: 4 kB / 0.5548 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/0.4603, allocations: 1.092 MB / 0.5559 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/0.4605, allocations: 163.8 kB / 0.556 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.535e-05/0.4606, allocations: 27.69 kB / 0.5561 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003498/0.461, allocations: 47.83 kB / 0.5561 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.4611, allocations: 31.95 kB / 0.5561 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/0.4611, allocations: 15.98 kB / 0.5561 GB, free: 13.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003942/0.4615, allocations: 323.1 kB / 0.5565 GB, free: 13.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4615, allocations: 0 / 0.5565 GB, free: 13.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004053/0.4656, allocations: 0.9955 MB / 0.5574 GB, free: 12.64 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.009862/0.4755, allocations: 2.712 MB / 0.5601 GB, free: 10.01 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001499/0.477, allocations: 0.608 MB / 0.5607 GB, free: 9.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.477, allocations: 4 kB / 0.5607 GB, free: 9.406 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000792/0.4778, allocations: 0.5203 MB / 0.5612 GB, free: 8.895 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.4792, allocations: 209.6 kB / 0.5614 GB, free: 8.691 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01007/0.4893, allocations: 5.382 MB / 0.5666 GB, free: 3.203 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005957/0.4899, allocations: 0.9677 MB / 0.5676 GB, free: 2.211 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005378/0.4905, allocations: 279 kB / 0.5678 GB, free: 1.953 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003313/0.4908, allocations: 259.3 kB / 0.5681 GB, free: 1.699 MB / 414.1 MB Notification: Performance of SimCode: time 6.72e-07/0.4908, allocations: 0 / 0.5681 GB, free: 1.699 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07369/0.5645, allocations: 45.94 MB / 0.613 GB, free: 4.047 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001916/0.5647, allocations: 256.3 kB / 0.6132 GB, free: 3.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.142/4.707, allocations: 4 kB / 0.6132 GB, free: 3.766 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