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.005109/0.005115, allocations: 99.59 kB / 15.73 MB, free: 6.039 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.001259/0.001259, allocations: 195.2 kB / 16.68 MB, free: 5.961 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.412/1.412, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05616/0.05616, allocations: 11.84 MB / 281.8 MB, free: 9.332 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.002129/0.002129, allocations: 68.33 kB / 391.8 MB, free: 3.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.252, allocations: 49.23 MB / 441.1 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.006371/0.2584, allocations: 6.094 MB / 447.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005984/0.2645, allocations: 3.268 MB / 450.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007217/0.2652, allocations: 19.59 kB / 450.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007489/0.266, allocations: 288 kB / 450.7 MB, free: 13.26 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.001425/0.2674, allocations: 0.5884 MB / 451.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002077/0.2695, allocations: 0.8383 MB / 452.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002097/0.2716, allocations: 1.849 MB / 454 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000745/0.2724, allocations: 0.5607 MB / 454.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009839/0.2734, allocations: 0.643 MB / 455.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009717/0.2744, allocations: 0.7345 MB / 456 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001892/0.2746, allocations: 124.2 kB / 456.1 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008681/0.2754, allocations: 399.8 kB / 456.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003347/0.2758, allocations: 345.8 kB / 456.8 MB, free: 9.438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007461/0.2765, allocations: 0.7332 MB / 457.5 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002426/0.279, allocations: 1.978 MB / 459.5 MB, free: 7.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.279, allocations: 0 / 459.5 MB, free: 7.539 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.279, allocations: 0 / 459.5 MB, free: 7.539 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.23e-05/0.279, allocations: 0 / 459.5 MB, free: 7.539 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.002895/0.2819, allocations: 1.653 MB / 461.2 MB, free: 6.254 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.282, allocations: 13.48 kB / 461.2 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001921/0.2822, allocations: 153.6 kB / 461.3 MB, free: 6.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003325/0.2825, allocations: 159.5 kB / 461.5 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.2837, allocations: 0.8344 MB / 462.3 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.583e-05/0.2838, allocations: 74.28 kB / 462.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001426/0.284, allocations: 94.31 kB / 462.5 MB, free: 5.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001822/0.2858, allocations: 1.121 MB / 463.6 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.2858, allocations: 0 / 463.6 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.599e-05/0.2859, allocations: 40.56 kB / 463.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.183e-05/0.2859, allocations: 22.69 kB / 463.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/0.2877, allocations: 1.015 MB / 464.7 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006823/0.2945, allocations: 6.016 MB / 470.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.2958, allocations: 0.7484 MB / 471.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007125/0.2965, allocations: 386.6 kB / 471.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000237/0.2968, allocations: 190.8 kB / 472 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.2968, allocations: 39.22 kB / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 4.298e-06/0.2968, allocations: 3.984 kB / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=76): time 0.004809/0.3016, allocations: 2.287 MB / 474.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.3017, allocations: 60.06 kB / 474.4 MB, free: 9.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/0.3032, allocations: 1.066 MB / 475.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.674e-05/0.3032, allocations: 41.7 kB / 475.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005051/0.3037, allocations: 0.5474 MB / 476.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002393/0.304, allocations: 277.6 kB / 476.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002751/0.3043, allocations: 170.5 kB / 476.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.3044, allocations: 334 kB / 476.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000625/0.3051, allocations: 352.6 kB / 477.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007391/0.3058, allocations: 0.496 MB / 477.7 MB, free: 5.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005824/0.3116, allocations: 1.811 MB / 479.5 MB, free: 3.828 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3117, allocations: 0 / 479.5 MB, free: 3.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001845/0.3135, allocations: 1.016 MB / 480.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.3135, allocations: 8 kB / 480.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.3136, allocations: 7.938 kB / 480.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.762e-05/0.3136, allocations: 12 kB / 480.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008674/0.3145, allocations: 228.3 kB / 480.7 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/0.3145, allocations: 8 kB / 480.7 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006019/0.3151, allocations: 35.98 kB / 480.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.689e-05/0.3152, allocations: 39.98 kB / 480.8 MB, free: 2.477 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.0006615/0.3159, allocations: 374.8 kB / 481.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.3161, allocations: 119.2 kB / 481.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001806/0.3179, allocations: 0.9388 MB / 482.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.3179, allocations: 11.94 kB / 482.3 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.3179, allocations: 3.984 kB / 482.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.3179, allocations: 3.984 kB / 482.3 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003599/0.3215, allocations: 2.312 MB / 484.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.3215, allocations: 0 / 484.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008169/0.3224, allocations: 196 kB / 484.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/0.3224, allocations: 8 kB / 484.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.18e-05/0.3225, allocations: 23.98 kB / 484.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.426e-06/0.3225, allocations: 4 kB / 484.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.3225, allocations: 11.88 kB / 484.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002157/0.3247, allocations: 1.369 MB / 486.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004254/0.3251, allocations: 280.3 kB / 486.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.3252, allocations: 27.98 kB / 486.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.3256, allocations: 24 kB / 486.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.3258, allocations: 56.52 kB / 486.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.808e-05/0.3258, allocations: 31.98 kB / 486.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009896/0.3268, allocations: 0.7369 MB / 487.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3268, allocations: 0 / 487.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009561/0.3278, allocations: 307.7 kB / 487.6 MB, free: 11.48 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.003909/0.3317, allocations: 2.302 MB / 489.9 MB, free: 9.195 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.3332, allocations: 0.7799 MB / 490.7 MB, free: 8.418 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3332, allocations: 4.375 kB / 490.7 MB, free: 8.414 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006448/0.3339, allocations: 407.5 kB / 491.1 MB, free: 8.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.3353, allocations: 343.6 kB / 491.4 MB, free: 7.684 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01458/0.3499, allocations: 9.254 MB / 0.489 GB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009362/0.3509, allocations: 1.155 MB / 0.4901 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008528/0.3517, allocations: 216.1 kB / 0.4903 GB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007286/0.3525, allocations: 475.2 kB / 0.4908 GB, free: 12.27 MB / 382.1 MB Notification: Performance of SimCode: time 2.735e-06/0.3525, allocations: 0 / 0.4908 GB, free: 12.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06504/0.4175, allocations: 28.78 MB / 0.5189 GB, free: 15.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.658/10.08, allocations: 11.66 kB / 0.5189 GB, free: 15.39 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)