Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo", uses=false) Using package OpenHydraulics with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.DirectionalValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.DirectionalValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 190.6 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.181/1.181, allocations: 205.1 MB / 222.1 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04993/0.04993, allocations: 11.84 MB / 281.3 MB, free: 9.594 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenHydraulics requested package Modelica of version 3.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 75.7 kB / 341.4 MB, free: 22.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06703/0.06839, allocations: 49.21 MB / 390.6 MB, free: 4.941 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.007847/0.07627, allocations: 7.867 MB / 398.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004938/0.08124, allocations: 3.452 MB / 402 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007844/0.08204, allocations: 19.94 kB / 402 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006806/0.08277, allocations: 242.7 kB / 402.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001279/0.08407, allocations: 0.5321 MB / 402.7 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.08567, allocations: 0.7674 MB / 403.5 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001722/0.0874, allocations: 1.852 MB / 405.4 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006398/0.08805, allocations: 0.5466 MB / 405.9 MB, free: 5.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007068/0.08877, allocations: 0.6383 MB / 406.6 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007083/0.08948, allocations: 0.7469 MB / 407.3 MB, free: 4.199 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001441/0.08964, allocations: 124 kB / 407.4 MB, free: 4.078 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006219/0.09026, allocations: 407.7 kB / 407.8 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002532/0.09053, allocations: 342.8 kB / 408.2 MB, free: 3.344 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000556/0.09109, allocations: 0.7308 MB / 408.9 MB, free: 2.609 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001656/0.09275, allocations: 1.955 MB / 410.8 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.09277, allocations: 0 / 410.8 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.09278, allocations: 0 / 410.8 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.09279, allocations: 0 / 410.8 MB, free: 0.6445 MB / 302.1 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.002361/0.09516, allocations: 1.604 MB / 412.4 MB, free: 14.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.09521, allocations: 23.83 kB / 412.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001539/0.09537, allocations: 152.1 kB / 412.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002676/0.09564, allocations: 151.2 kB / 412.8 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009614/0.09661, allocations: 0.8189 MB / 413.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.711e-05/0.09668, allocations: 77.94 kB / 413.7 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.09682, allocations: 99.98 kB / 413.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/0.09847, allocations: 1.114 MB / 414.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.0985, allocations: 3.984 kB / 414.9 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.642e-05/0.0986, allocations: 40 kB / 414.9 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/0.09862, allocations: 24 kB / 414.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.1002, allocations: 1.015 MB / 416 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005727/0.1059, allocations: 5.999 MB / 422 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.107, allocations: 0.7459 MB / 422.7 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006061/0.1076, allocations: 382.7 kB / 423.1 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002086/0.1078, allocations: 186.8 kB / 423.3 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.1079, allocations: 47.16 kB / 423.3 MB, free: 3.301 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 2.344e-06/0.1079, allocations: 0 / 423.3 MB, free: 3.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.00425/0.1121, allocations: 2.269 MB / 425.6 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.1122, allocations: 60.06 kB / 425.6 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1145/0.2267, allocations: 1.056 MB / 426.7 MB, free: 40.87 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000134/0.2269, allocations: 47.2 kB / 426.7 MB, free: 40.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003024/0.2272, allocations: 0.5311 MB / 427.3 MB, free: 40.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.2274, allocations: 267 kB / 427.5 MB, free: 40.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002649/0.2277, allocations: 169.6 kB / 427.7 MB, free: 40.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.385e-05/0.2277, allocations: 341.9 kB / 428 MB, free: 40.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005973/0.2283, allocations: 346.7 kB / 428.4 MB, free: 40.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005544/0.2289, allocations: 0.4918 MB / 428.9 MB, free: 40 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005274/0.2342, allocations: 1.82 MB / 430.7 MB, free: 39.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.2342, allocations: 2.344 kB / 430.7 MB, free: 39.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001571/0.2358, allocations: 1.009 MB / 431.7 MB, free: 38.85 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.2358, allocations: 8.125 kB / 431.7 MB, free: 38.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.2358, allocations: 12.5 kB / 431.7 MB, free: 38.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.2358, allocations: 10.03 kB / 431.7 MB, free: 38.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008535/0.2367, allocations: 224.2 kB / 431.9 MB, free: 38.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/0.2367, allocations: 12.23 kB / 431.9 MB, free: 38.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006348/0.2374, allocations: 62.5 kB / 432 MB, free: 38.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.054e-05/0.2375, allocations: 42.06 kB / 432 MB, free: 38.8 MB / 318.1 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.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] 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] 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.0005477/0.238, allocations: 427.8 kB / 432.5 MB, free: 38.55 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.2382, allocations: 118 kB / 432.6 MB, free: 38.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001536/0.2397, allocations: 0.9563 MB / 433.5 MB, free: 38.08 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.2397, allocations: 9.875 kB / 433.5 MB, free: 38.08 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.2397, allocations: 4.812 kB / 433.5 MB, free: 38.08 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.2397, allocations: 3.656 kB / 433.6 MB, free: 38.08 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002909/0.2427, allocations: 2.304 MB / 435.9 MB, free: 36.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.2427, allocations: 2.531 kB / 435.9 MB, free: 36.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007782/0.2435, allocations: 192.5 kB / 436 MB, free: 36.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.2435, allocations: 5.391 kB / 436.1 MB, free: 36.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.646e-05/0.2435, allocations: 27.09 kB / 436.1 MB, free: 36.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.743e-06/0.2436, allocations: 6.547 kB / 436.1 MB, free: 36.81 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.2436, allocations: 7 kB / 436.1 MB, free: 36.81 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001875/0.2454, allocations: 1.359 MB / 437.5 MB, free: 36.1 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003139/0.2458, allocations: 275 kB / 437.7 MB, free: 35.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001335/0.2459, allocations: 27.53 kB / 437.7 MB, free: 35.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004758/0.2464, allocations: 40.28 kB / 437.8 MB, free: 35.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.2465, allocations: 59.58 kB / 437.8 MB, free: 35.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.362e-05/0.2466, allocations: 31.67 kB / 437.9 MB, free: 35.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008265/0.2474, allocations: 0.7407 MB / 438.6 MB, free: 35.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2474, allocations: 0 / 438.6 MB, free: 35.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008183/0.2482, allocations: 306.2 kB / 438.9 MB, free: 35.5 MB / 318.1 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.002751/0.251, allocations: 2.269 MB / 441.2 MB, free: 34.17 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.2526, allocations: 0.8714 MB / 442.1 MB, free: 33.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2526, allocations: 0 / 442.1 MB, free: 33.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005012/0.2532, allocations: 401.6 kB / 442.4 MB, free: 33.72 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.2545, allocations: 360.3 kB / 442.8 MB, free: 33.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/0.2657, allocations: 10.27 MB / 453.1 MB, free: 26.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004338/0.2662, allocations: 1.155 MB / 454.2 MB, free: 25.02 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007317/0.2669, allocations: 216.1 kB / 454.4 MB, free: 24.8 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000493/0.2674, allocations: 475.2 kB / 454.9 MB, free: 24.34 MB / 318.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2674, allocations: 4 kB / 454.9 MB, free: 24.34 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03853/0.306, allocations: 28.15 MB / 483 MB, free: 12.13 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.3062, allocations: 243.7 kB / 483.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.284/2.59, allocations: 0 / 483.3 MB, free: 11.88 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe 2>&1)