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: translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTest,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest") translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTest,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002123/0.002123, allocations: 116.4 kB / 16.37 MB, free: 6.012 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.002015/0.002015, allocations: 194.3 kB / 17.31 MB, free: 5.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.472/1.472, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05723/0.05723, allocations: 11.84 MB / 282.4 MB, free: 236 kB / 222.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.001751/0.001751, allocations: 63.91 kB / 343.3 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2591, allocations: 49.2 MB / 392.5 MB, free: 49.29 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.007151/0.2663, allocations: 6.093 MB / 398.6 MB, free: 44.96 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005641/0.272, allocations: 3.277 MB / 401.9 MB, free: 42.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000941/0.273, allocations: 15.62 kB / 401.9 MB, free: 42.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007437/0.2738, allocations: 284.6 kB / 402.1 MB, free: 42.4 MB / 318.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.001602/0.2754, allocations: 0.591 MB / 402.7 MB, free: 41.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002172/0.2776, allocations: 0.8456 MB / 403.6 MB, free: 41.28 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002336/0.2799, allocations: 1.849 MB / 405.4 MB, free: 40.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000744/0.2807, allocations: 0.555 MB / 406 MB, free: 39.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009399/0.2816, allocations: 0.6347 MB / 406.6 MB, free: 39.47 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007956/0.2824, allocations: 0.7299 MB / 407.4 MB, free: 39 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001814/0.2826, allocations: 129.3 kB / 407.5 MB, free: 38.99 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009238/0.2836, allocations: 403.4 kB / 407.9 MB, free: 38.86 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002638/0.2838, allocations: 353.5 kB / 408.2 MB, free: 38.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006141/0.2845, allocations: 0.7247 MB / 408.9 MB, free: 38.08 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001806/0.2863, allocations: 1.965 MB / 410.9 MB, free: 36.6 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2863, allocations: 0 / 410.9 MB, free: 36.6 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2863, allocations: 0 / 410.9 MB, free: 36.6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.654e-05/0.2863, allocations: 0 / 410.9 MB, free: 36.6 MB / 318.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.002259/0.2886, allocations: 1.623 MB / 412.5 MB, free: 34.92 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.2886, allocations: 15.89 kB / 412.5 MB, free: 34.9 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000263/0.2889, allocations: 151.2 kB / 412.7 MB, free: 34.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009113/0.2898, allocations: 0.8309 MB / 413.5 MB, free: 33.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.703e-05/0.2899, allocations: 77.94 kB / 413.6 MB, free: 33.8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.29, allocations: 99.91 kB / 413.7 MB, free: 33.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.2914, allocations: 1.114 MB / 414.8 MB, free: 32.58 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.2915, allocations: 7.938 kB / 414.8 MB, free: 32.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.423e-05/0.2915, allocations: 40 kB / 414.9 MB, free: 32.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.2916, allocations: 24 kB / 414.9 MB, free: 32.51 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/0.2932, allocations: 1.007 MB / 415.9 MB, free: 31.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004856/0.2981, allocations: 5.999 MB / 421.9 MB, free: 24.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009695/0.2991, allocations: 0.742 MB / 422.6 MB, free: 24.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005589/0.2997, allocations: 390.6 kB / 423 MB, free: 23.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001803/0.2999, allocations: 186.8 kB / 423.2 MB, free: 23.44 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.2999, allocations: 43.22 kB / 423.2 MB, free: 23.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 2.184e-06/0.2999, allocations: 0 / 423.2 MB, free: 23.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.003961/0.3039, allocations: 2.277 MB / 425.5 MB, free: 21.06 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.835e-05/0.3039, allocations: 60.06 kB / 425.6 MB, free: 20.99 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009961/0.3049, allocations: 1.062 MB / 426.6 MB, free: 19.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.49e-05/0.305, allocations: 41.7 kB / 426.7 MB, free: 19.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002846/0.3053, allocations: 0.5347 MB / 427.2 MB, free: 19.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.3054, allocations: 272 kB / 427.5 MB, free: 19.05 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002068/0.3056, allocations: 170.5 kB / 427.6 MB, free: 18.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.107e-05/0.3057, allocations: 337.9 kB / 428 MB, free: 18.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000475/0.3062, allocations: 348.7 kB / 428.3 MB, free: 18.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005403/0.3067, allocations: 0.4927 MB / 428.8 MB, free: 17.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005044/0.3118, allocations: 1.8 MB / 430.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.3118, allocations: 4 kB / 430.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00151/0.3133, allocations: 1.007 MB / 431.6 MB, free: 14.74 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.3134, allocations: 8 kB / 431.6 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.3134, allocations: 8 kB / 431.6 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.3134, allocations: 11.94 kB / 431.6 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008625/0.3143, allocations: 232.1 kB / 431.9 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/0.3143, allocations: 12 kB / 431.9 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006354/0.3149, allocations: 31.98 kB / 431.9 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.529e-05/0.315, allocations: 39.98 kB / 432 MB, free: 14.4 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 = 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.0005587/0.3156, allocations: 367.1 kB / 432.3 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.3157, allocations: 110.6 kB / 432.4 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001463/0.3172, allocations: 0.9503 MB / 433.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.3172, allocations: 15.98 kB / 433.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3172, allocations: 0 / 433.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.3173, allocations: 7.984 kB / 433.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003013/0.3203, allocations: 2.312 MB / 435.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.3203, allocations: 4 kB / 435.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007587/0.3211, allocations: 192 kB / 435.9 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.3211, allocations: 4 kB / 435.9 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.363e-05/0.3211, allocations: 31.98 kB / 435.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.3211, allocations: 4 kB / 435.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3212, allocations: 0 / 435.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.3228, allocations: 1.368 MB / 437.3 MB, free: 8.887 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003952/0.3232, allocations: 275.6 kB / 437.6 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/0.3234, allocations: 20 kB / 437.6 MB, free: 8.578 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004131/0.3238, allocations: 23.98 kB / 437.6 MB, free: 8.555 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.3239, allocations: 72.33 kB / 437.7 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.951e-05/0.324, allocations: 31.98 kB / 437.7 MB, free: 8.453 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007868/0.3248, allocations: 0.7369 MB / 438.5 MB, free: 7.707 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3248, allocations: 0 / 438.5 MB, free: 7.707 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009315/0.3257, allocations: 307.9 kB / 438.8 MB, free: 7.406 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.00109/0.3268, allocations: 471.6 kB / 439.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.328, allocations: 0.7906 MB / 440 MB, free: 6.309 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.328, allocations: 1.438 kB / 440 MB, free: 6.309 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005099/0.3285, allocations: 403.8 kB / 440.4 MB, free: 5.914 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.3297, allocations: 363.2 kB / 440.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002956/0.3327, allocations: 2.325 MB / 443.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004584/0.3331, allocations: 1.159 MB / 444.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005884/0.3337, allocations: 220.1 kB / 444.5 MB, free: 1.789 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002492/0.334, allocations: 107.4 kB / 444.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of SimCode: time 4.2e-07/0.334, allocations: 0 / 444.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of Templates: time 0.03303/0.367, allocations: 17.72 MB / 462.3 MB, free: 24 kB / 334.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.makefile (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 & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe 2>&1)