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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001328/0.001328, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001528/0.001528, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2103/0.2103, allocations: 46.09 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 71.89 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3253, allocations: 62.45 MB / 0.5305 GB, free: 13.3 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03081/0.3562, allocations: 28.27 MB / 0.5581 GB, free: 5.312 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01567/0.3719, allocations: 13.3 MB / 0.5711 GB, free: 7.965 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004123/0.3723, allocations: 11.88 kB / 0.5711 GB, free: 7.953 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007501/0.3731, allocations: 254.4 kB / 0.5714 GB, free: 7.703 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009608/0.3828, allocations: 3.675 MB / 0.5749 GB, free: 4.027 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006174/0.3889, allocations: 2.375 MB / 0.5773 GB, free: 1.656 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001132/0.3901, allocations: 0.9002 MB / 0.5781 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000367/0.3905, allocations: 248.7 kB / 0.5784 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007249/0.3912, allocations: 454.2 kB / 0.5788 GB, free: 64 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003565/0.3916, allocations: 271 kB / 0.5791 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.472e-05/0.3916, allocations: 36 kB / 0.5791 GB, free: 15.76 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01312/0.4048, allocations: 7.231 MB / 0.5862 GB, free: 8.523 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001909/0.405, allocations: 107.6 kB / 0.5863 GB, free: 8.418 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003163/0.4053, allocations: 223 kB / 0.5865 GB, free: 8.199 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.4155, allocations: 4.427 MB / 0.5908 GB, free: 3.762 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4156, allocations: 0 / 0.5908 GB, free: 3.762 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4156, allocations: 0 / 0.5908 GB, free: 3.762 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.4156, allocations: 3.938 kB / 0.5908 GB, free: 3.758 MB / 446.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.003075/0.4187, allocations: 1.283 MB / 0.5921 GB, free: 2.422 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.4187, allocations: 8.031 kB / 0.5921 GB, free: 2.414 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.655e-05/0.4188, allocations: 70.72 kB / 0.5921 GB, free: 2.336 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001772/0.4206, allocations: 220.4 kB / 0.5923 GB, free: 2.121 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006533/0.4213, allocations: 375.5 kB / 0.5927 GB, free: 1.719 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.258e-05/0.4213, allocations: 25.03 kB / 0.5927 GB, free: 1.695 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.48e-05/0.4214, allocations: 32.12 kB / 0.5928 GB, free: 1.664 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.4229, allocations: 0.6017 MB / 0.5933 GB, free: 1.02 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.423, allocations: 3.984 kB / 0.5934 GB, free: 1.016 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.171e-05/0.423, allocations: 16 kB / 0.5934 GB, free: 1 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.423, allocations: 8 kB / 0.5934 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.4247, allocations: 0.5445 MB / 0.5939 GB, free: 456 kB / 446.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.003136/0.4279, allocations: 2.621 MB / 0.5965 GB, free: 13.58 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001656/0.4295, allocations: 478 kB / 0.5969 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004786/0.43, allocations: 196.7 kB / 0.5971 GB, free: 12.91 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05191/0.482, allocations: 26.88 MB / 0.6234 GB, free: 14.62 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.482, allocations: 38.56 kB / 0.6234 GB, free: 14.57 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.304e-06/0.482, allocations: 0 / 0.6234 GB, free: 14.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002912/0.485, allocations: 0.817 MB / 0.6242 GB, free: 13.75 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.485, allocations: 106.8 kB / 0.6243 GB, free: 13.62 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003374/0.4854, allocations: 316.5 kB / 0.6246 GB, free: 13.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.4854, allocations: 29.7 kB / 0.6246 GB, free: 13.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/0.4856, allocations: 208.5 kB / 0.6248 GB, free: 13.05 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.849e-05/0.4856, allocations: 91.22 kB / 0.6249 GB, free: 12.96 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.4858, allocations: 69.69 kB / 0.625 GB, free: 12.89 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.4859, allocations: 342.8 kB / 0.6253 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000416/0.4863, allocations: 147.9 kB / 0.6255 GB, free: 12.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004843/0.4868, allocations: 243.8 kB / 0.6257 GB, free: 12.12 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008619/0.4877, allocations: 385.8 kB / 0.6261 GB, free: 11.71 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4877, allocations: 4 kB / 0.6261 GB, free: 11.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001063/0.4888, allocations: 444.9 kB / 0.6265 GB, free: 11.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.4888, allocations: 4 kB / 0.6265 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.4888, allocations: 4 kB / 0.6265 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.4888, allocations: 7.938 kB / 0.6265 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003651/0.4892, allocations: 100.1 kB / 0.6266 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.4892, allocations: 4 kB / 0.6266 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.4895, allocations: 47.75 kB / 0.6266 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.923e-05/0.4895, allocations: 16 kB / 0.6267 GB, free: 11.09 MB / 494.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.0001684/0.4897, allocations: 161.7 kB / 0.6268 GB, free: 10.92 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.658e-05/0.4898, allocations: 35.77 kB / 0.6268 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002368/0.4922, allocations: 1.924 MB / 0.6287 GB, free: 8.949 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.939e-05/0.4922, allocations: 31.94 kB / 0.6288 GB, free: 8.918 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4922, allocations: 0 / 0.6288 GB, free: 8.918 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.4922, allocations: 0 / 0.6288 GB, free: 8.918 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009211/0.4932, allocations: 1.016 MB / 0.6297 GB, free: 7.852 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.4932, allocations: 0 / 0.6297 GB, free: 7.852 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003383/0.4935, allocations: 79.92 kB / 0.6298 GB, free: 7.773 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.4935, allocations: 0 / 0.6298 GB, free: 7.773 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.4936, allocations: 11.94 kB / 0.6298 GB, free: 7.762 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.4936, allocations: 3.938 kB / 0.6298 GB, free: 7.758 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.4936, allocations: 0 / 0.6298 GB, free: 7.758 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001445/0.495, allocations: 1.104 MB / 0.6309 GB, free: 6.637 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001106/0.4951, allocations: 168.2 kB / 0.6311 GB, free: 6.453 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.582e-05/0.4952, allocations: 35.7 kB / 0.6311 GB, free: 6.418 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002771/0.4955, allocations: 27.91 kB / 0.6311 GB, free: 6.391 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.025e-05/0.4956, allocations: 35.95 kB / 0.6312 GB, free: 6.355 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.4956, allocations: 12 kB / 0.6312 GB, free: 6.344 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003286/0.496, allocations: 331.1 kB / 0.6315 GB, free: 6.02 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.496, allocations: 0 / 0.6315 GB, free: 6.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002476/0.4984, allocations: 1.002 MB / 0.6325 GB, free: 5.016 MB / 494.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.005741/0.5042, allocations: 2.731 MB / 0.6351 GB, free: 2.262 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001268/0.5055, allocations: 0.61 MB / 0.6357 GB, free: 1.648 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.5055, allocations: 0 / 0.6357 GB, free: 1.648 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007155/0.5062, allocations: 0.5289 MB / 0.6363 GB, free: 1.117 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.5074, allocations: 216.2 kB / 0.6365 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007748/0.5152, allocations: 5.041 MB / 0.6414 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004684/0.5157, allocations: 0.956 MB / 0.6423 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004599/0.5161, allocations: 274.8 kB / 0.6426 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002963/0.5164, allocations: 263.3 kB / 0.6428 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of SimCode: time 4.01e-07/0.5164, allocations: 0 / 0.6428 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07706/0.5935, allocations: 46.82 MB / 0.6885 GB, free: 11.53 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.97, allocations: 0 / 0.6885 GB, free: 11.53 MB / 0.545 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.csv","/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