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.0008371/0.0008368, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.004817/0.004817, allocations: 172.8 kB / 16.26 MB, free: 6.613 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.174/1.174, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05025/0.05025, allocations: 11.86 MB / 282.6 MB, free: 9.367 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.000505/0.000505, allocations: 20 kB / 343.6 MB, free: 22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06724/0.06775, allocations: 50.21 MB / 393.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.006326/0.07411, allocations: 7.401 MB / 401.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004514/0.07865, allocations: 3.496 MB / 404.7 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005909/0.07926, allocations: 19.94 kB / 404.8 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005313/0.0798, allocations: 230.8 kB / 405 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001076/0.08089, allocations: 0.5359 MB / 405.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.08232, allocations: 0.7172 MB / 406.2 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001701/0.08403, allocations: 1.84 MB / 408.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006165/0.08466, allocations: 499.4 kB / 408.6 MB, free: 4.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006491/0.08532, allocations: 0.5172 MB / 409.1 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007793/0.08611, allocations: 0.657 MB / 409.7 MB, free: 3.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001383/0.08625, allocations: 52 kB / 409.8 MB, free: 3.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006429/0.0869, allocations: 319.7 kB / 410.1 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002502/0.08717, allocations: 262.8 kB / 410.4 MB, free: 3.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005942/0.08777, allocations: 0.6621 MB / 411 MB, free: 2.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001617/0.08939, allocations: 1.849 MB / 412.9 MB, free: 0.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.0894, allocations: 0 / 412.9 MB, free: 0.625 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.08941, allocations: 0 / 412.9 MB, free: 0.625 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.282e-05/0.08945, allocations: 4 kB / 412.9 MB, free: 0.6211 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.002272/0.09173, allocations: 1.359 MB / 414.2 MB, free: 15.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.09178, allocations: 8.031 kB / 414.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002058/0.09199, allocations: 148.2 kB / 414.4 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002639/0.09226, allocations: 151.2 kB / 414.5 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009859/0.09325, allocations: 0.8305 MB / 415.4 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.252e-05/0.09332, allocations: 74 kB / 415.4 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.09347, allocations: 96 kB / 415.5 MB, free: 13.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/0.09513, allocations: 1.122 MB / 416.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.09516, allocations: 0 / 416.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.973e-05/0.09525, allocations: 36 kB / 416.7 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/0.09527, allocations: 24 kB / 416.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001557/0.09683, allocations: 1.015 MB / 417.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005683/0.1025, allocations: 6.003 MB / 423.7 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.1036, allocations: 0.7486 MB / 424.5 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006156/0.1042, allocations: 386.7 kB / 424.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001969/0.1045, allocations: 190.8 kB / 425 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.1045, allocations: 47.16 kB / 425.1 MB, free: 3.523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 1.994e-06/0.1045, allocations: 0 / 425.1 MB, free: 3.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.004196/0.1087, allocations: 2.292 MB / 427.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.1087, allocations: 60.06 kB / 427.4 MB, free: 1.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.1099, allocations: 1.066 MB / 428.5 MB, free: 20 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.1207/0.2306, allocations: 33.08 kB / 428.5 MB, free: 39.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004214/0.2311, allocations: 0.5292 MB / 429.1 MB, free: 39.53 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.2312, allocations: 266.9 kB / 429.3 MB, free: 39.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.362e-05/0.2313, allocations: 77.84 kB / 429.4 MB, free: 39.44 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.111e-05/0.2314, allocations: 336.9 kB / 429.7 MB, free: 39.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005324/0.2319, allocations: 352.2 kB / 430.1 MB, free: 39.13 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005251/0.2325, allocations: 0.4927 MB / 430.6 MB, free: 38.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005226/0.2377, allocations: 1.849 MB / 432.4 MB, free: 38.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.2377, allocations: 0.9688 kB / 432.4 MB, free: 38.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00154/0.2393, allocations: 1.015 MB / 433.4 MB, free: 38.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2393, allocations: 8.203 kB / 433.4 MB, free: 38.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.2393, allocations: 9.312 kB / 433.5 MB, free: 38.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.2393, allocations: 18.12 kB / 433.5 MB, free: 38.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008067/0.2401, allocations: 223.6 kB / 433.7 MB, free: 38.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.2402, allocations: 10.91 kB / 433.7 MB, free: 38.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000575/0.2408, allocations: 63.23 kB / 433.8 MB, free: 38.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-05/0.2408, allocations: 43.64 kB / 433.8 MB, free: 38.29 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.0005429/0.2414, allocations: 427.6 kB / 434.2 MB, free: 38.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.2415, allocations: 111.3 kB / 434.3 MB, free: 37.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.243, allocations: 0.9654 MB / 435.3 MB, free: 37.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.2431, allocations: 12.5 kB / 435.3 MB, free: 37.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2431, allocations: 1.578 kB / 435.3 MB, free: 37.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.2431, allocations: 7.938 kB / 435.3 MB, free: 37.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003055/0.2461, allocations: 2.307 MB / 437.6 MB, free: 36.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2462, allocations: 3 kB / 437.6 MB, free: 36.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007233/0.2469, allocations: 186.9 kB / 437.8 MB, free: 36.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.2469, allocations: 6.5 kB / 437.8 MB, free: 36.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.843e-05/0.247, allocations: 25.5 kB / 437.8 MB, free: 36.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.212e-06/0.247, allocations: 5.531 kB / 437.8 MB, free: 36.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.247, allocations: 2.188 kB / 437.8 MB, free: 36.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.2488, allocations: 1.382 MB / 439.2 MB, free: 35.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003302/0.2491, allocations: 290.1 kB / 439.5 MB, free: 35.35 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.2492, allocations: 19.59 kB / 439.5 MB, free: 35.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004435/0.2497, allocations: 37.12 kB / 439.6 MB, free: 35.33 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.2498, allocations: 66.94 kB / 439.6 MB, free: 35.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.025e-05/0.2498, allocations: 32.95 kB / 439.7 MB, free: 35.31 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008144/0.2507, allocations: 0.7407 MB / 440.4 MB, free: 35 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2507, allocations: 0 / 440.4 MB, free: 35 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000768/0.2514, allocations: 309.8 kB / 440.7 MB, free: 34.96 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.002632/0.2541, allocations: 2.279 MB / 443 MB, free: 33.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.2552, allocations: 0.7827 MB / 443.8 MB, free: 33.33 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2552, allocations: 5.406 kB / 443.8 MB, free: 33.33 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004963/0.2557, allocations: 405.9 kB / 444.2 MB, free: 33.19 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.2571, allocations: 330.4 kB / 444.5 MB, free: 33.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/0.2679, allocations: 10.39 MB / 454.9 MB, free: 25.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.2683, allocations: 1.159 MB / 456 MB, free: 24.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006031/0.2689, allocations: 220.1 kB / 456.3 MB, free: 24.17 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000468/0.2694, allocations: 467.2 kB / 456.7 MB, free: 23.71 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2694, allocations: 0 / 456.7 MB, free: 23.71 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03058/0.3, allocations: 27.17 MB / 483.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/0.3002, allocations: 242.8 kB / 484.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.162/2.462, allocations: 0 / 484.1 MB, free: 12.25 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)