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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001904/0.001904, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002637/0.002637, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.538/1.538, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2541/0.2541, allocations: 44.92 MB / 358.8 MB, free: 6.262 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002419/0.002419, allocations: 63.91 kB / 0.4931 GB, free: 10.7 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3152, allocations: 65.47 MB / 0.557 GB, free: 7.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03804/0.3532, allocations: 28.67 MB / 0.585 GB, free: 10.98 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01867/0.3719, allocations: 13.39 MB / 0.5981 GB, free: 13.55 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004898/0.3724, allocations: 23.81 kB / 0.5981 GB, free: 13.52 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009156/0.3733, allocations: 250.4 kB / 0.5984 GB, free: 13.28 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01109/0.3844, allocations: 3.67 MB / 0.6019 GB, free: 9.605 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007002/0.3914, allocations: 2.402 MB / 0.6043 GB, free: 7.207 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001518/0.3929, allocations: 0.9119 MB / 0.6052 GB, free: 6.293 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000542/0.3934, allocations: 212.9 kB / 0.6054 GB, free: 6.078 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001045/0.3945, allocations: 462.2 kB / 0.6058 GB, free: 5.625 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005568/0.395, allocations: 278.8 kB / 0.6061 GB, free: 5.352 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.833e-05/0.3951, allocations: 32 kB / 0.6061 GB, free: 5.32 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01524/0.4104, allocations: 7.274 MB / 0.6132 GB, free: 14.04 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000224/0.4106, allocations: 99.66 kB / 0.6133 GB, free: 13.94 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003965/0.411, allocations: 223 kB / 0.6135 GB, free: 13.72 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01068/0.4217, allocations: 4.435 MB / 0.6179 GB, free: 9.273 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.4217, allocations: 4 kB / 0.6179 GB, free: 9.27 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4217, allocations: 0 / 0.6179 GB, free: 9.27 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.898e-05/0.4217, allocations: 0 / 0.6179 GB, free: 9.27 MB / 462.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.003595/0.4253, allocations: 1.211 MB / 0.6191 GB, free: 8.023 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.4254, allocations: 12.03 kB / 0.6191 GB, free: 8.012 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.4255, allocations: 62.72 kB / 0.6191 GB, free: 7.941 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001859/0.4273, allocations: 216.5 kB / 0.6193 GB, free: 7.73 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006445/0.428, allocations: 313.2 kB / 0.6196 GB, free: 7.395 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.637e-05/0.428, allocations: 29.03 kB / 0.6197 GB, free: 7.367 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.494e-05/0.4281, allocations: 28.12 kB / 0.6197 GB, free: 7.34 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.4298, allocations: 0.5903 MB / 0.6203 GB, free: 6.711 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.4298, allocations: 0 / 0.6203 GB, free: 6.711 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.4298, allocations: 12 kB / 0.6203 GB, free: 6.699 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.62e-05/0.4299, allocations: 8 kB / 0.6203 GB, free: 6.691 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001756/0.4316, allocations: 0.5488 MB / 0.6208 GB, free: 6.141 MB / 462.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.003783/0.4354, allocations: 2.527 MB / 0.6233 GB, free: 3.402 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.4371, allocations: 458.1 kB / 0.6237 GB, free: 2.945 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004873/0.4376, allocations: 184.7 kB / 0.6239 GB, free: 2.762 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04744/0.485, allocations: 13.15 MB / 0.6367 GB, free: 5.59 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.052e-05/0.4851, allocations: 42.56 kB / 0.6368 GB, free: 5.539 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.174e-06/0.4851, allocations: 0 / 0.6368 GB, free: 5.539 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003155/0.4883, allocations: 0.817 MB / 0.6376 GB, free: 4.715 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.82e-05/0.4883, allocations: 106.8 kB / 0.6377 GB, free: 4.586 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004208/0.4888, allocations: 316.5 kB / 0.638 GB, free: 4.273 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.277e-05/0.4888, allocations: 29.7 kB / 0.638 GB, free: 4.238 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.489, allocations: 208.5 kB / 0.6382 GB, free: 4.031 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.4891, allocations: 95.2 kB / 0.6383 GB, free: 3.938 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.4892, allocations: 69.69 kB / 0.6384 GB, free: 3.863 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.4894, allocations: 338.8 kB / 0.6387 GB, free: 3.523 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000461/0.4899, allocations: 151.9 kB / 0.6388 GB, free: 3.375 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005573/0.4904, allocations: 239.9 kB / 0.6391 GB, free: 3.102 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009456/0.4914, allocations: 378 kB / 0.6394 GB, free: 2.699 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.4914, allocations: 0 / 0.6394 GB, free: 2.699 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001163/0.4925, allocations: 448.8 kB / 0.6398 GB, free: 2.254 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.4926, allocations: 4 kB / 0.6399 GB, free: 2.25 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.4926, allocations: 7.984 kB / 0.6399 GB, free: 2.242 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.594e-05/0.4926, allocations: 7.938 kB / 0.6399 GB, free: 2.234 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003737/0.493, allocations: 92.19 kB / 0.64 GB, free: 2.145 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.493, allocations: 4 kB / 0.64 GB, free: 2.141 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000317/0.4933, allocations: 51.75 kB / 0.64 GB, free: 2.09 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.821e-05/0.4933, allocations: 19.98 kB / 0.64 GB, free: 2.07 MB / 478.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.0002086/0.4935, allocations: 157.7 kB / 0.6402 GB, free: 1.906 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.4936, allocations: 39.77 kB / 0.6402 GB, free: 1.867 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003005/0.4967, allocations: 1.995 MB / 0.6422 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-05/0.4967, allocations: 27.95 kB / 0.6422 GB, free: 15.83 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.4967, allocations: 0 / 0.6422 GB, free: 15.83 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.4967, allocations: 0 / 0.6422 GB, free: 15.83 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00126/0.498, allocations: 1.023 MB / 0.6432 GB, free: 14.76 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.498, allocations: 0 / 0.6432 GB, free: 14.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003841/0.4984, allocations: 79.88 kB / 0.6433 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.4984, allocations: 4 kB / 0.6433 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.4984, allocations: 11.92 kB / 0.6433 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.625e-06/0.4984, allocations: 4 kB / 0.6433 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.4984, allocations: 0 / 0.6433 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.5002, allocations: 1.124 MB / 0.6444 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.5003, allocations: 91.16 kB / 0.6445 GB, free: 13.43 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.952e-05/0.5004, allocations: 31.72 kB / 0.6445 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002955/0.5007, allocations: 23.97 kB / 0.6445 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.5008, allocations: 39.94 kB / 0.6446 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.5009, allocations: 8 kB / 0.6446 GB, free: 13.33 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004338/0.5013, allocations: 335 kB / 0.6449 GB, free: 13 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5013, allocations: 0 / 0.6449 GB, free: 13 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003041/0.5044, allocations: 1.01 MB / 0.6459 GB, free: 11.99 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.007209/0.5116, allocations: 2.741 MB / 0.6486 GB, free: 9.223 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.5131, allocations: 0.6106 MB / 0.6491 GB, free: 8.613 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.5131, allocations: 0 / 0.6491 GB, free: 8.613 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007544/0.5138, allocations: 433.2 kB / 0.6496 GB, free: 8.188 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.5151, allocations: 221.6 kB / 0.6498 GB, free: 7.98 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009329/0.5244, allocations: 5.066 MB / 0.6547 GB, free: 2.762 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007209/0.5252, allocations: 0.9716 MB / 0.6557 GB, free: 1.762 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005616/0.5257, allocations: 270.9 kB / 0.6559 GB, free: 1.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004019/0.5261, allocations: 267.3 kB / 0.6562 GB, free: 1.238 MB / 494.1 MB Notification: Performance of SimCode: time 1.834e-06/0.5261, allocations: 0 / 0.6562 GB, free: 1.238 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09982/0.6259, allocations: 47.77 MB / 0.7028 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.65/15.27, allocations: 10.03 kB / 0.7028 GB, free: 1.629 MB / 0.5294 GB " [Timeout remaining time 645] (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 --stepSize=0.000599281 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.990764629095793]