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.007872/0.007872, allocations: 100.9 kB / 15.73 MB, free: 6.031 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.001573/0.001573, allocations: 194.8 kB / 16.67 MB, free: 5.969 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.308/1.308, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05468/0.05468, allocations: 11.84 MB / 281.8 MB, free: 9.344 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.001571/0.001571, allocations: 71.89 kB / 391.8 MB, free: 3.977 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2325, allocations: 49.23 MB / 441.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.005798/0.2383, allocations: 6.101 MB / 447.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005221/0.2436, allocations: 3.264 MB / 450.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000543/0.2442, allocations: 19.44 kB / 450.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006323/0.2448, allocations: 287.4 kB / 450.7 MB, free: 13.27 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.001211/0.246, allocations: 0.584 MB / 451.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001784/0.2478, allocations: 0.8497 MB / 452.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001724/0.2496, allocations: 1.85 MB / 454 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000673/0.2503, allocations: 0.5495 MB / 454.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008021/0.2511, allocations: 0.6429 MB / 455.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008466/0.2519, allocations: 0.7382 MB / 455.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.2521, allocations: 124.2 kB / 456.1 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007549/0.2529, allocations: 404 kB / 456.5 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002913/0.2532, allocations: 348.6 kB / 456.8 MB, free: 9.438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006564/0.2538, allocations: 0.7291 MB / 457.5 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001944/0.2558, allocations: 1.968 MB / 459.5 MB, free: 7.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2558, allocations: 3.984 kB / 459.5 MB, free: 7.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2558, allocations: 0 / 459.5 MB, free: 7.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.875e-05/0.2558, allocations: 1.312 kB / 459.5 MB, free: 7.547 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.002582/0.2584, allocations: 1.608 MB / 461.1 MB, free: 6.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.2585, allocations: 13.2 kB / 461.1 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001746/0.2587, allocations: 156.8 kB / 461.3 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002955/0.259, allocations: 151.1 kB / 461.4 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.2601, allocations: 0.8324 MB / 462.3 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.269e-05/0.2601, allocations: 74.5 kB / 462.3 MB, free: 5.383 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.2603, allocations: 95.28 kB / 462.4 MB, free: 5.352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001708/0.262, allocations: 1.12 MB / 463.5 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.542e-05/0.262, allocations: 5 kB / 463.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-05/0.2621, allocations: 39.53 kB / 463.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.006e-05/0.2622, allocations: 23.31 kB / 463.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/0.2638, allocations: 1.009 MB / 464.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006216/0.27, allocations: 6.003 MB / 470.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.2711, allocations: 0.7367 MB / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000656/0.2718, allocations: 394.6 kB / 471.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002239/0.272, allocations: 194.8 kB / 471.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.2721, allocations: 39.16 kB / 472 MB, free: 11.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.184e-06/0.2721, allocations: 0 / 472 MB, free: 11.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=76): time 0.004656/0.2768, allocations: 2.274 MB / 474.3 MB, free: 9.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.2768, allocations: 60.06 kB / 474.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001326/0.2781, allocations: 1.058 MB / 475.4 MB, free: 8.105 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.859e-05/0.2782, allocations: 37.7 kB / 475.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003981/0.2786, allocations: 0.5463 MB / 476 MB, free: 7.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.2788, allocations: 264.2 kB / 476.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002503/0.2791, allocations: 166.5 kB / 476.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.2792, allocations: 341.9 kB / 476.7 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005763/0.2798, allocations: 348.6 kB / 477 MB, free: 6.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006642/0.2805, allocations: 499.9 kB / 477.5 MB, free: 5.828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005608/0.2861, allocations: 1.811 MB / 479.3 MB, free: 3.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.2861, allocations: 4 kB / 479.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001666/0.2878, allocations: 1.011 MB / 480.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.2878, allocations: 7.984 kB / 480.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.2878, allocations: 11.94 kB / 480.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.2879, allocations: 8 kB / 480.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000885/0.2887, allocations: 228.2 kB / 480.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.2888, allocations: 12 kB / 480.6 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005953/0.2894, allocations: 31.97 kB / 480.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.08e-05/0.2895, allocations: 47.92 kB / 480.7 MB, free: 2.586 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.0005303/0.29, allocations: 366.8 kB / 481.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000186/0.2902, allocations: 114.6 kB / 481.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001668/0.2919, allocations: 0.9465 MB / 482.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.2919, allocations: 11.94 kB / 482.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2919, allocations: 0 / 482.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.2919, allocations: 3.984 kB / 482.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003429/0.2954, allocations: 2.308 MB / 484.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.2954, allocations: 0 / 484.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007992/0.2962, allocations: 188 kB / 484.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.2962, allocations: 7.938 kB / 484.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.248e-05/0.2963, allocations: 27.98 kB / 484.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.915e-05/0.2963, allocations: 11.92 kB / 484.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.2963, allocations: 7.938 kB / 484.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.2983, allocations: 1.364 MB / 486 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003968/0.2987, allocations: 271.6 kB / 486.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001658/0.2989, allocations: 24 kB / 486.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004586/0.2994, allocations: 23.98 kB / 486.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.838e-05/0.2995, allocations: 60.52 kB / 486.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.042e-05/0.2995, allocations: 27.98 kB / 486.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008969/0.3004, allocations: 0.7408 MB / 487.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3004, allocations: 0 / 487.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008672/0.3013, 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.00316/0.3045, allocations: 2.297 MB / 489.8 MB, free: 9.336 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.3058, allocations: 0.7916 MB / 490.6 MB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3058, allocations: 0 / 490.6 MB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000591/0.3064, allocations: 403.8 kB / 491 MB, free: 8.156 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.3078, allocations: 339.7 kB / 491.3 MB, free: 7.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.321, allocations: 9.2 MB / 0.4888 GB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007786/0.3218, allocations: 1.155 MB / 0.4899 GB, free: 13.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007525/0.3226, allocations: 216.1 kB / 0.4901 GB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006506/0.3233, allocations: 483.2 kB / 0.4906 GB, free: 12.45 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3233, allocations: 0 / 0.4906 GB, free: 12.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05438/0.3777, allocations: 29.16 MB / 0.519 GB, free: 15.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.103/9.48, allocations: 7.719 kB / 0.519 GB, free: 15.2 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)