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.001261/0.001261, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001413/0.001414, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.217/0.217, allocations: 46.11 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002301/0.002301, allocations: 80.89 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1166, allocations: 62.44 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02973/0.1463, allocations: 28.26 MB / 0.4965 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2026/0.349, allocations: 13.3 MB / 0.5095 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003584/0.3494, allocations: 16.31 kB / 0.5095 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006654/0.3501, allocations: 251.2 kB / 0.5097 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01199/0.3621, allocations: 3.668 MB / 0.5133 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006081/0.3682, allocations: 2.367 MB / 0.5156 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.3694, allocations: 0.8954 MB / 0.5165 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000369/0.3698, allocations: 254.5 kB / 0.5167 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007134/0.3705, allocations: 440.4 kB / 0.5172 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003083/0.3708, allocations: 275 kB / 0.5174 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.137e-05/0.3709, allocations: 32.88 kB / 0.5174 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01327/0.3842, allocations: 7.069 MB / 0.5244 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001657/0.3844, allocations: 105.2 kB / 0.5245 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003471/0.3847, allocations: 224.1 kB / 0.5247 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009304/0.394, allocations: 4.413 MB / 0.529 GB, free: 8.098 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3941, allocations: 4 kB / 0.529 GB, free: 8.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3941, allocations: 0 / 0.529 GB, free: 8.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.3941, allocations: 6.5 kB / 0.529 GB, free: 8.09 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.003402/0.3975, allocations: 1.25 MB / 0.5302 GB, free: 7.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.3976, allocations: 9.156 kB / 0.5302 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.599e-05/0.3976, allocations: 62.05 kB / 0.5303 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001707/0.3994, allocations: 209.7 kB / 0.5305 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/0.3998, allocations: 366 kB / 0.5308 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.3998, allocations: 26.52 kB / 0.5308 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.3e-05/0.3998, allocations: 30.84 kB / 0.5309 GB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.4013, allocations: 0.5994 MB / 0.5315 GB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.4013, allocations: 1.375 kB / 0.5315 GB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.028e-05/0.4014, allocations: 13.2 kB / 0.5315 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.4014, allocations: 8.25 kB / 0.5315 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.403, allocations: 0.5452 MB / 0.532 GB, free: 6.016 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.002411/0.4054, allocations: 2.63 MB / 0.5346 GB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.4069, allocations: 475.5 kB / 0.535 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004293/0.4073, allocations: 196 kB / 0.5352 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05287/0.4602, allocations: 26.77 MB / 0.5614 GB, free: 8.391 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.802e-05/0.4603, allocations: 43.2 kB / 0.5614 GB, free: 8.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.755e-06/0.4603, allocations: 0 / 0.5614 GB, free: 8.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003068/0.4634, allocations: 0.8213 MB / 0.5622 GB, free: 7.512 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.4635, allocations: 106.8 kB / 0.5623 GB, free: 7.383 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003574/0.4638, allocations: 308.5 kB / 0.5626 GB, free: 7.078 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.4639, allocations: 29.7 kB / 0.5626 GB, free: 7.043 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.464, allocations: 216.1 kB / 0.5628 GB, free: 6.828 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.108e-05/0.4641, allocations: 86.78 kB / 0.5629 GB, free: 6.742 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.4642, allocations: 69.59 kB / 0.563 GB, free: 6.668 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.4644, allocations: 338.8 kB / 0.5633 GB, free: 6.328 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004326/0.4648, allocations: 149.7 kB / 0.5635 GB, free: 6.184 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005234/0.4653, allocations: 238.9 kB / 0.5637 GB, free: 5.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009076/0.4663, allocations: 382.4 kB / 0.5641 GB, free: 5.504 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.4663, allocations: 7.938 kB / 0.5641 GB, free: 5.496 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00112/0.4674, allocations: 436.8 kB / 0.5645 GB, free: 5.062 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.4674, allocations: 4 kB / 0.5645 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.4674, allocations: 4 kB / 0.5645 GB, free: 5.055 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.4675, allocations: 7.938 kB / 0.5645 GB, free: 5.047 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000379/0.4678, allocations: 94.92 kB / 0.5646 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.537e-06/0.4679, allocations: 7.938 kB / 0.5646 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003073/0.4682, allocations: 55.97 kB / 0.5646 GB, free: 4.895 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.889e-05/0.4682, allocations: 12 kB / 0.5647 GB, free: 4.883 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.0001709/0.4684, allocations: 157.8 kB / 0.5648 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.922e-05/0.4685, allocations: 35.62 kB / 0.5648 GB, free: 4.684 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002501/0.471, allocations: 1.917 MB / 0.5667 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.864e-05/0.471, allocations: 43.81 kB / 0.5668 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4711, allocations: 4 kB / 0.5668 GB, free: 2.719 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.4711, allocations: 0 / 0.5668 GB, free: 2.719 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.4721, allocations: 1.013 MB / 0.5677 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.4721, allocations: 0 / 0.5677 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003478/0.4725, allocations: 75.92 kB / 0.5678 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.4725, allocations: 0 / 0.5678 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.4725, allocations: 8 kB / 0.5678 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.4725, allocations: 7.922 kB / 0.5678 GB, free: 1.574 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.4725, allocations: 10.11 kB / 0.5678 GB, free: 1.566 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/0.4741, allocations: 1.1 MB / 0.5689 GB, free: 460 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.4742, allocations: 163.8 kB / 0.5691 GB, free: 276 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.988e-05/0.4743, allocations: 27.69 kB / 0.5691 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003079/0.4746, allocations: 35.84 kB / 0.5691 GB, free: 212 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.842e-05/0.4747, allocations: 31.95 kB / 0.5692 GB, free: 180 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.459e-05/0.4747, allocations: 8 kB / 0.5692 GB, free: 172 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003579/0.4751, allocations: 331.1 kB / 0.5695 GB, free: 15.85 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4751, allocations: 4 kB / 0.5695 GB, free: 15.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00317/0.4783, allocations: 0.9916 MB / 0.5705 GB, free: 14.85 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.007282/0.4856, allocations: 2.722 MB / 0.5731 GB, free: 12.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001773/0.4874, allocations: 0.6344 MB / 0.5737 GB, free: 11.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.4874, allocations: 0 / 0.5737 GB, free: 11.57 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006982/0.4881, allocations: 0.5205 MB / 0.5742 GB, free: 11.05 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.4894, allocations: 227.5 kB / 0.5745 GB, free: 10.83 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00902/0.4984, allocations: 5.07 MB / 0.5794 GB, free: 5.629 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005505/0.499, allocations: 0.9677 MB / 0.5804 GB, free: 4.637 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005051/0.4995, allocations: 276.2 kB / 0.5806 GB, free: 4.371 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002996/0.4998, allocations: 259.3 kB / 0.5809 GB, free: 4.117 MB / 430.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4998, allocations: 0 / 0.5809 GB, free: 4.117 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07798/0.5778, allocations: 46.77 MB / 0.6265 GB, free: 5.48 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.894/10.47, allocations: 4.062 kB / 0.6265 GB, free: 5.477 MB / 478.1 MB (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