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.005377/0.005377, allocations: 104.6 kB / 15.74 MB, free: 6.492 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.001234/0.001234, allocations: 190.1 kB / 16.67 MB, free: 6.379 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.32/1.32, allocations: 205.1 MB / 222.6 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05598/0.05598, allocations: 11.84 MB / 281.7 MB, free: 9.398 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.001802/0.001802, allocations: 74.23 kB / 391.8 MB, free: 4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2555, allocations: 49.23 MB / 441.1 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.005932/0.2615, allocations: 6.092 MB / 447.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005556/0.2671, allocations: 3.269 MB / 450.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008491/0.268, allocations: 19.56 kB / 450.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007431/0.2687, allocations: 286.9 kB / 450.7 MB, free: 13.28 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001387/0.2701, allocations: 0.5866 MB / 451.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002057/0.2722, allocations: 0.8479 MB / 452.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001911/0.2741, allocations: 1.845 MB / 454 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006944/0.2748, allocations: 0.5523 MB / 454.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008686/0.2757, allocations: 0.6429 MB / 455.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008368/0.2766, allocations: 0.7386 MB / 455.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001679/0.2767, allocations: 124.6 kB / 456.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007906/0.2775, allocations: 407.5 kB / 456.5 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002943/0.2778, allocations: 344.6 kB / 456.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006331/0.2785, allocations: 0.7337 MB / 457.5 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002051/0.2805, allocations: 1.971 MB / 459.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.2806, allocations: 0 / 459.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2806, allocations: 1.188 kB / 459.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.768e-05/0.2806, allocations: 0 / 459.5 MB, free: 7.559 MB / 334.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.002931/0.2835, allocations: 1.603 MB / 461.1 MB, free: 6.324 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.2836, allocations: 17.42 kB / 461.1 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001811/0.2838, allocations: 153.3 kB / 461.3 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003274/0.2841, allocations: 155.3 kB / 461.4 MB, free: 6.113 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001236/0.2853, allocations: 0.8249 MB / 462.3 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.591e-05/0.2854, allocations: 78.66 kB / 462.3 MB, free: 5.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001392/0.2856, allocations: 94.53 kB / 462.4 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00205/0.2876, allocations: 1.117 MB / 463.5 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.69e-05/0.2877, allocations: 5.375 kB / 463.5 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.567e-05/0.2878, allocations: 39.75 kB / 463.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.665e-05/0.2878, allocations: 23.34 kB / 463.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.2896, allocations: 1.014 MB / 464.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006453/0.296, allocations: 5.995 MB / 470.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.2972, allocations: 0.7406 MB / 471.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000647/0.2978, allocations: 394.6 kB / 471.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002163/0.298, allocations: 186.8 kB / 471.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.2981, allocations: 43.16 kB / 472 MB, free: 11.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.565e-06/0.2981, allocations: 0 / 472 MB, free: 11.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=76): time 0.004516/0.3026, allocations: 2.27 MB / 474.2 MB, free: 9.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.3027, allocations: 60.06 kB / 474.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/0.3039, allocations: 1.062 MB / 475.4 MB, free: 8.113 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.755e-05/0.304, allocations: 41.64 kB / 475.4 MB, free: 8.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003741/0.3043, allocations: 0.5502 MB / 476 MB, free: 7.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001873/0.3045, allocations: 264.2 kB / 476.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002374/0.3048, allocations: 166.5 kB / 476.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3049, allocations: 337.9 kB / 476.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005526/0.3055, allocations: 352.7 kB / 477 MB, free: 6.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006527/0.3061, allocations: 496 kB / 477.5 MB, free: 5.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005501/0.3116, allocations: 1.811 MB / 479.3 MB, free: 3.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.3117, allocations: 4 kB / 479.3 MB, free: 3.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00168/0.3133, allocations: 1.011 MB / 480.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.3134, allocations: 8 kB / 480.4 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.925e-05/0.3134, allocations: 7.938 kB / 480.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/0.3134, allocations: 12 kB / 480.4 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008756/0.3143, allocations: 228.2 kB / 480.6 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.763e-05/0.3143, allocations: 11.94 kB / 480.6 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000593/0.3149, allocations: 35.98 kB / 480.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.876e-05/0.315, allocations: 39.98 kB / 480.7 MB, free: 2.594 MB / 350.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 = 0.0 start = valve4_3pos.P2A.p_init unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] valve4_3pos.j3.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = valve4_3pos.P2B.p_init unit = "Pa" fixed = true nominal = 1e5 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.0006063/0.3156, allocations: 370.8 kB / 481.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.3158, allocations: 110.6 kB / 481.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001637/0.3174, allocations: 0.9465 MB / 482.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.3175, allocations: 11.94 kB / 482.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3175, allocations: 0 / 482.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.3175, allocations: 11.92 kB / 482.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003359/0.3208, allocations: 2.3 MB / 484.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.3209, allocations: 4 kB / 484.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007951/0.3217, allocations: 188 kB / 484.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.3217, allocations: 7.938 kB / 484.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.9e-05/0.3218, allocations: 27.97 kB / 484.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.3218, allocations: 11.94 kB / 484.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.3218, allocations: 7.938 kB / 484.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.3237, allocations: 1.368 MB / 486 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000418/0.3242, allocations: 275.6 kB / 486.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001225/0.3243, allocations: 20 kB / 486.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004164/0.3247, allocations: 23.98 kB / 486.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.3248, allocations: 60.52 kB / 486.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-05/0.3249, allocations: 27.98 kB / 486.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008596/0.3258, allocations: 0.7408 MB / 487.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3258, allocations: 0 / 487.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009004/0.3267, allocations: 307.9 kB / 487.5 MB, free: 11.61 MB / 366.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.003114/0.3298, allocations: 2.288 MB / 489.8 MB, free: 9.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.3311, allocations: 0.7916 MB / 490.6 MB, free: 8.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3312, allocations: 0 / 490.6 MB, free: 8.551 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006/0.3318, allocations: 403.8 kB / 491 MB, free: 8.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.3331, allocations: 332 kB / 491.3 MB, free: 7.836 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/0.345, allocations: 9.212 MB / 0.4888 GB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007042/0.3457, allocations: 1.155 MB / 0.4899 GB, free: 13.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007046/0.3464, allocations: 220.1 kB / 0.4901 GB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006264/0.3471, allocations: 471.2 kB / 0.4906 GB, free: 12.46 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3471, allocations: 4 kB / 0.4906 GB, free: 12.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4657/0.8128, allocations: 29.16 MB / 0.519 GB, free: 15.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.51, allocations: 7.844 kB / 0.519 GB, free: 15.21 MB / 414.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)