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.001324/0.001324, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001537/0.001537, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2181/0.2181, allocations: 46.1 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 76.64 kB / 417.1 MB, free: 20 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.129, allocations: 62.45 MB / 479.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03286/0.1619, allocations: 28.39 MB / 0.4961 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2171/0.3791, allocations: 13.38 MB / 0.5092 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000492/0.3797, allocations: 16.62 kB / 0.5092 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007748/0.3805, allocations: 215.8 kB / 0.5094 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009856/0.3904, allocations: 3.235 MB / 0.5125 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006474/0.3968, allocations: 2.127 MB / 0.5146 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001355/0.3982, allocations: 0.9007 MB / 0.5155 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005277/0.3988, allocations: 247.2 kB / 0.5157 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00103/0.3998, allocations: 441.4 kB / 0.5161 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005387/0.4003, allocations: 282.9 kB / 0.5164 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.197e-05/0.4004, allocations: 31.03 kB / 0.5164 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01461/0.4151, allocations: 7.133 MB / 0.5234 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002321/0.4153, allocations: 101.7 kB / 0.5235 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004812/0.4158, allocations: 232 kB / 0.5237 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01064/0.4265, allocations: 4.433 MB / 0.5281 GB, free: 8.758 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4265, allocations: 1.812 kB / 0.5281 GB, free: 8.758 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4265, allocations: 0 / 0.5281 GB, free: 8.758 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.4265, allocations: 3.984 kB / 0.5281 GB, free: 8.754 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.003724/0.4303, allocations: 1.247 MB / 0.5293 GB, free: 7.879 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.4303, allocations: 9.688 kB / 0.5293 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.437e-05/0.4304, allocations: 68.72 kB / 0.5294 GB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001798/0.4322, allocations: 206.1 kB / 0.5296 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005127/0.4328, allocations: 366.7 kB / 0.5299 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.4328, allocations: 26.56 kB / 0.5299 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.554e-05/0.4329, allocations: 26.31 kB / 0.53 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.4344, allocations: 0.6 MB / 0.5305 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.4344, allocations: 6.203 kB / 0.5305 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.893e-05/0.4345, allocations: 12.12 kB / 0.5306 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.4345, allocations: 6.875 kB / 0.5306 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001601/0.4361, allocations: 0.5474 MB / 0.5311 GB, free: 6.742 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.002659/0.4388, allocations: 2.62 MB / 0.5337 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.4403, allocations: 479.3 kB / 0.5341 GB, free: 4.031 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004543/0.4408, allocations: 196.1 kB / 0.5343 GB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04822/0.489, allocations: 26.77 MB / 0.5604 GB, free: 9.125 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.4891, allocations: 34.56 kB / 0.5605 GB, free: 9.082 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.465e-06/0.4891, allocations: 0.9375 kB / 0.5605 GB, free: 9.082 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003062/0.4922, allocations: 0.8252 MB / 0.5613 GB, free: 8.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.4923, allocations: 106.8 kB / 0.5614 GB, free: 8.121 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003895/0.4927, allocations: 312.5 kB / 0.5617 GB, free: 7.812 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.4927, allocations: 29.7 kB / 0.5617 GB, free: 7.777 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.4929, allocations: 204.2 kB / 0.5619 GB, free: 7.574 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.862e-05/0.493, allocations: 82.84 kB / 0.562 GB, free: 7.492 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.4931, allocations: 69.59 kB / 0.5621 GB, free: 7.418 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.4932, allocations: 346.8 kB / 0.5624 GB, free: 7.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004256/0.4936, allocations: 149.7 kB / 0.5625 GB, free: 6.926 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004967/0.4942, allocations: 246.8 kB / 0.5628 GB, free: 6.645 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008668/0.495, allocations: 382.9 kB / 0.5631 GB, free: 6.238 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.495, allocations: 0 / 0.5631 GB, free: 6.238 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001093/0.4961, allocations: 445.1 kB / 0.5636 GB, free: 5.801 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.4962, allocations: 11.94 kB / 0.5636 GB, free: 5.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.4962, allocations: 4 kB / 0.5636 GB, free: 5.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.4962, allocations: 7.938 kB / 0.5636 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003554/0.4966, allocations: 83.88 kB / 0.5637 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.542e-05/0.4966, allocations: 7.984 kB / 0.5637 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003869/0.497, allocations: 59.66 kB / 0.5637 GB, free: 5.629 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.423e-05/0.4971, allocations: 19.98 kB / 0.5637 GB, free: 5.609 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.0001863/0.4972, allocations: 153.8 kB / 0.5639 GB, free: 5.449 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.121e-05/0.4973, allocations: 31.62 kB / 0.5639 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002414/0.4998, allocations: 1.928 MB / 0.5658 GB, free: 3.488 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.083e-05/0.4998, allocations: 31.89 kB / 0.5658 GB, free: 3.457 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.4998, allocations: 0 / 0.5658 GB, free: 3.457 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/0.4998, allocations: 8 kB / 0.5658 GB, free: 3.449 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009998/0.5008, allocations: 1.012 MB / 0.5668 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.5009, allocations: 0 / 0.5668 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003319/0.5012, allocations: 75.88 kB / 0.5669 GB, free: 2.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.5012, allocations: 0 / 0.5669 GB, free: 2.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.622e-05/0.5012, allocations: 11.98 kB / 0.5669 GB, free: 2.309 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.5012, allocations: 3.938 kB / 0.5669 GB, free: 2.305 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.5013, allocations: 4 kB / 0.5669 GB, free: 2.301 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.5028, allocations: 1.092 MB / 0.568 GB, free: 1.191 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.5029, allocations: 167.8 kB / 0.5681 GB, free: 1.008 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.106e-05/0.503, allocations: 27.75 kB / 0.5682 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000338/0.5034, allocations: 49.95 kB / 0.5682 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.348e-05/0.5035, allocations: 31.95 kB / 0.5682 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.5035, allocations: 12 kB / 0.5683 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003335/0.5038, allocations: 331.1 kB / 0.5686 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5038, allocations: 0 / 0.5686 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003591/0.5074, allocations: 1.003 MB / 0.5696 GB, free: 15.56 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.007965/0.5154, allocations: 2.724 MB / 0.5722 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.5171, allocations: 0.6378 MB / 0.5728 GB, free: 12.28 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.5172, allocations: 0 / 0.5728 GB, free: 12.28 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007407/0.5179, allocations: 0.521 MB / 0.5733 GB, free: 11.76 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.5192, allocations: 219.7 kB / 0.5736 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008968/0.5282, allocations: 5.389 MB / 0.5788 GB, free: 6.027 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/0.5287, allocations: 0.9716 MB / 0.5798 GB, free: 5.027 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005014/0.5293, allocations: 274.4 kB / 0.58 GB, free: 4.762 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003084/0.5296, allocations: 263.3 kB / 0.5803 GB, free: 4.504 MB / 430.1 MB Notification: Performance of SimCode: time 2.835e-06/0.5296, allocations: 0 / 0.5803 GB, free: 4.504 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07226/0.6018, allocations: 46.46 MB / 0.6256 GB, free: 6.242 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001976/0.6021, allocations: 251.3 kB / 0.6259 GB, free: 5.988 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.356/4.958, allocations: 64 / 0.6259 GB, free: 5.988 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 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.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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches