Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo", uses=false) Using package OpenHydraulics with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTest,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest") translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTest,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 175 kB / 15.43 MB, free: 5.871 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 225.7 MB / 241.9 MB, free: 124 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000739/0.000739, allocations: 92.88 kB / 293.1 MB, free: 12.84 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05337/0.05337, allocations: 12.01 MB / 356.2 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002793, allocations: 8.562 kB / 419.9 MB, free: 87.04 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07419/0.07448, allocations: 53.06 MB / 473 MB, free: 36.39 MB / 330.7 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.005001/0.07951, allocations: 6.957 MB / 480 MB, free: 29.4 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00423/0.08376, allocations: 4.673 MB / 484.6 MB, free: 24.45 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004412/0.08422, allocations: 19.88 kB / 484.7 MB, free: 24.43 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004626/0.08469, allocations: 242.8 kB / 484.9 MB, free: 24.19 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008412/0.08555, allocations: 0.536 MB / 485.4 MB, free: 23.65 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.08682, allocations: 0.7486 MB / 486.2 MB, free: 22.9 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001129/0.08796, allocations: 1.837 MB / 488 MB, free: 21.05 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004768/0.08845, allocations: 495.5 kB / 488.5 MB, free: 20.55 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004361/0.08889, allocations: 0.525 MB / 489 MB, free: 20.02 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005292/0.08943, allocations: 0.6532 MB / 489.7 MB, free: 19.37 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.915e-05/0.08954, allocations: 52 kB / 489.7 MB, free: 19.32 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005113/0.09006, allocations: 307.7 kB / 490 MB, free: 19.02 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001854/0.09025, allocations: 266.8 kB / 490.3 MB, free: 18.75 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004165/0.09068, allocations: 0.6621 MB / 491 MB, free: 18.08 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.09185, allocations: 1.849 MB / 492.8 MB, free: 16.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.09186, allocations: 0 / 492.8 MB, free: 16.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09187, allocations: 4 kB / 492.8 MB, free: 16.22 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.09189, allocations: 0 / 492.8 MB, free: 16.22 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.001814/0.09371, allocations: 1.359 MB / 494.2 MB, free: 14.81 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.09375, allocations: 8.031 kB / 494.2 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002027/0.09396, allocations: 151.2 kB / 494.3 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008244/0.09479, allocations: 0.8152 MB / 495.1 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.899e-05/0.09485, allocations: 77.94 kB / 495.2 MB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.09497, allocations: 99.94 kB / 495.3 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.09644, allocations: 1.114 MB / 496.4 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.09647, allocations: 4 kB / 496.4 MB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.199e-05/0.09655, allocations: 40 kB / 496.5 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.09657, allocations: 20 kB / 496.5 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.098, allocations: 1.015 MB / 497.5 MB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004534/0.1025, allocations: 6.007 MB / 0.4917 GB, free: 4.703 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009587/0.1035, allocations: 0.743 MB / 0.4924 GB, free: 3.953 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000554/0.1041, allocations: 390.6 kB / 0.4928 GB, free: 3.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001706/0.1043, allocations: 190.8 kB / 0.493 GB, free: 3.348 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.1043, allocations: 39.22 kB / 0.493 GB, free: 3.301 MB / 330.7 MB Notification: Performance of pre-optimization done (n=72): time 1.923e-06/0.1043, allocations: 0 / 0.493 GB, free: 3.301 MB / 330.7 MB Notification: Performance of matching and sorting (n=76): time 0.003847/0.1082, allocations: 2.29 MB / 0.4953 GB, free: 0.9609 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.1082, allocations: 60.06 kB / 0.4953 GB, free: 0.8867 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.1093, allocations: 1.054 MB / 0.4963 GB, free: 15.81 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.381e-05/0.1093, allocations: 37.7 kB / 0.4964 GB, free: 15.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003967/0.1097, allocations: 0.5347 MB / 0.4969 GB, free: 15.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/0.1099, allocations: 268.1 kB / 0.4972 GB, free: 14.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.41e-05/0.11, allocations: 16 kB / 0.4972 GB, free: 14.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1101, allocations: 338 kB / 0.4975 GB, free: 14.61 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005884/0.1107, allocations: 350.7 kB / 0.4978 GB, free: 14.26 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006724/0.1114, allocations: 0.4921 MB / 0.4983 GB, free: 13.69 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005734/0.1172, allocations: 1.836 MB / 0.5001 GB, free: 11.79 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1172, allocations: 0 / 0.5001 GB, free: 11.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001635/0.1188, allocations: 1.007 MB / 0.5011 GB, free: 10.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.1188, allocations: 8.719 kB / 0.5011 GB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.1189, allocations: 4 kB / 0.5011 GB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.1189, allocations: 15.94 kB / 0.5011 GB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009317/0.1198, allocations: 227.6 kB / 0.5013 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/0.1199, allocations: 15.98 kB / 0.5013 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005812/0.1204, allocations: 55.97 kB / 0.5014 GB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-05/0.1205, allocations: 35.98 kB / 0.5014 GB, free: 10.41 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: idealPump.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of rotation of pump" type: Real valve4_3pos.j3.volumeClosed.port[2].p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))))))))))) start = valve4_3pos.P2B.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] valve4_3pos.j2.volumeClosed.port[2].p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))))))))))) start = valve4_3pos.P2A.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 (valve4_3pos.A2T.data.zetaLaminarKnown,valve4_3pos.P2B.data.zetaLaminarKnown,valve4_3pos.B2T.data.zetaLaminarKnown,valve4_3pos.P2A.data.zetaLaminarKnown,restriction.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 108 * 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.0006027/0.1211, allocations: 435.8 kB / 0.5019 GB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.1213, allocations: 110.6 kB / 0.502 GB, free: 9.875 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001735/0.123, allocations: 0.9697 MB / 0.5029 GB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.176e-06/0.123, allocations: 8 kB / 0.5029 GB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1231, allocations: 0 / 0.5029 GB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.1231, allocations: 3.984 kB / 0.5029 GB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003291/0.1264, allocations: 2.309 MB / 0.5052 GB, free: 6.465 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1264, allocations: 0 / 0.5052 GB, free: 6.465 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000863/0.1273, allocations: 187.8 kB / 0.5053 GB, free: 6.281 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.1273, allocations: 4 kB / 0.5054 GB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.956e-05/0.1273, allocations: 27.98 kB / 0.5054 GB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.1273, allocations: 4 kB / 0.5054 GB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.1274, allocations: 7.984 kB / 0.5054 GB, free: 6.238 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.1294, allocations: 1.371 MB / 0.5067 GB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000366/0.1298, allocations: 287.6 kB / 0.507 GB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.1299, allocations: 23.98 kB / 0.507 GB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000504/0.1304, allocations: 47.91 kB / 0.5071 GB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.1305, allocations: 60.45 kB / 0.5071 GB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-05/0.1306, allocations: 31.98 kB / 0.5072 GB, free: 4.371 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009014/0.1315, allocations: 0.7252 MB / 0.5079 GB, free: 3.637 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1315, allocations: 0 / 0.5079 GB, free: 3.637 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007869/0.1323, allocations: 303.9 kB / 0.5082 GB, free: 3.34 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (idealPump.phi,circuitTank.volumeOpen.m,valve4_3pos.j2.volumeClosed.port[2].p,valve4_3pos.j3.volumeClosed.port[2].p,valve4_3pos.dynamicResponse.y,valve4_3pos.dynamicResponse.yd) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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 Backend phase and start with SimCode phase: time 0.0009822/0.1333, allocations: 0.5106 MB / 0.5087 GB, free: 2.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.1346, allocations: 0.7827 MB / 0.5094 GB, free: 2.148 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1346, allocations: 1.438 kB / 0.5094 GB, free: 2.148 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006163/0.1353, allocations: 403.9 kB / 0.5098 GB, free: 1.758 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.1368, allocations: 323.2 kB / 0.5101 GB, free: 1.449 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003523/0.1403, allocations: 2.911 MB / 0.513 GB, free: 14.49 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007212/0.1411, allocations: 1.163 MB / 0.5141 GB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007306/0.1418, allocations: 220.1 kB / 0.5143 GB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002843/0.1421, allocations: 107.4 kB / 0.5144 GB, free: 12.98 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.1421, allocations: 0 / 0.5144 GB, free: 12.98 MB / 362.7 MB Notification: Performance of Templates: time 0.1764/0.3185, allocations: 16.95 MB / 0.531 GB, free: 58.21 MB / 362.7 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.makefile (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe 2>&1)