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.001115/0.001115, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2061/0.2061, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002516/0.002516, allocations: 75.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3432, allocations: 62.43 MB / 0.5305 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03131/0.3745, allocations: 28.28 MB / 0.5581 GB, free: 5.602 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01534/0.3899, allocations: 13.3 MB / 0.5711 GB, free: 8.25 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004399/0.3904, allocations: 15.88 kB / 0.5711 GB, free: 8.234 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007741/0.3912, allocations: 250.4 kB / 0.5714 GB, free: 7.988 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009719/0.401, allocations: 3.671 MB / 0.575 GB, free: 4.316 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006491/0.4075, allocations: 2.368 MB / 0.5773 GB, free: 1.953 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001407/0.4089, allocations: 0.9041 MB / 0.5782 GB, free: 1.047 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006073/0.4095, allocations: 260.6 kB / 0.5784 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001078/0.4106, allocations: 454.2 kB / 0.5788 GB, free: 352 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004844/0.4111, allocations: 266.9 kB / 0.5791 GB, free: 84 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.681e-05/0.4112, allocations: 32 kB / 0.5791 GB, free: 52 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01469/0.4259, allocations: 7.235 MB / 0.5862 GB, free: 8.809 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002318/0.4262, allocations: 99.59 kB / 0.5863 GB, free: 8.711 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000374/0.4265, allocations: 223 kB / 0.5865 GB, free: 8.492 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009968/0.4365, allocations: 4.435 MB / 0.5908 GB, free: 4.047 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.4366, allocations: 4 kB / 0.5908 GB, free: 4.043 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4366, allocations: 0 / 0.5908 GB, free: 4.043 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.4366, allocations: 0 / 0.5908 GB, free: 4.043 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.003354/0.4399, allocations: 1.279 MB / 0.5921 GB, free: 2.711 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.44, allocations: 8.031 kB / 0.5921 GB, free: 2.703 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.434e-05/0.4401, allocations: 66.72 kB / 0.5921 GB, free: 2.629 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001769/0.4419, allocations: 220.4 kB / 0.5924 GB, free: 2.414 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007028/0.4426, allocations: 379.4 kB / 0.5927 GB, free: 2.008 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.503e-05/0.4426, allocations: 29.03 kB / 0.5927 GB, free: 1.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.822e-05/0.4427, allocations: 32.12 kB / 0.5928 GB, free: 1.949 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.4443, allocations: 0.594 MB / 0.5934 GB, free: 1.312 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.4443, allocations: 0 / 0.5934 GB, free: 1.312 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.64e-05/0.4443, allocations: 12 kB / 0.5934 GB, free: 1.301 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.4443, allocations: 8 kB / 0.5934 GB, free: 1.293 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.4459, allocations: 0.5523 MB / 0.5939 GB, free: 0.7383 MB / 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.002922/0.4489, allocations: 2.617 MB / 0.5965 GB, free: 13.88 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.4504, allocations: 482 kB / 0.5969 GB, free: 13.4 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004479/0.4509, allocations: 200.7 kB / 0.5971 GB, free: 13.2 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04631/0.4972, allocations: 26.88 MB / 0.6234 GB, free: 14.91 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/0.4973, allocations: 30.56 kB / 0.6234 GB, free: 14.87 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.063e-06/0.4973, allocations: 0 / 0.6234 GB, free: 14.87 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002946/0.5002, allocations: 0.8209 MB / 0.6242 GB, free: 14.04 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.5003, allocations: 110.8 kB / 0.6243 GB, free: 13.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003764/0.5007, allocations: 312.5 kB / 0.6246 GB, free: 13.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/0.5008, allocations: 29.7 kB / 0.6246 GB, free: 13.56 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.5009, allocations: 208.5 kB / 0.6248 GB, free: 13.35 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.455e-05/0.501, allocations: 91.22 kB / 0.6249 GB, free: 13.26 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.5011, allocations: 69.62 kB / 0.625 GB, free: 13.19 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.5013, allocations: 346.8 kB / 0.6253 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004068/0.5017, allocations: 147.9 kB / 0.6255 GB, free: 12.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004616/0.5021, allocations: 239.8 kB / 0.6257 GB, free: 12.42 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000802/0.503, allocations: 389.9 kB / 0.6261 GB, free: 12.01 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.503, allocations: 0 / 0.6261 GB, free: 12.01 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001027/0.504, allocations: 448.9 kB / 0.6265 GB, free: 11.56 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.504, allocations: 8 kB / 0.6265 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.504, allocations: 0 / 0.6265 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.5041, allocations: 12.23 kB / 0.6265 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003412/0.5044, allocations: 95.81 kB / 0.6266 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.5044, allocations: 11.92 kB / 0.6266 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.5047, allocations: 47.75 kB / 0.6267 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.49e-05/0.5048, allocations: 16 kB / 0.6267 GB, free: 11.38 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.0001908/0.505, allocations: 157.8 kB / 0.6268 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.379e-05/0.5051, allocations: 39.77 kB / 0.6269 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002353/0.5075, allocations: 1.92 MB / 0.6287 GB, free: 9.238 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-05/0.5075, allocations: 31.94 kB / 0.6288 GB, free: 9.207 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.5075, allocations: 0 / 0.6288 GB, free: 9.207 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.5075, allocations: 0 / 0.6288 GB, free: 9.207 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009569/0.5085, allocations: 1.012 MB / 0.6298 GB, free: 8.145 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.5085, allocations: 0 / 0.6298 GB, free: 8.145 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000317/0.5088, allocations: 79.92 kB / 0.6298 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.5088, allocations: 4 kB / 0.6298 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.5089, allocations: 7.938 kB / 0.6298 GB, free: 8.055 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.5089, allocations: 7.938 kB / 0.6298 GB, free: 8.047 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5089, allocations: 0 / 0.6298 GB, free: 8.047 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001472/0.5104, allocations: 1.1 MB / 0.6309 GB, free: 6.93 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.5105, allocations: 172.2 kB / 0.6311 GB, free: 6.742 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.967e-05/0.5106, allocations: 23.78 kB / 0.6311 GB, free: 6.719 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.5109, allocations: 43.95 kB / 0.6312 GB, free: 6.676 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.489e-05/0.511, allocations: 27.95 kB / 0.6312 GB, free: 6.648 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.511, allocations: 12 kB / 0.6312 GB, free: 6.637 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003342/0.5114, allocations: 327.1 kB / 0.6315 GB, free: 6.316 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5114, allocations: 0 / 0.6315 GB, free: 6.316 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002524/0.5139, allocations: 1.01 MB / 0.6325 GB, free: 5.305 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.006532/0.5205, allocations: 2.724 MB / 0.6351 GB, free: 2.559 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.5218, allocations: 0.6139 MB / 0.6357 GB, free: 1.941 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5218, allocations: 0.625 kB / 0.6357 GB, free: 1.941 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007153/0.5225, allocations: 0.5244 MB / 0.6363 GB, free: 1.414 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.5237, allocations: 223 kB / 0.6365 GB, free: 1.203 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008349/0.532, allocations: 5.029 MB / 0.6414 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004861/0.5325, allocations: 0.9638 MB / 0.6423 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004338/0.533, allocations: 270.1 kB / 0.6426 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002954/0.5333, allocations: 263.3 kB / 0.6428 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of SimCode: time 1.994e-06/0.5333, allocations: 0 / 0.6428 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0799/0.6132, allocations: 46.82 MB / 0.6886 GB, free: 11.83 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.48, allocations: 13.38 kB / 0.6886 GB, free: 11.82 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